GMP fails to configure on Linux

Torbjorn Granlund tg at
Sat Aug 29 11:50:33 CEST 2009

"Tovrea, George W (US SSA)" <george.tovrea at> writes:

  Truing to build a 32-bit version of gmp using GCC 4.4.0, configure fails with the following
  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
  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
  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
Well, if the compiler cannot find its internal libraries, then GMP
cannot do much.


More information about the gmp-bugs mailing list