From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21458 invoked by alias); 23 Sep 2010 13:07:15 -0000 Received: (qmail 21174 invoked by uid 48); 23 Sep 2010 13:06:57 -0000 Date: Thu, 23 Sep 2010 13:07:00 -0000 Subject: [Bug other/45760] New: GCC build fails: can't find MPC X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "avi at unix dot sh" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-09/txt/msg02600.txt.bz2 I believe this is a bug in GCC 4.5.1 build system related to the introduction of MPC. I'm compiling GCC 4.5.1 and all its dependencies in my home directory and installing all (make install) at $HOME/OpenFOAM/ROOT At some GCC build stage it fails with this messages: --------------------------------------- checking for powerpc64-unknown-linux-gnu-strip... strip checking whether ln -s works... yes checking for powerpc64-unknown-linux-gnu-gcc... /bgpusr3/avibrz/OpenFOAM/gcc-build/./gcc/xgcc -B/bgpusr3/avibrz/OpenFOAM/gcc-build/./gcc/ -B/bgpusr3/avibrz/OpenFOAM/ROOT/powerpc64-unknown-linux-gnu/bin/ -B/bgpusr3/avibrz/OpenFOAM/ROOT/powerpc64-unknown-linux-gnu/lib/ -isystem /bgpusr3/avibrz/OpenFOAM/ROOT/powerpc64-unknown-linux-gnu/include -isystem /bgpusr3/avibrz/OpenFOAM/ROOT/powerpc64-unknown-linux-gnu/sys-include checking for suffix of object files... configure: error: in `/bgpusr3/avibrz/OpenFOAM/gcc-build/powerpc64-unknown-linux-gnu/libgcc': configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. make[2]: *** [configure-stage1-target-libgcc] Error 1 make[2]: Leaving directory `/bgpusr3/avibrz/OpenFOAM/gcc-build' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/bgpusr3/avibrz/OpenFOAM/gcc-build' make: *** [all] Error 2 --------------------------------------- Side note: /bgpusr3/avibrz == $HOME Having a look at /bgpusr3/avibrz/OpenFOAM/gcc-build/powerpc64-unknown-linux-gnu/libgcc/config.log I find this: --------------------------------------- configure:3211: checking for suffix of object files configure:3233: /bgpusr3/avibrz/OpenFOAM/gcc-build/./gcc/xgcc -B/bgpusr3/avibrz/OpenFOAM/gcc-build/./gcc/ -B/bgpusr3/avibrz/OpenFOAM/ROOT/powerpc64-unknown-linux-gnu/bin/ -B/bgpusr3/avibrz/OpenFOAM/ROOT/powerpc64-unknown-linux-gnu/lib/ -isystem /bgpusr3/avibrz/OpenFOAM/ROOT/powerpc64-unknown-linux-gnu/include -isystem /bgpusr3/avibrz/OpenFOAM/ROOT/powerpc64-unknown-linux-gnu/sys-include -c -g -O2 conftest.c >&5 /bgpusr3/avibrz/OpenFOAM/gcc-build/./gcc/cc1: error while loading shared libraries: libmpc.so.2: cannot open shared object file: No such file or directory configure:3237: $? = 1 --------------------------------------- But libmpc.so.2 is there. I even took care of creating artificial symbolic links to satisfy this bizarre 'powerpc64-unknown-linux-gnu' under ROOT. This is how I'm configuring GCC as I took care of passing correct directories for MPC installation: --------------------------------------- gcc-build$ ../gcc-4.5.1/configure --prefix=$HOME/OpenFOAM/ROOT --with-stage1-ldflags="-L$HOME/OpenFOAM/ROOT/lib" --with-gmp="$HOME/OpenFOAM/ROOT" --with-mpfr="$HOME/OpenFOAM/ROOT" --with-ppl="$HOME/OpenFOAM/ROOT" --with-mpc="$HOME/OpenFOAM/ROOT" --enable-languages=c++,fortran --------------------------------------- Any tip ? -- Summary: GCC build fails: can't find MPC Product: gcc Version: 4.5.1 Status: UNCONFIRMED Severity: blocker Priority: P3 Component: other AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: avi at unix dot sh GCC build triplet: powerpc64-linux GCC host triplet: powerpc64-linux GCC target triplet: powerpc64-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45760