Bug 82331 - [Qt] Make debug build work on 32 bit
Summary: [Qt] Make debug build work on 32 bit
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
Keywords: Qt, QtTriaged
Depends on:
Reported: 2012-03-27 06:23 PDT by Csaba Osztrogonác
Modified: 2012-03-27 10:48 PDT (History)
6 users (show)

See Also:

proposed fix (2.17 KB, patch)
2012-03-27 06:40 PDT, Csaba Osztrogonác
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Csaba Osztrogonác 2012-03-27 06:23:27 PDT
Unfortunately debug build is impossible on 32 bit long 
time ago, because linker runs out of 4Gb address space.

Kov pointed that --no-keep-memory option of ld is what we need.
(gold linker doesn't support this option only ld)

I think it's time to fix 32 bit debug build. Patch is coming soon.
Comment 1 Csaba Osztrogonác 2012-03-27 06:40:59 PDT
Created attachment 134044 [details]
proposed fix
Comment 2 Csaba Osztrogonác 2012-03-27 06:41:54 PDT
Comment on attachment 134044 [details]
proposed fix

View in context: https://bugs.webkit.org/attachment.cgi?id=134044&action=review

> Tools/qmake/mkspecs/features/unix/default_pre.prf:-17
> -# Use gold if available
> -!scratchbox:!mac:exists(/usr/bin/ld.gold): QMAKE_LFLAGS += -fuse-ld=gold
> -

I had to move this to default_post.prf, because CONFIG(debug, debug|release) doesn't work here.
Comment 3 WebKit Review Bot 2012-03-27 10:48:01 PDT
Comment on attachment 134044 [details]
proposed fix

Clearing flags on attachment: 134044

Committed r112282: <http://trac.webkit.org/changeset/112282>
Comment 4 WebKit Review Bot 2012-03-27 10:48:06 PDT
All reviewed patches have been landed.  Closing bug.