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, from /usr/include/stdio.h:28, from hello.c:1: /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory 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): mock-0.4-2.fc4 How reproducible: Always Steps to Reproduce: mock hello-1.0-1.src.rpm Additional info:
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.