[Development] Building Qt5 from Git failed on Mac OSX

Simon Hausmann simon.hausmann at digia.com
Mon Dec 10 10:23:28 CET 2012


On Friday, December 07, 2012 11:57:06 AM Ziller Eike wrote:
> On 07.12.2012, at 11:05, Sergio Ahumada <sergio.ahumada at digia.com> wrote:
> > On 12/07/2012 10:56 AM, Ziller Eike wrote:
> >> Hi,
> >> 
> >> On 07.12.2012, at 00:26, Yang Fan <missdeer at gmail.com> wrote:
> >>> Hi All,
> >>> 
> >>> I'm trying building Qt5 from Git on Mac OS X 10.8.2, but it fails. I
> >>> used the following configure: ./configure -developer-build -opensource
> >>> -confirm-license -openssl -icu -nomake tests -nomake demos -nomake
> >>> examples -platform macx-clang
> >>> 
> >>> And my clang version is:
> >>> Yang-FanmatoMac-mini:qt5 yangfan$ clang -v
> >>> 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
> >>> 
> >>> The error messages:
> >>> clang++ -headerpad_max_install_names -mmacosx-version-min=10.6 -o
> >>> ../../bin/jsc obj/debug/jsc.o  
> >>> -Wl,-force_load,/Users/yangfan/Development/qt5/qtwebkit/Source/JavaScri
> >>> ptCore/debug/libJavaScriptCore_debug.a
> >>> -L/Users/yangfan/Development/qt5/qtwebkit/Source/JavaScriptCore/debug
> >>> -Wl,-force_load,/Users/yangfan/Development/qt5/qtwebkit/Source/WTF/debu
> >>> g/libWTF_debug.a
> >>> -L/Users/yangfan/Development/qt5/qtwebkit/Source/WTF/debug -licucore
> >>> -framework AppKit -F/Users/yangfan/Development/qt5/qtbase/lib
> >>> -framework QtCore>>> 
> >>> Undefined symbols for architecture x86_64:
> >>>   "_llint_begin", referenced from:
> >>>       JSC::CodeBlock::bytecodeOffset(JSC::ExecState*,
> >>>       JSC::ReturnAddressPtr) in 
libJavaScriptCore_debug.a(CodeBlock.o)>>>   
> >>>   "_llint_end", referenced from:
> >>>       JSC::CodeBlock::bytecodeOffset(JSC::ExecState*,
> >>>       JSC::ReturnAddressPtr) in 
libJavaScriptCore_debug.a(CodeBlock.o)>>> 
> >>> […..]
> >>> 
> >>>  "_llint_throw_during_call_trampoline", referenced from:
> >>>       JSC::LLInt::callToThrow(JSC::ExecState*, JSC::Instruction*) in
> >>>       libJavaScriptCore_debug.a(LLIntExceptions.o)>>>   
> >>>   "_llint_throw_from_slow_path_trampoline", referenced from:
> >>>       JSC::LLInt::initialize() in libJavaScriptCore_debug.a(LLIntData.o)
> >>> 
> >>> ld: symbol(s) not found for architecture x86_64
> >>> clang: error: linker command failed with exit code 1 (use -v to see
> >>> invocation) make[4]: *** [../../bin/jsc] Error 1
> >>> make[3]: *** [debug] Error 2
> >>> make[2]: *** [sub-jsc-pro-make_first-ordered] Error 2
> >>> make[1]: ***
> >>> [sub-Source-JavaScriptCore-JavaScriptCore-pro-make_first-ordered] Error
> >>> 2 make: *** [module-qtwebkit-make_first] Error 2
> >>> 
> >>> Any suggestion?
> >> 
> >> This has been fixed in qtwebkit with
> >> 
> >> commit b71580caec90bb8c4f0193b131b608e49003ba63
> >> Author: Pierre Rossi <pierre.rossi at digia.com>
> >> Date:   Sat Dec 1 02:11:16 2012 +0100
> >> 
> >>     Re-enable LLInt on mac with the proper fix
> >> 
> >> You can try "cd qtwebkit && git checkout master && git pull" and build
> >> again.> 
> > that fix is also already in the 'stable' branch.
> > 
> > if git pull doesn't fix it .. check that you are tracking the right
> > repository.
> > 
> > [seahumad at sahumada qtwebkit]$ git remote -v
> > origin  git://gitorious.org/qt/qtwebkit.git
> > 
> > and *not*:
> > 
> > git://gitorious.org/qtwebkit/qt5-module.git
> > 
> > which is old, unused and deprecated.
> 
> Guys, wasn't there some consensus to announce changes that might destroy
> people's workflows? This is the first time I hear about qtwebkit now having
> a different upstream, and of course I still have/had
> qtwebkit/qt5-module.git because nobody told anyone that we need to run git
> submodule sync.

My bad, apologies! Somehow it it slipped through my cracks that the url change 
would not actually be automatic but require "developer intervention".

I'll send a separate email with a new subject about it.


Simon



More information about the Development mailing list