gmp-6.1.2, acinclude.m4, configure

Torbjörn Granlund tg at gmplib.org
Wed Apr 17 09:42:51 UTC 2019


"Ralf Gerhauser" <Ralf.Gerhauser at gmx.de> writes:

  checking whether make supports nested variables... yes
  checking whether to enable maintainer-specific portions of Makefiles... no
  checking ABI=64
  checking compiler gcc -O2
  -I/home/rage/Development/OpenWrt/openwrt/staging_dir/host/include
  -I/home/rage/Development/OpenWrt/openwrt/staging_dir/host/include
  ... no, mpn_lshift_com optimization 2, program does not run
  checking ABI=x32
  checking compiler gcc -O2
  -I/home/rage/Development/OpenWrt/openwrt/staging_dir/host/include
  -I/home/rage/Development/OpenWrt/openwrt/staging_dir/host/include
  ... no, mpn_lshift_com optimization 2, program does not run
  checking ABI=32
  checking compiler gcc -O2
  -I/home/rage/Development/OpenWrt/openwrt/staging_dir/host/include
  -I/home/rage/Development/OpenWrt/openwrt/staging_dir/host/include
  ... no, mpn_lshift_com optimization 2, program does not run
  configure: error: could not find a working compiler, see config.log for details

You seems to have passed--explicitly or via environment variables--a
non-working compiler to GMP's configure.  Make sure to get a good
configure run by cleaning up that (i.e., plain "configure" without
overriding any variables, and first unsetting any CC, CFLAGS, etc,
variables).

Then work from there.

  My second try was to compile it on a Lubuntu 18.04 system.  It did, without any problems.
  Next I checked the compiler versions: gcc-4.8 on my SuSE system, gcc-7 on the Lubuntu system.
  I installed gcc-7 on SuSE - gmp-6.1.2 still failed in the same manner.

Are you saying that two compilers on one system make GMP configure fail?
My advice a few lines above should help!

  Next I found and downloaded the file "snapshot" from ftp://gmplib.org/pub/ which unpacks as
  version gmp-6.1.99-20180106. I tried to compile this on SuSE, and it worked either.

I don't understand that sentence.  Did it work or did it not work?

A snapshot from more than a year ago might not be an ideal place to
look, but if you're saying that the snapshot is fine and 6.1.2 is not,
it seems that the issue at hand has been solved.  Right?


-- 
Torbjörn
Please encrypt, key id 0xC8601622


More information about the gmp-bugs mailing list