[Bug other/45760] New: GCC build fails: can't find MPC
avi at unix dot sh
gcc-bugzilla@gcc.gnu.org
Thu Sep 23 13:07:00 GMT 2010
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
More information about the Gcc-bugs
mailing list