[LLVMbugs] [Bug 14164] New: Linker crashes with -arch armv7s, -O3 and -flto options when linking static C++ libraries to Objective C++ project
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Oct 23 14:44:52 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=14164
Bug #: 14164
Summary: Linker crashes with -arch armv7s, -O3 and -flto
options when linking static C++ libraries to Objective
C++ project
Product: new-bugs
Version: 3.1
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: release blocker
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: alexander.zolotarev at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
$ clang --version
Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin12.2.0
Thread model: posix
XCode 4.5 build log:
Ld
"/Users/Alex/Library/Developer/Xcode/DerivedData/XXX-emxvfqwkfgcjzcabrnviozuswozs/Build/Intermediates/XXX.build/XXX-iphoneos/XXX.build/Objects-normal/armv7s/XXX"
normal armv7s
cd /Users/Alex/Developer/iphone/XXX
setenv IPHONEOS_DEPLOYMENT_TARGET 4.3
setenv PATH
"/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
-arch armv7s -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk
"-L/Users/Alex/Library/Developer/Xcode/DerivedData/XXX-emxvfqwkfgcjzcabrnviozuswozs/Build/Products/XXX-iphoneos"
-L/Users/Alex/Developer/XXX-iphone-production-armv7s/out/production
"-F/Users/Alex/Library/Developer/Xcode/DerivedData/XXX-emxvfqwkfgcjzcabrnviozuswozs/Build/Products/XXX-iphoneos"
-filelist
"/Users/Alex/Library/Developer/Xcode/DerivedData/XXX-emxvfqwkfgcjzcabrnviozuswozs/Build/Intermediates/XXX.build/XXX-iphoneos/XXX.build/Objects-normal/armv7s/XXX.LinkFileList"
-dead_strip -stdlib=libstdc++ -fobjc-link-runtime -miphoneos-version-min=4.3
-lfreetype -framework Foundation -framework UIKit -framework CoreGraphics
-framework OpenGLES -framework QuartzCore -framework CoreLocation -lxxx
-framework SystemConfiguration -o
"/Users/Alex/Library/Developer/Xcode/DerivedData/XXX-emxvfqwkfgcjzcabrnviozuswozs/Build/Intermediates/XXX.build/XXX-iphoneos/XXX.build/Objects-normal/armv7s/XXX"
0 0x10a39b1c0 __assert_rtn + 144
1 0x10a3ac287
mach_o::relocatable::CFStringSection<arm>::targetContent(mach_o::relocatable::Atom<arm>
const*, ld::IndirectBindingTable const&,
mach_o::relocatable::CFStringSection<arm>::ContentType*, unsigned int*) + 487
2 0x10a3abe6e
mach_o::relocatable::CFStringSection<arm>::contentHash(mach_o::relocatable::Atom<arm>
const*, ld::IndirectBindingTable const&) const + 30
3 0x10a3a997a
mach_o::relocatable::Atom<arm>::contentHash(ld::IndirectBindingTable const&)
const + 42
4 0x10a3e2297 ld::tool::SymbolTable::findSlotForReferences(ld::Atom const*,
ld::Atom const**) + 439
5 0x10a3e64f8 ld::tool::Resolver::convertReferencesToIndirect(ld::Atom
const&) + 104
6 0x10a3e63cc ld::tool::Resolver::doAtom(ld::Atom const&) + 940
7 0x10a3e8755 ld::tool::Resolver::linkTimeOptimize() + 277
8 0x10a3e8b6a ld::tool::Resolver::resolve() + 378
9 0x10a39b589 main + 585
A linker snapshot was created at:
/tmp/MWM Beta-2012-09-23-172655.ld-snapshot
ld: Assertion failed: (target != NULL), function targetContent, file
/SourceCache/ld64/ld64-134.9/src/ld/parsers/macho_relocatable_file.cpp, line
4822.
clang: error: linker command failed with exit code 1 (use -v to see invocation)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list