[Interest] OS X UB build producing "bad codegen" link error with Xcode 4.6.2/llvm

Bob Hood bhood2 at comcast.net
Fri Jan 31 14:11:07 CET 2014


Looking for some insight here.  I'm not a Mac aficionado.

I'm building Qt 4.8.5, under OS X 10.84, using Xcode 4.6.2, with
QMAKESPEC=macx-llvm.  The full configure line I'm using is:

./configure -opensource -confirm-license -static -fast -cocoa -sdk
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk
-arch i386 x86_64 -prefix /usr/local/qt/4.8.5/macx_static -nomake examples
-nomake demos

The build as a whole seems to go fine, but I'm getting the following link
error when Qt Assistant is built:

ld: bad codegen, pointer diff in
fulltextsearch::clucene::QHelpSearchIndexReaderClucene::run()     to global
weak symbol vtable for QtSharedPointer::ExternalRefCountDatafor architecture i386

I'm assuming this link error is responsible for my final "make install" not
producing a usable image (the bin/ folder, for example, only contains moc,
rcc, and uic -- no qmake or any other files).

Is there some additional option needed on the "configure" line?  Or is it just
a general incompatibility with Qt 4.8.5 and Xcode 4.6.2?



More information about the Interest mailing list