[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


http://llvm.org/bugs/show_bug.cgi?id=20212

            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
x86_64
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
armv7em
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
db8cb2223d5dbe5e31099a2d69d4a4c8eab4b7f4)

-- 
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