Opened 5 years ago
Closed 5 years ago
#59097 closed defect (fixed)
gmp: fails to build with MacPorts 2.6.0 on < 10.9
Reported by: | mojca (Mojca Miklavec) | Owned by: | MarcusCalhoun-Lopez (Marcus Calhoun-Lopez) |
---|---|---|---|
Priority: | High | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | ||
Port: | gmp |
Description
gmp is trying to use clang++-8.0 as the C++ compiler and system gcc as the C compiler, but it doesn't seem to depend on clang-8.0 for building, and fails to build.
It does build with configure.compiler=cc
, but then macports immediately complains that it doesn't link against libc++
and tries to rebuild it.
Change History (5)
comment:1 Changed 5 years ago by mojca (Mojca Miklavec)
comment:2 Changed 5 years ago by kencu (Ken)
I build it myself with configure.compiler=macports-clang-5.0, and have no trouble.
For some reason Marcus went to some trouble to capture "CC" prior to portconfigure.tcl running, and bakes that into the build. So this appears to be done on purpose -- but at this moment I don't know why.
Presumably, we just need to stop doing that, I guess, if the reason is no longer too important, whatever it was.
comment:3 Changed 5 years ago by mojca (Mojca Miklavec)
For me a perfectly fine workaround was to have clang 8.0 installed before installing gmp (but clang 8.0 came from the buildbot).
comment:4 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)
Looks like Joshua fixed it in [3df0e02b5fda176c9b2d37dfbc982112b7e29332/macports-ports].
comment:5 Changed 5 years ago by jmroot (Joshua Root)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Sample log from https://build.macports.org/builders/ports-10.6_x86_64-builder/builds/25