microblaze: error while loading shared libraries: libmpc.so.2

Jonathan Wakely jwakely.gcc@gmail.com
Wed Dec 21 17:50:00 GMT 2011


On 21 December 2011 16:56, naga raj wrote:
> Hi,
>
>  I have build a microblaze toolchain with Gcc version 4.6.2.
>  I was successful in building the toolchain but when i try to compile
> a program it is generating following message.
>
>  [nagaraju]$ /home/gnu/microblaze/lin/bin/mb-gcc swap.c
> /home/gnu/microblaze/lin/libexec/gcc/microblaze-xilinx-elf/4.6.2/cc1:
> error while loading shared libraries: libmpc.so.2: cannot open shared
> object file: No such file or directory
>
>  If I add libmpc.so.2 path to my LD_LIBRARY_PATH it is working fine.
> My question is, what should I add to build scripts so that I need not
> explicitly add this library path to LD_LIBRARY_PATH.
>
>  My configure options are:
>
> . /configure                       \

Don't do this, the installation docs strongly recommend not running
configure in the source directory.

>    --with-gmp=/home/nagaraju/tools/abc/     \
>    --with-mpfr=/home/nagaraju/tools/abc/    \
>    --with-mpc=/home/nagaraju/tools/abc/     \

Don't do this, put the GMP, MPFR amd MPC sources in the GCC source
directory, in directories named "gmp", "mpfr" and "mpc" respectively.

This is done automatically for you if you run the
contrib/download_prerequisites script

See http://advogato.org/person/redi/diary/253.html for more details.



More information about the Gcc-help mailing list