Patch to enable build on s390x

Mike Frysinger vapier at gentoo.org
Mon Sep 19 17:14:25 CEST 2011


On Monday, September 19, 2011 11:00:46 Torbjorn Granlund wrote:
> Mike Frysinger writes:
>   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.

perhaps the autotool generation didn't go right.  i just ran `autoreconf -f -
i`.  the config.log contains no useful info, but you can see it attached.

>   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?

of course not.  i'm not a complete tool :p.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log
Type: text/x-log
Size: 8511 bytes
Desc: not available
URL: <http://gmplib.org/list-archives/gmp-bugs/attachments/20110919/28b59857/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://gmplib.org/list-archives/gmp-bugs/attachments/20110919/28b59857/attachment-0001.bin>


More information about the gmp-bugs mailing list