Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
DescriptionRobert Stonehouse
2014-01-14 18:39:17 UTC
Description of problem:
If you find a project that uses "-m32" as a compiler argument, then you will get a linker error on RHEL7
The following came from compiling the internal Solarflare full source code tree on RHEL7
=================================
$ gcc -m32 test.c
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.8.2/libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: cannot find -lgcc_s
collect2: error: ld returned 1 exit status
=================================
The error is that /usr/lib/gcc/i686-redhat-linux/4.8.2/libgcc_s.so is not available.
On previous RHEL versions I would have installed the gcc.i686 package to fix this problem for an x86_64 system wanting to generate i686 binaries, but gcc.i686 is no longer available for RHEL7 AFAIK.
It will therefore be much harder to alter the build system so that all places that "gcc -m32" are made conditional, rather than just installing a package in order to address the problem.
It is not a problem for RHEL7 as such but it may make it much harder to get other external projects to compile.
Version-Release number of selected component (if applicable):
How reproducible:
100%
Steps to Reproduce:
1. Compile trivial C code with gcc -m32 code.c
Actual results:
Linker error as above
Expected results:
Additional info:
For building 32-bit programs on x86_64, you need to
yum install glibc-devel.686 libgcc.i686
and if it is C++, also libstdc++-devel.i686
and obviously any other devel libraries you plan to use that isn't installed for i686.
Comment 3Robert Stonehouse
2014-01-15 08:56:03 UTC
(In reply to Jakub Jelinek from comment #1)
> For building 32-bit programs on x86_64, you need to
> yum install glibc-devel.686 libgcc.i686
> and if it is C++, also libstdc++-devel.i686
> and obviously any other devel libraries you plan to use that isn't installed
> for i686.
I had obviously picked those up before as a dependency by installing gcc.i686
I can confirm that glibc-devel.686 libgcc.i686 were available for RHEL7 on x86_64.
Many thanks for the info.