This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: GCC 5.3.0 Make install fails
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Gedaliah Wolosh <gwolosh at njit dot edu>
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Tue, 12 Jul 2016 21:56:48 +0100
- Subject: Re: GCC 5.3.0 Make install fails
- Authentication-results: sourceware.org; auth=none
- References: <57853EA8.7070501@njit.edu> <CAH6eHdRbYL=557M=zhasHCASb1OwvNPmxnwCLbfSVNJ_a3S05Q@mail.gmail.com> <57854674.5040903@njit.edu>
On 12 July 2016 at 20:35, Gedaliah Wolosh wrote:
>
>
> Jonathan Wakely wrote:
>
>
> On 12 July 2016 at 20:02, Gedaliah Wolosh wrote:
>
>
> Hello,
>
> I'm running this on Scientific Linux 7.2
>
> My configure --
>
> ../gcc-5.3.0/configure --prefix=$PREFIX \
>
>
>
> Maybe not the problem, but do you already have another version of GCC
> 5.x in $PREFIX or in your $PATH?
>
>
>
> In fact, I do in $PREFIX. My plan was to wipe it after successfully building
> the new version.
Then I think what's happening is that the new GCC you've built depends
on the shared libraries in $PREFIX/lib64 but the dynamic loader can't
find those libraries.
If you set LD_LIBRARY_PATH=$PREFIX/lib64 in your environment that
should allow you to build, but it might be better to just ensure you
don't use $PREFIX/bin/g++ for the build.