Compiling gmp 4.2.4

Rich Smrcina rsmrcina at
Fri Dec 26 14:02:35 CET 2008

I'm trying to compile gmp 4.2.4 on the s390x platform. An RPM is available of an older 
version, but I need the header files for another package, and there is no gmp-devel 
package for s390x.

My gcc is 4.1.2.  Configure and make seem to run fine, during 'make check' I get this error:

gcc -O2 -fomit-frame-pointer -o .libs/t-bswap t-bswap.o  ./.libs/libtests.a 
/home/rks0/gmp-4.2.4/.libs/ ../.libs/
/home/rks0/gmp-4.2.4/.libs/ undefined reference to `sdiv_qrnnd'
collect2: ld returned 1 exit status
make[4]: *** [t-bswap] Error 1
make[4]: Leaving directory `/home/rks0/gmp-4.2.4/tests'
make[3]: *** [check-am] Error 2
make[3]: Leaving directory `/home/rks0/gmp-4.2.4/tests'
make[2]: *** [check-recursive] Error 1
make[2]: Leaving directory `/home/rks0/gmp-4.2.4/tests'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/home/rks0/gmp-4.2.4'
make: *** [check] Error 2

Any tips on how to get past this?

Rich Smrcina
VM Assist, Inc.
Phone: 414-491-6001
Ans Service:  360-715-2467

Catch the WAVV!
WAVV 2009 - Orlando, FL - May 15-19, 2009

More information about the gmp-bugs mailing list