You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
It makes us emit __eh_frame sections without relocations even on older OS X versions. Apparently any ld64 after version 97.17 (Xcode 3.2.6) should be able to cope, but before that a newer version would have to be installed manually.
llvmbot
transferred this issue from llvm/llvm-bugzilla-archive
Dec 9, 2021
Extended Description
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 db8cb22)
The text was updated successfully, but these errors were encountered: