Search code examples
iosxcodellvmclangllvm-clang

Compiler error with LLVM Xcode Version 4.6.1 (4H512)


Seeing this error when we recently upgrade Xcode to 4.6.1. Was able to compile perfectly prior to this version. Any insight into this message? Seems like a 32/64 bit issue?

From looking at LLVM Patch logs it appears that it's an unfortunate limitation of the MachO format.

fatal error: error in backend: Section too large, can't encode r_address (0x1000005) into 24 bits of scattered relocation entry.

Any insights?


Solution

  • To fix this, I've set the LLVM compilation level to Fastest, Smallest [-Os].