[LLVMdev] Link error using LLVM 2.0 based on XCode 4.0.1

Eli Friedman eli.friedman at gmail.com
Thu Dec 22 08:54:01 PST 2011

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 1

This isn't really the right place for this question; I'd suggest the
Apple Developer Forums (http://devforums.apple.com).  That said, see
or http://stackoverflow.com/questions/5285844/bad-codegen-pointer-diff-linker-error-with-xcode-4


More information about the llvm-dev mailing list