yu jianhua,yu
2011-Dec-22 09:11 UTC
[LLVMdev] Link error using LLVM 2.0 based on XCode 4.0.1
Hey All; Meet the following link error using LLVM 2.0 based on XCode 4.0.1, I don't know what does it mean and how to fix it? please help, thanks. ld: bad codegen, pointer diff in ___cxx_global_var_init79 to global weak symbol __ZN5boost16exception_detail23exception_ptr_bad_allocILi42EE1eE for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation) Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang++ failed with exit code 1 ENV: yuma:MyApp yujianhuayu$ clang -v Apple clang version 2.0 (tags/Apple/clang-138) (based on LLVM 2.9svn) Target: x86_64-apple-darwin10 Thread model: posix BTW: Seems link well for simulator but bad for device. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111222/d8bacf7d/attachment.html>
Eli Friedman
2011-Dec-22 16:54 UTC
[LLVMdev] Link error using LLVM 2.0 based on XCode 4.0.1
On Thu, Dec 22, 2011 at 1:11 AM, yu jianhua,yu <yujianhua1982 at 126.com> wrote:> Hey All; > > Meet the following link error using LLVM 2.0 based on XCode 4.0.1, I don't > know what does it mean and how to fix it? please help, thanks. > > ld: bad codegen, pointer diff in ___cxx_global_var_init79 to global weak > symbol __ZN5boost16exception_detail23exception_ptr_bad_allocILi42EE1eE for > architecture armv7 > clang: error: linker command failed with exit code 1 (use -v to see > invocation) > Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang++ > failed with exit code 1This isn't really the right place for this question; I'd suggest the Apple Developer Forums (http://devforums.apple.com). That said, see http://stackoverflow.com/questions/6087292/bad-codegen-pointer-diff-in-boost-error-in-32-bit-build or http://stackoverflow.com/questions/5285844/bad-codegen-pointer-diff-linker-error-with-xcode-4 . -Eli
Possibly Parallel Threads
- [LLVMdev] Apple Xcode, LLVM, and automatic (or permanent) breakpoints
- [LLVMdev] Apple Xcode, LLVM, and automatic (or permanent) breakpoints
- [LLVMdev] Apple clang 4.2 based on llvm 3.2 produces a wrong "instruction requires:arm-mode"
- [LLVMdev] Apple clang 4.2 based on llvm 3.2 produces a wrong "instruction requires:arm-mode"
- [LLVMdev] ld: Assertion failed: (memberIndex != 0), function makeObjectFileForMember