compilation issues with gcc v3.2.3p3--building 32bit on 64bit system

Kai Ruottu karuottu@mbnet.fi
Wed Nov 22 09:54:00 GMT 2006


VIVEK KUMAR wrote:
> I am trying to build a 32-bit application on 64bit
> system (Linux ???? 2.4.21-37.ELsmp #1 SMP Wed Sep 7
> 13:32:18 EDT 2005 x86_64 x86_64 x86_64 GNU/Linux)
 Are you sure that this hasn't a name like "Fedora", "SuSE", "Debian" or
"Ubuntu"?
> 3. /grid/common/pkgs/gcc/v3.2.3p3/bin/ld: skipping
> incompatible /usr/X11R6/lib/libX11.a when searching
> for -lX11
>   
 The Ubuntu one seems to use "unstandard" scheme where the 64-bit  libs
are in '*lib' and the 32-bit libs are in '*lib32' when at least SuSE, Debian
and Fedora have used the "standard" where the 32-bit libs are in '*lib' and
the 64-bit libs are in '*lib64' (although these being the default libs).

 Some people have very firm opinions about "which Linux is the best", so
you not knowing anything else than that using a :

Linux ???? 2.4.21-37.ELsmp #1 SMP Wed Sep 7 13:32:18 EDT 2005 x86_64 
x86_64 x86_64 GNU/Linux

this  got with 'uname -a', is really strange :-)
 
 So if you have Ubuntu, the '/usr/X11R6/lib/libX11.a' can be a 64-bit 
library.
Otherwise it is a 32-bit library...  So which one it is?  You couldn't 
just use
'file /usr/X11R6/lib/libX11.a' and see if it was that expected 32-bit one?

> Could anyone help me resolve these issues ?
>   
 Just try simple methods like checking that the stuff used for producing 
32-bit
stuff is really 32-bit !



More information about the Gcc-help mailing list