http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57476

            Bug ID: 57476
           Summary: Building gcc-4.7.3: build not passing mpc library
                    location
           Product: gcc
           Version: 4.7.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: cmhoward2 at alaska dot edu

Created attachment 30229
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30229&action=edit
configure log

Hello. When attempting to do a local (non-root) build of gcc-4.7.3, where
libmpc is located in a non-standard location (but one that is in LDFLAGS and
LD_LIBRARY_PATH environment variables), the build process fails to pass this
down to everything that needs it when building in the

 host-x86_64-unknown-linux-gnu/gcc/

directory. Eventually the build fails with an error saying that linker cannot
find -lmpc. I configure with

./configure --prefix=/center/w/cmhoward2/theta/local
--with-mpc-lib=/center/w/cmhoward2/theta/local/lib

I was eventually able to fix the build by editing file

 host-x86_64-unknown-linux-gnu/gcc/Makefile

Replacing

 GMPLIBS = -lmpc -lmpfr -lgmp

with

 GMPLIBS = -L/center/w/cmhoward2/theta/local/lib -lmpc -lmpfr -lgmp

But I have no idea how Makefile.in or the configure system would need to be
changed to properly fix the problem.

I have not tested with 4.8.0 because I am not wanting to use that version.
However, shortly I will do a clean build to reproduce an example of the exact
error, and update this ticket.

Reply via email to