bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

/bin/bash ./configure problem with old /bin/sh bourne shell


From: Christian Maeder
Subject: /bin/bash ./configure problem with old /bin/sh bourne shell
Date: Wed, 09 Apr 2014 16:47:52 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

Hi,

I've sent the following report to address@hidden, but it may well be an autoconf problem.

Calling "/bin/bash ./configure" causes "SHELL" to (wrongly) become "/bin/sh" (for https://gmplib.org/download/gmp/gmp-6.0.0a.tar.xz).

Surprisingly for ftp://sourceware.org/pub/libffi/libffi-3.0.13.tar.gz
autoreconf seems to create itself a call like:

  eval $SHELL .././configure ...

This "$SHELL" is expanded to /bin/sh for "/bin/bash ./configure" and to bin/bash by just "./configure".

(However, the final SHELL in
libffi-3.0.13/i386-pc-solaris2.10/config.status
is always (correctly) "/bin/bash".)

In any case I would expect "/bin/bash ./configure" to always return "/bin/bash" as a "decent" SHELL.

Cheers Christian

--- Original message
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)



Attachment: logs.tar.gz
Description: GNU Zip compressed data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]