problem detected when compiling gmp/mpfr ahead of gcc-4.3.5

Eric Fernandez
Tue Jun 29 05:16:00 GMT 2010


I have a specific issue when compiling with gcc-4.3.5 which I did not
have with gcc-4.3.4. I compile gcc on AIX, and need to compile GMP and
MPFR before GCC (I cannot copy GMP and MPFR directories into the GCC
source directory since I need to pass specific switches to GMP before

Compiling and installing GMP and MPFR in $PREFIXGNU are successful.
However, when I configure GCC I use (in the created build directory):

/hpc/work/fernandz/gnusrc/gcc-4.3.5/configure --enable-threads
--enable-languages=c,c++ --prefix=$PREFIXGNU --enable-threads
--disable-shared --enable-version-specific-runtime-libs --disable-nls
--with-gmp=$PREFIXGNU --with-mpfr=$PREFIXGNU

and then make.

With gcc-4.3.4, compilation is succesful. On the other hand, with
gcc-4.3.5, two directories named gmp and mpfr are created along the gcc
directory, and compilation starts building those two libraries, despite
I explicitely indicated a path to gmp and mpfr. Then compilation of mpfr
fails with this:

make[5]: Leaving directory `/hpc/work/fernandz/gnuobj435/gmp'
make[4]: Leaving directory `/hpc/work/fernandz/gnuobj435/gmp'
make[3]: Leaving directory `/hpc/work/fernandz/gnuobj435/gmp'
make[3]: Entering directory `/hpc/work/fernandz/gnuobj435/intl'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/hpc/work/fernandz/gnuobj435/intl'
Configuring stage 1 in ./mpfr
configure: WARNING: unrecognized options: --enable-threads,
--enable-version-specific-runtime-libs, --disable-nls, --with-mpfr,
--enable-languages, --disable-intermodule, --enable-checking,
--disable-coverage, --enable-languages
configure: creating cache ./config.cache
checking for a BSD-compatible install... /usr/local/gnu/bin/install -c
checking whether build environment is sane... yes
checking for none-ibm-aix5.3.0.0-strip... no
checking for strip... strip
configure: WARNING: using cross tools not prefixed with host triplet
checking for a thread-safe mkdir -p... /usr/local/gnu/bin/mkdir -p
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
configure: error: source directory already configured; run "make
distclean" there first
make[2]: *** [configure-stage1-mpfr] Error 1
make[2]: Leaving directory `/hpc/work/fernandz/gnuobj435'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/hpc/work/fernandz/gnuobj435'
make: *** [all] Error 2

Firstly, gmp should no be rebuilt (it does not use the ABI=32 switch I
nedd on AIX), furthermore mpfr fails subsequently.

I did not find anything regarding this in the doc. I just realised that
gmp and mpfr are now packed with gcc, but shouldn't they be ignored when
configure indicates a path for these two libraries? Should I report this
as a bug?


More information about the Gcc-help mailing list