This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Help with configure
- From: Perry Smith <pedz at easesoftware dot net>
- To: libstdc++ at gcc dot gnu dot org
- Date: Mon, 9 Jan 2006 17:09:11 -0600
- Subject: Help with configure
Below is a script I run to try and configure libstdc++. I run it
from /dirpath/powerpc-ibm-aix5.3.0.0-freestanding/libstdc++. The
source tree is within the gcc-4.0.2 tree.
When config.status calls config-ml.in CXX in config.status is set but
at the top of config-ml.in it is not set (or set to the empty
string). This causes CXX to be set to just " -pthread", " -maix64",
and " -pthread -maix64" when configure is called for the pthread,
ppc64, and pthread/ppc64 versions of the library. The snippet below
is taken from config.log in the pthread/libstdc directory (I've added
in a little bit of debugging).
configure:3007: checking for powerpc-ibm-aix5.3.0.0-g++
configure:3014: override by CXX
configure:3034: result: -pthread
configure:3092: checking for C++ compiler version
configure:3095: -pthread --version </dev/null >&5
../../../../gcc-4.0.2/libstdc++-v3/configure: line 3096: -pthread:
command not found
configure:3098: $? = 127
Am I calling the original configure wrong or is this a bug?
Thank you,
Perry Smith
=================== script ====================
#!/usr/local/bin/bash
/bin/pwd
rm -rf *
rm -rf ../pthread
rm -rf ../ppc64
ulimit -S -d unlimited
export CONFIG_SHELL=/usr/local/bin/bash
export SHELL=/usr/local/bin/bash
export MAKE=gmake
/usr/local/bin/bash /usr/local/src/gcc-4.0.2/libstdc++-v3/configure \
--cache-file=./config.cache \
--host=powerpc-ibm-aix5.3.0.0 \
--build=powerpc-ibm-aix5.3.0.0 \
--enable-multilib \
-v \
--disable-nls \
--with-libiconv-prefix=/usr \
--with-gcc-version-trigger=/usr/local/src/gcc-4.0.2/gcc/version.c \
--enable-languages=c,c++ \
--program-transform-name=s,y,y, \
--srcdir=../../../gcc-4.0.2/libstdc++-v3 \
--with-target-subdir=powerpc-ibm-aix5.3.0.0-freestanding \
--disable-hosted-libstdcxx \
--disable-sjlj-exceptions 2>&1 | tee C-OUT