This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: cc1 is missing libraries on linux
- From: Ian Lance Taylor <iant at google dot com>
- To: Christer Solskogen <christer dot solskogen at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Fri, 09 Mar 2012 08:26:30 -0800
- Subject: Re: cc1 is missing libraries on linux
- References: <jjd318$ij0$1@dough.gmane.org>
Christer Solskogen <christer.solskogen@gmail.com> writes:
> I installed (from source) gmp, mpfr, mpc, ppl, cloog, binutils and gcc
> in the same PREFIX. Everything compiled just fine. But running gcc is
> another matter, or in fact, cc1. cc1 is missing a lot of libraries:
>
> libcloog-isl.so.1 => not found
> libisl.so.6 => not found
> libppl_c.so.4 => not found
> libppl.so.9 => not found
> libgmpxx.so.4 => not found
> libmpfr.so.4 => not found
> libgmp.so.10 => not found
> libdl.so.2 => /lib64/libdl.so.2 (0x0000003e20200000)
> libc.so.6 => /lib64/libc.so.6 (0x0000003e1fe00000)
> /lib64/ld-linux-x86-64.so.2 (0x0000003e1fa00000)
>
> Should't gcc find those automagicly?
No. You need to set LD_LIBRARY_PATH or install those libraries in a
place where the system dynamic linker can find them by default, or add
the directory where they are installed to /etc/ld.so.conf. If you built
the supporting libraries yourself, the simplest approach is to use
--disable-shared when you configure them.
Ian