http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48556

           Summary: Gcc 4.6.0 bootstrap fails with in-tree GMP/MPFR/MPC
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: f...@earthlink.net


I'm trying to build gcc 4.6.0 on OpenSuSE 11.2 x86_64 with latest MPC, 
MPFR, GMP built in-tree (vers 0.9, 3.0.1, 5.0.1). I've always used 
in-tree builds in the past as they are the least troublesome.

Configuring with:

../gcc-4.6.0/configure --prefix=/usr/local \
--libdir=/usr/local/lib64 --program-suffix=-4.6 \
--with-arch=corei7 --enable-languages=c,c++,fortran --enable-gold \
--enable-checking=release --with-system-zlib --enable-linux-futex \
--without-system-libunwind --with-ppl-lib=/usr/lib64 \
--with-ppl-include=/usr/include --with-cloog-lib=/usr/lib64 \
--with-cloog-include=/usr/include --enable-lto

I get several errors such as:

[...]/gcc/gcc-build-4.6.0/./mpc/src/.libs/libmpc.a(pow.o): In function
mpc_pow_exact':                                                                 
[...]/gcc/gcc-build-4.6.0/mpc/src/../../../gcc-4.6.0/mpc/src/pow.c:123:
undefined reference to `mpfr_get_z_2exp'


Evidently this is caused by MPC picking up the older incompatible 
system version of MPFR? Shouldn't this be taken care of by the 
in-tree config somehow?


I tried to get around this by installing the latest versions of 
mpc/mpfr/gmp/ppl/cloog that are available from the SuSE gcc-devel
repository. I believe these are 0.8.2, 3.0.0, 5.0.1, 0.11-15, 0.15.10.

However, this did not appear to solve the issue.

Further removing the --with-ppl-* and --with-cloog-* configure flags
resulted in a successful bootstrap. Perhaps these flags are making their
way into the in-tree builds of mpc/mpfr/gmp somehow?

Reply via email to