Red Hat Bugzilla – Bug 174731
gcc -m32 does not work under mock
Last modified: 2007-11-30 17:11:18 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (compatible; Konqueror/3.4; Linux) KHTML/3.4.2 (like Gecko)
Description of problem:
Trying to build any nontrivial program inside mock on x86_64 with -m32 results
in the following failure:
+ gcc -o -Wall -g -m32 -o hello_32 hello.c
In file included from /usr/include/features.h:342,
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or
This is because mock only installs glibc-devel.x86_64,
but /usr/include/gnu/stubs-32.h is included in glibc-devel.i386, so really,
one has to install both glibc-devel.x86_64 and glibc-devel.i386.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
mock doesn't install those b/c in the default configs any non-x86_64/noarch
packages are excluded from use.
Go edit your mock config file to allow those in.
yeah great. Now tell me how to do this on the fedora extras build machines. I
don't think I have this much control over the config files there.
Ah, you didn't say that before.
So why are you trying to build against i386 includes on x86_64?
I'm trying to build ghdl. ghdl is basically a GCC frontend, and gcc likes to
build crtbegin/crtend etc. with differnet compiler flags.