[LLVMbugs] [Bug 20212] New: -mmacosx-version-min=10.5 causes a linker error with latest clang/llvm from trunk

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Jul 5 06:29:49 PDT 2014


            Bug ID: 20212
           Summary: -mmacosx-version-min=10.5 causes a linker error with
                    latest clang/llvm from trunk
           Product: clang
           Version: trunk
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: t.poechtrager at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Latest clang from trunk causes a linker error with '-mmacosx-version-min=' <=
10.5 given.
Xcode clang works as expected (note: this only happens for x86_64).

$ echo "int main(){return 0;}" | ~/llvm-trunk/bin/clang -xc
-mmacosx-version-min=10.5 -arch x86_64 -
ld: symbol index out of range file
'/var/folders/yv/43njmxj17k7gv_04z6m21krm0000gn/T/--fab1f1.o' for architecture
clang: error: linker command failed with exit code 1 (use -v to see invocation)

$ ld -v
@(#)PROGRAM:ld  PROJECT:ld64-236.3
configured to support archs: armv6 armv7 armv7s arm64 i386 x86_64 armv6m armv7m
LTO support using: LLVM version 3.4svn

$ ~/llvm-trunk/bin/clang --version
clang version 3.5.0 (http://llvm.org/git/clang.git
c556f81241cf74850840c2e0df7a8f213674074d) (http://llvm.org/git/llvm.git

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140705/c4c6ec6a/attachment.html>

More information about the llvm-bugs mailing list