Bug 56207 - 'make check-mpc' fails to build tests
Summary: 'make check-mpc' fails to build tests
Status: UNCONFIRMED
Alias: None
Product: gcc
Classification: Unclassified
Component: testsuite (show other bugs)
Version: 4.8.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: testsuite-fail
Depends on:
Blocks:
 
Reported: 2013-02-04 18:03 UTC by simon
Modified: 2021-12-15 20:17 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description simon 2013-02-04 18:03:32 UTC
This is with r195682, on Mac OS X 12.2.1.

I have the SVN source tree in $source, and I have GMP 5.1.0, MPFR 3.1.1, and MPC 1.0.1 symlinked to $source/gmp, mpfr and mpc respectively.

Having built the compiler in $build (a parallel directory), make check-gmp and make check-mpfr run successfully.

However, make check-mpc fails to build with

/bin/sh ../libtool --tag=CC   --mode=link gcc  -g -O2 -no-install  -o tabs tabs.o libmpc-tests.la ../src/libmpc.la -lmpfr -lgmp 
libtool: link: warning: `-no-install' is ignored for x86_64-apple-darwin12
libtool: link: warning: assuming `-no-fast-install' instead
libtool: link: gcc -g -O2 -o tabs tabs.o  ./.libs/libmpc-tests.a ../src/.libs/libmpc.a -lmpfr /Users/simon/tmp/gcc-build-195682-patched/./gmp/.libs/libgmp.a
ld: library not found for -lmpfr

If I cd $build/mpc/test and make check, it runs successfully.

I believe that the problem is that the LDFLAGS set in $build/mpc/test/Makefile is being overridden.