Patch to enable build on s390x

Torbjorn Granlund tg at gmplib.org
Mon Sep 19 17:00:46 CEST 2011


Mike Frysinger <vapier at gentoo.org> writes:

  sorry, i think i tested the wrong tree.  after applying your patch, `make && 
  make check` work.
  
  however, most s390x systems don't bother shipping with multilib support, so 
  this will now fail out of the box:
  $ ./configure
  checking build system type... s390x-ibm-linux-gnu
  checking host system type... s390x-ibm-linux-gnu
  checking for a BSD-compatible install... /usr/bin/install -c
  checking whether build environment is sane... yes
  checking for a thread-safe mkdir -p... /bin/mkdir -p
  checking for gawk... gawk
  checking whether make sets $(MAKE)... yes
  checking whether to enable maintainer-specific portions of Makefiles... no
  checking ABI=64
  checking ABI=32
  checking compiler gcc -O2 -pedantic -fomit-frame-pointer -m31 ... no
  checking whether cc is gcc... yes
  checking compiler cc -O2 -pedantic -fomit-frame-pointer -m31 ... no
  configure: error: could not find a working compiler, see config.log for 
  details
  
The onoly worrying failure here is that ABI=64 fails.  We need to
understand why.  Please check config.log to determine the cause.

  i have to explicitly do:
  $ CC=gcc ABI=64 ./configure

Strange that this makes it behave differently.

Is CC and/or ABI already set in yur environment perhaps?

Please do

echo CC=$CC
echo ABI=$ABI

-- 
Torbjörn


More information about the gmp-bugs mailing list