This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Bug in Build System of gcc-4.5.1? Cannot Find libmpc.so.2


I have been wrestling with building gcc-4.5.1 on an old Linux i686
machine running SuSE 10 with gcc-4.0.3.

I have updated libtools and m4.

I have successfully built gmp, mpfr, and mpc.

I have passed to configure the '--with-X=Y' options to where gmp,
mpfr, and mpc are installed.  I have defined LDFLAGS with the location
of their libraries.  I have passed the '--with-stage1-ldflags=X'
option with the same information.

All this, yet I still get a build failure with these messages in the
"gcc_build/i686-pc-linux-gnu/libgcc/config.log" (note the build
directory is outside the gcc source tree):

gcc version 4.5.1 (GCC)
configure:3004: $? = 0
configure:2993: /home/tmb/src/gcc_build/./gcc/xgcc
-B/home/tmb/src/gcc_build/./gcc/ -B/usr/local/i686-pc-linux-gnu/bin/
-B/usr/local/i686-pc-linux-gnu/lib/ -isystem
/usr/local/i686-pc-linux-gnu/include -isystem
/usr/local/i686-pc-linux-gnu/sys-include    -V >&5
xgcc: '-V' must come at the start of the command line
configure:3004: $? = 1
configure:2993: /home/tmb/src/gcc_build/./gcc/xgcc
-B/home/tmb/src/gcc_build/./gcc/ -B/usr/local/i686-pc-linux-gnu/bin/
-B/usr/local/i686-pc-linux-gnu/lib/ -isystem
/usr/local/i686-pc-linux-gnu/include -isystem
/usr/local/i686-pc-linux-gnu/sys-include    -qversion >&5
xgcc: unrecognized option '-qversion'
xgcc: no input files
configure:3004: $? = 1
configure:3020: /home/tmb/src/gcc_build/./gcc/xgcc
-B/home/tmb/src/gcc_build/./gcc/ -B/usr/local/i686-pc-linux-gnu/bin/
-B/usr/local/i686-pc-linux-gnu/lib/ -isystem
/usr/local/i686-pc-linux-gnu/include -isystem
/usr/local/i686-pc-linux-gnu/sys-include    -o conftest -g -O2
conftest.c  >&5
/home/tmb/src/gcc_build/./gcc/cc1: error while loading shared
libraries: libmpc.so.2: cannot open shared object file: No such file
or directory
configure:3023: $? = 1
configure:3211: checking for suffix of object files
configure:3233: /home/tmb/src/gcc_build/./gcc/xgcc
-B/home/tmb/src/gcc_build/./gcc/ -B/usr/local/i686-pc-linux-gnu/bin/
-B/usr/local/i686-pc-linux-gnu/lib/ -isystem
/usr/local/i686-pc-linux-gnu/include -isystem
/usr/local/i686-pc-linux-gnu/sys-include    -c -g -O2  conftest.c >&5
/home/tmb/src/gcc_build/./gcc/cc1: error while loading shared
libraries: libmpc.so.2: cannot open shared object file: No such file
or directory

Note that the fatal error is that libmpc.so.2 cannot be found yet I
can see it in the place I told configure to look.

Am I missing some configuration option?

Any other ideas?

Note: I have built gcc-4.5.1 successfully on two other, more modern
systems (but with test results that may be questionable--reported to
this list).

Thanks.

-Tom

Thomas M. Browder, Jr.
Niceville, Florida
USA


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]