GMP fails to configure on Linux
Tovrea, George W (US SSA)
george.tovrea at baesystems.com
Wed Aug 26 18:49:09 CEST 2009
Truing to build a 32-bit version of gmp using GCC 4.4.0, configure fails with the following
System:
uname -m = x86_64
uname -r = 2.6.9-67.ELxenU
uname -s = Linux
uname -v = #1 SMP Wed Nov 7 14:17:17 EST 2007
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = x86_64
Configure command:
/home/users/tovrea/GCC_LINUX/gmp-4.3.1/configure --prefix=/home/users/tovrea/local/linux/32 --enable-cxx=yes LDFLAGS=-L/home/users/tovrea/local/linux/lib/gcc/x86_64-unknown-linux-gnu/lib -L/home/users/tovrea/local/linux/lib/gcc/x86_64-unknown-linux-gnu/4.4.0/32
stderr:
checking ABI=64
checking compiler /home/users/tovrea/local/linux/bin/gcc -m32 -I/home/users/tovrea/local/linux/include... no
checking ABI=32
checking compiler /home/users/tovrea/local/linux/bin/gcc -m32 -I/home/users/tovrea/local/linux/include... no
configure: error: could not find a working compiler, see config.log for details
config.log
Test compile:
configure:3900: /home/users/tovrea/local/linux/bin/gcc -m32 -I/home/users/tovrea/local/linux/include conftest.c >&5
/usr/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status
configure:3903: $? = 1
LD_LIBRARY..PATH:
LD_LIBRARY_PATH=/home/users/tovrea/local/linux/lib/gcc/x86_64-unknown-linux-gnu/4.4.0/32:/home/users/tovrea/local/linux/lib/gcc/x86_64-unknown-linux-gnu/lib:/home/users/tovrea/local/linux/lib:/vobs/adss/lib:/home/users/tovrea/kakadu/Linux/v4_5-00392c/lib:/usr/opt/java1.2/jre/lib/sparc:/usr/dt/lib:/usr/openwin/lib::/usr/kde/lib:/usr/kde/qt/lib
LD_LIBRARYN32_PATH=/home/users/tovrea/local/linux/lib/gcc/x86_64-unknown-linux-gnu/4.4.0/32:/home/users/tovrea/local/linux/lib/gcc/x86_64-unknown-linux-gnu/lib:/home/users/tovrea/local/linux/lib:/vobs/adss/lib:/home/users/tovrea/kakadu/Linux/v4_5-00392c/lib:
tovrea at challenger%ll /home/users/tovrea/local/linux/lib/gcc/x86_64-unknown-linux-gnu/lib
total 396
drwxrwxr-x 2 tovrea nimalib 44 Aug 25 16:45 .
drwxrwxr-x 5 tovrea nimalib 40 Aug 25 16:45 ..
lrwxrwxrwx 1 tovrea nimalib 13 Aug 25 16:45 libgcc_s.so -> libgcc_s.so.1
-rw-r--r-- 1 tovrea nimalib 402484 Aug 25 16:45 libgcc_s.so.1
tovrea at challenger%file /home/users/tovrea/local/linux/lib/gcc/x86_64-unknown-linux-gnu/lib/libgcc_s.so.1
/home/users/tovrea/local/linux/lib/gcc/x86_64-unknown-linux-gnu/lib/libgcc_s.so.1: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped
tovrea at challenger%printenv LDFLAGS
-L/home/users/tovrea/local/linux/lib/gcc/x86_64-unknown-linux-gnu/4.4.0/32 -L/home/users/tovrea/local/linux/lib/gcc/x86_64-unknown-linux-gnu/lib
I cannot figure out why /usr/bin/ld as envoked by configure cannot find the version of libgcc_s.so when it is clearly in the LD_LIBRARY.. path AND in LDFLAGS
Bill Tovrea
BAE Systems
16550 West Bernardo Drive
San Diego, CA 92127
Telephone: (858) 592-5292
Pager: (888) 971-4964
E-mail: George.Tovrea at baesystems.com
More information about the gmp-bugs
mailing list