[webkit-qt] cannot compile debug version qtwebkit23 with gcc-4.2 on Mac

Alexis Menard alexis at webkit.org
Fri Nov 30 02:53:14 PST 2012


On Fri, Nov 30, 2012 at 7:37 AM, Cheng, Bobber
<BCheng at intercalleurope.com> wrote:
> Hi all,
>
>
>
> As I said in bug https://bugs.webkit.org/show_bug.cgi?id=102057, I cannot
> compile debug version qtwebkit with gcc-4.2 that’s shipped in XCode 4.5.2
> after updating my xcode as Zeno’s suggestion. Any suggestion?
>
>
>
> Compiling command: (I can compile release version if removing –debug)
>
> QTDIR=/usr/local/Cellar/qt/4.8.2b nohup Tools/Scripts/build-webkit --qt
> --no-video --no-sql-database --no-icon-database --no-webgl
> --no-3d-rendering -spec macx-g++ --makeargs="-j4" --debug
>

llvm-gcc-4.2 will be removed in the next version of Xcode. As you can
see gcc 4.2 is a very old version, I'm already surprised that you went
that far. Why you just don't use clang? I'm pretty sure it produces
better binaries than GCC 4.2 these days (especially on the Mac).

>
>
>
>
> Compiling error is:
>
>  /usr/bin/ranlib: archive member: libWebCore.a(JSTreeWalkerCustom.o) size
> too large (archive member extends past the end of the file)
>
> ar: internal ranlib command failed
>
>
>
> $ ls -lh WebKitBuild/Debug/Source/WebCore/libWebCore.a
>
> -rw-r--r--  1 set  staff   4.3G Nov 13 17:03
> WebKitBuild/Debug/Source/WebCore/libWebCore.a
>
>
>
> $ libtool -V
>
> Apple Inc. version cctools-836
>
>
>
> $ gcc --version
>
> i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build
> 5658) (LLVM build 2336.11.00)
>
> Copyright (C) 2007 Free Software Foundation, Inc.
>
> This is free software; see the source for copying conditions.  There is NO
>
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
>
>
> Thanks,
>
> Bobber
>
>
>
>
> _______________________________________________
> webkit-qt mailing list
> webkit-qt at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo/webkit-qt
>



-- 
Software Engineer @
Intel Open Source Technology Center


More information about the webkit-qt mailing list