/bin/bash ./configure gmp problem with old /bin/sh bourne shell
Christian Maeder
Christian.Maeder at dfki.de
Wed Apr 9 13:43:40 UTC 2014
Hi,
calling
/bin/bash ./configure
gmake
in gmp-6.0.0 cause the error:
gmake[2]: Entering directory `/local/home/maeder/gmp-6.0.0/mpn'
/bin/sh ../libtool --tag=CC --mode=compile gcc -std=gnu99
-DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_`echo
fib_table | sed 's/_$//'` -O2 -pedantic -fomit-frame-pointer -m64
-mtune=core2 -march=core2 -c -o fib_table.lo fib_table.c
../libtool: bad substitution
gmake[2]: *** [fib_table.lo] Fehler 1
gmake[2]: Leaving directory `/local/home/maeder/gmp-6.0.0/mpn'
I've downloaded https://gmplib.org/download/gmp/gmp-6.0.0a.tar.xz, but I
believe the error happens for all gmp versions.
I know, I'm supposed to just call "./configure" and then it works!
But the error is created by (bad?) scripts, see
https://ghc.haskell.org/trac/ghc/ticket/8783
-bash-3.2$ uname -a
SunOS gemini 5.10 Generic_150401-09 i86pc i386 i86pc
-bash-3.2$ ./config.guess
core2-pc-solaris2.10
-bash-3.2$ ./configfsf.guess
i386-pc-solaris2.10
I've attached an archive containing "log.config" the output of
./configure, "log" the output of gmake, the generated files config.log,
config.m4 and config.status containing the wrong SHELL!
The detected SHELL should be /bin/bash (since /bin/sh does not work).
Cheers Christian
-bash-3.2$ gcc -v
Reading specs from
/export/local/csw/bin/../lib/gcc/i386-pc-solaris2.10/4.6.3/specs
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/export/local/csw/bin/../libexec/gcc/i386-pc-solaris2.10/4.6.3/lto-wrapper
Target: i386-pc-solaris2.10
Configured with:
/home/maciej/src/opencsw/pkg/gcc4/trunk/work/solaris10-i386/build-isa-pentium_pro/gcc-4.6.3/configure
--program-suffix=-4.6 --prefix=/opt/csw --exec_prefix=/opt/csw
--bindir=/opt/csw/bin --sbindir=/opt/csw/sbin
--libexecdir=/opt/csw/libexec --datadir=/opt/csw/share
--sysconfdir=/etc/opt/csw --sharedstatedir=/opt/csw/share
--localstatedir=/var/opt/csw --libdir=/opt/csw/lib
--infodir=/opt/csw/share/info --includedir=/opt/csw/include
--mandir=/opt/csw/share/man --with-gnu-as --with-as=/opt/csw/bin/gas
--without-gnu-ld --with-ld=/usr/ccs/bin/ld --enable-nls
--with-included-gettext --with-libiconv-prefix=/opt/csw --with-x
--with-mpfr=/opt/csw --with-gmp=/opt/csw --with-ppl=/opt/csw
--with-cloog=/opt/csw --enable-cloog-backend=isl --enable-java-awt=xlib
--enable-libada --enable-libssp --enable-objc-gc --enable-threads=posix
--enable-languages=ada,c,c++,fortran,java,objc --with-system-zlib=/opt/csw
Thread model: posix
gcc version 4.6.3 (GCC)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logs.tar.gz
Type: application/x-gzip
Size: 77691 bytes
Desc: not available
URL: <https://gmplib.org/list-archives/gmp-bugs/attachments/20140409/a408dedd/attachment-0001.bin>
More information about the gmp-bugs
mailing list