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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 08/27/2010 12:58 PM, Tom Browder wrote:
> 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.

I suspect that LD_LIBRARY_PATH does not include the directory in which
you placed libmpc, so nothing can find it at runtime.

It's a lot easier to build the prerequisites as part of gcc.  See the
script in http://gcc.gnu.org/svn/gcc/trunk/contrib/download_prerequisites

Andrew.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux