Problem for building 32-bit on 64 bit OS
List: I installed SUSE 8 with kernel: Linux localhost 2.4.21-127-smp #1 SMP Thu Oct 16 11:55:00 UTC 2003 x86_64 unknown However, when I compiled 32-bit on this OS, I got : /usr/lib64/gcc-lib/x86_64-suse-linux/3.2.2/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm When I did :
gcc -m32 -print-search-dirs
install: /usr/lib64/gcc-lib/x86_64-suse-linux/3.2.2/ programs: =/usr/lib64/gcc-lib/x86_64-suse-linux/3.2.2/:/usr/lib64/gcc-lib/x86_64-suse-linux/3.2.2/:/usr/lib64/gcc-lib/x86_64-suse-linux/:/usr/lib/gcc/x86_64-suse-linux/3.2.2/:/usr/lib/gcc/x86_64-suse-linux/: So the question is that whether there are packages that creates directory : /usr/lib/gcc-lib/x86_64-suse-linux/3.2.2/ If so, what are they? If not, how can I change the order of the paths so that /usr/lib/... dirs are before /usr/lib64/... Then the 32-bit libraries will be used. Thanks in advance. Qinghuai
Qinghuai Gao <Qinghuai.Gao@Sun.COM> [Wed, 03 Mar 2004 18:41:41 -0800]:
install: /usr/lib64/gcc-lib/x86_64-suse-linux/3.2.2/ programs: =/usr/lib64/gcc-lib/x86_64-suse-linux/3.2.2/:/usr/lib64/gcc-lib/x86_64-suse-linux/3.2.2/:/usr/lib64/gcc-lib/x86_64-suse-linux/:/usr/lib/gcc/x86_64-suse-linux/3.2.2/:/usr/lib/gcc/x86_64-suse-linux/:
So the question is that whether there are packages that creates directory : /usr/lib/gcc-lib/x86_64-suse-linux/3.2.2/ If so, what are they?
It's the gcc packages themselves that create it. This is perfectly OK. gcc is always installed in <libdir>/gcc-lib/<host_tripple>/<version> . Therefor SUSE's gcc is installed
If not, how can I change the order of the paths so that /usr/lib/... dirs are before /usr/lib64/... Then the 32-bit libraries will be used.
That should be done by default when using -m32. Philipp
participants (2)
-
Philipp Thomas
-
Qinghuai Gao