[cfe-dev] Linker error with -flto
Chris Lattner
clattner at apple.com
Wed Jul 7 16:27:53 PDT 2010
On Jun 24, 2010, at 12:30 AM, Robert Purves wrote:
>>> Broken module found, compilation aborted!
>>> Stack dump:
>>> 0. Running pass 'Function Pass Manager' on module 'ld-temp.o'.
>>> 1. Running pass 'Module Verifier' on function '@main'
>>> clang: error: linker command failed due to signal 6 (use -v to see invocation)
>>
>> This sounds like you're using clang with an old liblto. Try replacing the liblto (in /usr/lib/libLTO.dylib and /Developer/usr/lib/libLTO.dylib) with the one built when you built clang.
>
> I didn't build it. Everything is from the recent Xcode 3.2.3 release
>
> $ ls -l /usr/lib/libLTO.dylib
> -rwxrwxr-x 1 root admin 25934400 11 May 11:49 /usr/lib/libLTO.dylib
> $ ls -l /Developer/usr/lib/libLTO.dylib
> -rwxrwxr-x 1 root admin 25934400 11 May 11:49 /Developer/usr/lib/libLTO.dylib
That turns out to be a serious bug in Xcode 3.2.3. I'll file a bug internally, thanks!
-Chris
More information about the cfe-dev
mailing list