I assume you're on 10.6.8 or newer -- clang and ld are thinking you are building against something newer than 10.5, so looking for the usual link libraries on 10.6.8.
But the 10.5 SDK doesn't have that -lcrt1.10.6.o So -- it should work if you set the deployment target to 10.5. Adding a flag like this -mmacosx-version-min=10.5 should do it. <https://stackoverflow.com/questions/2923502/what-does-macosx-version-min-imply> Ken On 2018-10-17, at 3:35 PM, Riccardo Mottola via macports-users wrote: > Hi, > > I am trying to compile a program using macport's clang. It should build with > clang 3.9 as other tried that. > > It uses ccache, I installed that too from macports. > > Being on Leopart, I set the 10.5 SDK. > > However, I get this: > > configure:9841: checking whether the C++ compiler (/opt/local/bin/ccache > clang++-mp-3.9 -isysroot /Developer/SDKs/MacOSX10.5.sdk -fno-exceptions > -fno-strict-aliasing -fno-rtti ) actually is a C++ compiler > configure:9860: /opt/local/bin/ccache clang++-mp-3.9 -o conftest -isysroot > /Developer/SDKs/MacOSX10.5.sdk -fno-exceptions -fno-strict-aliasing -fno-rtti > -Qunused-arguments conftest.C 1>&5 > ld: library not found for -lcrt1.10.6.o > clang: error: linker command failed with exit code 1 (use -v to see > invocation) > > > If you have any clue, help... of what could be wrong, please! > > Riccardo >
