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

naga raj gnuuser.raj@gmail.com
Wed Dec 21 17:11:00 GMT 2011


 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
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                       \
    --with-gmp=/home/nagaraju/tools/abc/     \
    --with-mpfr=/home/nagaraju/tools/abc/    \
    --with-mpc=/home/nagaraju/tools/abc/     \
    --with-ppl=no               \
    --with-cloog=no     \
    --target=microblaze-xilinx-elf                   \
    --prefix=/home/gnu/microblaze/lin                    \
    --program-prefix=mb-       \
    --with-newlib                       \
    --enable-languages=c,c++           \
    --enable-multilib                   \
    --disable-libquadmath               \
    --enable-static                     \

Thanks in Advance,

More information about the Gcc-help mailing list