Bug 48222

Summary: [Qt] QtWebKit (qt-webkit-4.6.3) fails to link on Linux/MIPS
Product: WebKit Reporter: Stuart Longland <redhatter>
Component: WebKit QtAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Blocker CC: benjamin
Priority: P4 Keywords: Qt, QtTriaged
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   
Attachments:
Description Flags
Compressed build log for QtWebKit-4.6.3 (uncompressed: ~5MB) none

Description Stuart Longland 2010-10-25 00:22:07 PDT
Created attachment 71717 [details]
Compressed build log for QtWebKit-4.6.3 (uncompressed: ~5MB)

Hi all,

I'm in the process of trying to compile the full Qt suite for use with the KDE desktop.  Target platform is a few Lemote systems, namely one Yeeloong netbook and two Fulong desktops.  The compiling is being done on one of the Fulongs natively, using distcc between these three systems, and an x86_64 desktop (AMD PhenomII X6) with mipsel-unknown-linux-gnu cross-compiler.

Build seems to go okay, until it hits the final link stage where it errors out.  I have omitted the rather large call to the linker here (suffice to say it fills an entire 1600x1200 screen using a fairly small font), I've attached a compressed version of the log instead.  The error message I get is as follows.

/usr/lib/gcc/mipsel-unknown-linux-gnu/4.4.4/../../../../mipsel-unknown-linux-gnu/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
distcc[16541] ERROR: compile (null) on localhost failed
make: *** [../../../../lib/libQtWebKit.so.4.6.3] Error 1

Toolchain in use (on all distcc nodes; target mipsel-unknown-linux-gnu):
- binutils-2.20.1
- gcc-4.4.4
- glibc-2.11.2

I have not had issues compiling other packages using this setup, including Firefox which I am now using to post this bug.  I therefore have no reason to suspect distcc, however I may give it a try without.  I suspect the linker may be hitting some unhandled condition due to the large number of objects being compiled, and that is causing it to return the "Bad value".  Sadly, it provides no other hints.  If you have any advice on what I could do to try and either solve the problem or uncover further detail, please let me know.
Comment 1 Stuart Longland 2010-11-09 14:02:29 PST
Further information:

I've just upgraded one of the boxes to run the latest (as of yesterday afternoon UTC+10) CVS snapshot of binutils (2.21.51) which has seen a few MIPS-related commits.

This seems to resolve the problem, however I haven't yet tried running anything Webkit based to see if the binaries work... they at least build and link however which is a 100% improvement on where I was when the bug was filed.
Comment 2 Benjamin Poulain 2011-01-14 07:14:26 PST
Please follow this to report bugs on QtWebKit: http://trac.webkit.org/wiki/QtWebKitBugs

If you don't use the template, your bugs can be ignored for a long time...

> I've just upgraded one of the boxes to run the latest (as of yesterday afternoon 
> UTC+10) CVS snapshot of binutils (2.21.51) which has seen a few MIPS-related 
> commits.
> 
> This seems to resolve the problem, however I haven't yet tried running anything 
> Webkit based to see if the binaries work... they at least build and link however 
> which is a 100% improvement on where I was when the bug was filed.

I just close then. I will reopen if necessary.