Bug 502666 - 64 bit distribution is missing 32 bit headers.
Summary: 64 bit distribution is missing 32 bit headers.
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: glibc
Version: 5.5
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Jakub Jelinek
QA Contact: BaseOS QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-05-26 20:01 UTC by Audrius Meskauskas
Modified: 2009-05-26 20:07 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-05-26 20:07:02 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Audrius Meskauskas 2009-05-26 20:01:44 UTC
Description of problem:
When compiling 32 bit executable under 64 bit installation I observe the following error message: 

/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory

Search on a web pointed me to the following page:
http://gcc.gnu.org/ml/fortran/2008-09/msg00118.html

After that I tried to install 32 bit glibc headers but, indeed, only glibc-headers-2.5-34x86_64 are visible in the package manager.

How reproducible:
I am building the L4 kernel from http://os.inf.tu-dresden.de/drops/download.html so I do not know if it makes sense to go into too big details. I will do if you will report it otherwise should work.

Comment 1 Jakub Jelinek 2009-05-26 20:07:02 UTC
glibc-headers is intentionally shipped for the primary arch only on multilib installs, the headers e.g. on x86_64 are usable both for 32-bit and 64-bit compilation.

What you forgot to install is glibc-devel.i386 in addition to glibc-devel.x86_64,
/usr/include/gnu/stubs-{32,64}.h is provided by glibc-devel, not glibc-headers.


Note You need to log in before you can comment on or make changes to this bug.