On 12/21/2011 09:11 AM, Jonathan Wakely wrote:
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.
See: http://gcc.gnu.org/install/configure.html
--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.
An alternate is to build and install the pre-req libraries in
/usr/local and then update /etc/ld.config to search /usr/local/lib.
--
Michael Eager eager@xxxxxxxxxxxx
1960 Park Blvd., Palo Alto, CA 94306 650-325-8077