Bug 174731 - gcc -m32 does not work under mock
gcc -m32 does not work under mock
Product: Fedora
Classification: Fedora
Component: mock (Show other bugs)
x86_64 Linux
medium Severity medium
: ---
: ---
Assigned To: Seth Vidal
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2005-12-01 14:20 EST by Thomas Sailer
Modified: 2007-11-30 17:11 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-12-01 14:22:32 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Thomas Sailer 2005-12-01 14:20:57 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, 
                 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 
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):

How reproducible:

Steps to Reproduce:
mock hello-1.0-1.src.rpm 

Additional info:
Comment 1 Seth Vidal 2005-12-01 14:22:32 EST
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.

Comment 2 Thomas Sailer 2005-12-01 14:27:17 EST
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. 
Comment 3 Seth Vidal 2005-12-01 14:30:30 EST
Ah, you didn't say that before.

So why are you trying to build against i386 includes on x86_64?
Comment 4 Thomas Sailer 2005-12-01 14:46:45 EST
I'm trying to build ghdl. ghdl is basically a GCC frontend, and gcc likes to 
build crtbegin/crtend etc. with differnet compiler flags. 

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