When continuing to build, using automate and autoconf, I ran into this:
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.
make: *** [config.status] Error 77
The config.log shows:
configure:2661: checking for C compiler default output file name
configure:2688: gcc conftest.c >&5
ld: library not found for -lcrt1.10.6.o
collect2: ld returned 1 exit status
There’s a lot of discussion about this, but basically, Apple didn’t check their own tool. Shame on you, Apple.
The fix is simple, embarrassingly so:
sudo ln -s /Developer/SDKs/MacOSX10.6.sdk/usr/lib/crt1.10.6.o /Developer/usr/llvm-gcc-4.2/lib
I would expect that this needs to be updated every release.
May 2nd, 2013 at 03:41
[…] 继续搜索,直接搜这个问题,会找到一些答案,但是解决方式不一定是完美的,起码我没按照那个方式去解决,比如这条解决方案: sudo ln -s /Developer/SDKs/MacOSX10.6.sdk/usr/lib/crt1.10.6.o /Developer/usr/llvm-gcc-4.2/lib […]