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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to