This is the mail archive of the
mailing list for the GCC project.
Re: compilation issues with gcc v3.2.3p3--building 32bit on 64bit system
- From: Kai Ruottu <karuottu at mbnet dot fi>
- To: VIVEK KUMAR <vivek677 at yahoo dot co dot uk>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Wed, 22 Nov 2006 12:09:50 +0200
- Subject: Re: compilation issues with gcc v3.2.3p3--building 32bit on 64bit system
- References: <firstname.lastname@example.org>
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
3. /grid/common/pkgs/gcc/v3.2.3p3/bin/ld: skipping
incompatible /usr/X11R6/lib/libX11.a when searching
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
Otherwise it is a 32-bit library... So which one it is? You couldn't
'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
stuff is really 32-bit !