Compiling 32bit on 64bit Fedora

Tom Hughes tom at compton.nu
Wed Sep 7 15:56:37 UTC 2011


On 07/09/11 16:52, Nathaniel McCallum wrote:

> "gcc -m32 -o foo foo.c" gives me:
> /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file
> or directory
>
> If I copy the gnu/stubs-32.h file from the 32bit glibc-devel package
> into the right place and run the command above again I get:

Installing the 32 bit glibc-devel package would probably have worked better.

> Am I doing something wrong? Or is this a packaging bug? I can't think of
> any reason why I shouldn't be able to compile at least a basic C program
> with no deps as 32bit on 64bit.

Well you can, but you do need things like glibc-devel.i686 to do it...

Tom

-- 
Tom Hughes (tom at compton.nu)
http://compton.nu/


More information about the devel mailing list