https://llvm.org/bugs/show_bug.cgi?id=26963

            Bug ID: 26963
           Summary: Linking fails on OS X with -flto
           Product: compiler-rt
           Version: unspecified
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: compiler-rt
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

>From reading https://llvm.org/bugs/show_bug.cgi?id=18279 it appears that it may
be impossible to build compiler-rt with the -flto flag. Just in case this
should work on OS X i'm filing this issue with what I see when doing this:

error:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib:
library member:
lib/clang/3.9.0/lib/darwin/libclang_rt.profile_osx.a(InstrProfilingRuntime.cc.o)
is not an object file (not allowed in a library with multiple architectures)
error:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib:
library member:
lib/clang/3.9.0/lib/darwin/libclang_rt.profile_osx.a(InstrProfilingRuntime.cc.o)
is not an object file (not allowed in a library with multiple architectures)
error:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib:
library member:
lib/clang/3.9.0/lib/darwin/libclang_rt.profile_osx.a(InstrProfilingRuntime.cc.o)
is not an object file (not allowed in a library with multiple architectures)
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar:
internal ranlib command failed


More details at https://github.com/springmeyer/build-llvm/issues/2

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to