Bug 57841 - [Qt] [Symbian] Enable webkit build with GCCE on Symbian.
Summary: [Qt] [Symbian] Enable webkit build with GCCE on Symbian.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: S60 Hardware S60 3rd edition
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 50925 54202
  Show dependency treegraph
 
Reported: 2011-04-05 06:30 PDT by Liang Qi
Modified: 2011-05-23 13:53 PDT (History)
9 users (show)

See Also:


Attachments
The fix for Enable webkit build for the makefile build system with gcce (3.15 KB, patch)
2011-04-05 06:37 PDT, Liang Qi
no flags Details | Formatted Diff | Diff
The fix for Enable webkit build for the makefile build system with gcce (3.01 KB, patch)
2011-04-05 12:49 PDT, Liang Qi
no flags Details | Formatted Diff | Diff
The fix for Enable webkit build for the makefile build system with gcce (2.70 KB, patch)
2011-04-06 08:20 PDT, Liang Qi
no flags Details | Formatted Diff | Diff
Enable webkit build with GCCE on Symbian. (2.81 KB, patch)
2011-04-06 08:23 PDT, Liang Qi
laszlo.gombos: review-
Details | Formatted Diff | Diff
Enable webkit build with GCCE on Symbian (3.00 KB, patch)
2011-04-07 07:27 PDT, Liang Qi
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Liang Qi 2011-04-05 06:30:25 PDT
If you have a Qt build under the makefile build system with gcce on linux or mac, 4.7 or master
You could have a try this command to build webkit from trunk:
export "WEBKITOUTPUTDIR=/home/liang/dev/git/webkit/WebKitBuild" && perl /home/liang/dev/git/webkit/Tools/Scripts/build-webkit --qt --qmake=/home/liang/build/gcce-webkit/bin/qmake --install-libs=/home/liang/build/gcce-webkit/lib --release
Comment 1 Liang Qi 2011-04-05 06:37:47 PDT
Created attachment 88219 [details]
The fix for Enable webkit build for the makefile build system with gcce
Comment 2 Siddharth Mathur 2011-04-05 06:47:56 PDT
Looks Ok to me, though you fix that Changelog entry to better match other prior entries. 
(I hope you are aware that only the RVCT 4.0 driven Symbian configuration will get bug fixes and performance tuning going forward, not GCC(E) for Symbian).
Comment 3 Jocelyn Turcotte 2011-04-05 06:54:52 PDT
Comment on attachment 88219 [details]
The fix for Enable webkit build for the makefile build system with gcce

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

> Source/JavaScriptCore/wtf/MathExtras.h:241
> +#if !COMPILER(MSVC) && !COMPILER(WINSCW) && !(COMPILER(RVCT) && (OS(SYMBIAN) || PLATFORM(BREWMP))) && !OS(SOLARIS) && !(COMPILER(GCC) && OS(SYMBIAN))

You should use the OS(SYMBIAN) part already in the statement, e.g. :
... && ((OS(SYMBIAN) && !COMPILER(GCC)) || PLATFORM(BREWMP))) && ...

> Source/WebCore/WebCore.pri:-149
> -        MMP_RULES += ALWAYS_BUILD_AS_ARM

What happenned with the MMP_RULES statement?

> Source/WebCore/WebCore.pri:150
> +    CONFIG += do_not_build_as_thumb

Thumb was only disabled for Linux armcc builds, now you disable it for all builds, is this intentional?
Comment 4 Liang Qi 2011-04-05 07:06:01 PDT
Please check $QTDIR/mkspecs/features/symbian/do_not_build_as_thumb.prf
Those old things are moved there.
Comment 5 Jocelyn Turcotte 2011-04-05 07:06:46 PDT
(In reply to comment #3)
> > Source/JavaScriptCore/wtf/MathExtras.h:241
> > +#if !COMPILER(MSVC) && !COMPILER(WINSCW) && !(COMPILER(RVCT) && (OS(SYMBIAN) || PLATFORM(BREWMP))) && !OS(SOLARIS) && !(COMPILER(GCC) && OS(SYMBIAN))
> 
> You should use the OS(SYMBIAN) part already in the statement, e.g. :
> ... && ((OS(SYMBIAN) && !COMPILER(GCC)) || PLATFORM(BREWMP))) && ...
> 
Forget that part, I didn't see the RVCT compiler part.
Comment 6 Liang Qi 2011-04-05 12:49:59 PDT
Created attachment 88296 [details]
The fix for Enable webkit build for the makefile build system with gcce
Comment 7 Liang Qi 2011-04-06 08:20:08 PDT
Created attachment 88428 [details]
The fix for Enable webkit build for the makefile build system with gcce
Comment 8 WebKit Review Bot 2011-04-06 08:21:48 PDT
Attachment 88428 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style']" exit_code: 1

Source/JavaScriptCore/ChangeLog:1:  ChangeLog entry has no bug number  [changelog/bugnumber] [5]
Total errors found: 1 in 4 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 9 Liang Qi 2011-04-06 08:23:56 PDT
Created attachment 88429 [details]
Enable webkit build with GCCE on Symbian.
Comment 10 Andras Becsi 2011-04-06 08:28:34 PDT
Comment on attachment 88429 [details]
Enable webkit build with GCCE on Symbian.

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

Great progress! LGTM.

> Source/WebCore/WebCore.pri:-149
> -        MMP_RULES += ALWAYS_BUILD_AS_ARM

Isn't this needed any more?
Comment 11 Liang Qi 2011-04-06 08:35:30 PDT
(In reply to comment #10)
> > Source/WebCore/WebCore.pri:-149
> > -        MMP_RULES += ALWAYS_BUILD_AS_ARM
> 
> Isn't this needed any more?
I answered this in comment #4
https://bugs.webkit.org/show_bug.cgi?id=57841#c4
Comment 12 Janne Koskinen 2011-04-07 03:51:19 PDT
>CONFIG += do_not_build_as_thumb

That is now on for all configurations? Or is there symbian - scope somewhere outside diff ? Otherwise looks good to me.

Did you encouter build issues with missing atomicity.h ? I recall I had to hack that out when building QtWebkit with GCCE 4.4.1.
Comment 13 Liang Qi 2011-04-07 04:18:43 PDT
Yes, there is a symbian scope outside of this patch.

And there is no issue about missing atomicity.h, I am using S^3 PDK 3.0.x. Build the qtwebkit both from 4.7 and trunk are fine.
Comment 14 Norbert Leser 2011-04-07 06:56:01 PDT
I applied this patch to arm build (relase) for symbian target, with SVG enabled. The build is fine (literally unchanged, for that target) but an existing issue with executing webkit apps remains, because the code segment exceeds the configured 0xE00000 for arm and gets overwitten by data segment.

If the patch would apply the same GCCE value 0x1000000 for armcc as well, the SVG runtime issue will be resolved. I suggest to update the patch for WebKit.pri:

- QMAKE_LFLAGS.ARMCC += --rw-base 0xE00000
+ QMAKE_LFLAGS.ARMCC += --rw-base 0x1000000

The comment lines before that also need to be updated accordingly.
Comment 15 Laszlo Gombos 2011-04-07 07:03:49 PDT
Comment on attachment 88429 [details]
Enable webkit build with GCCE on Symbian.

r- to include Norbert's finding as well in the same patch as I think it is related. Make sure the comment lines are updated as well.
Comment 16 Liang Qi 2011-04-07 07:27:08 PDT
Created attachment 88631 [details]
Enable webkit build with GCCE on Symbian

Add the change for RVCT.
Update the changelog.
Comment 17 Laszlo Gombos 2011-04-07 07:36:11 PDT
Comment on attachment 88631 [details]
Enable webkit build with GCCE on Symbian

r=me. Thanks.
Comment 18 WebKit Commit Bot 2011-04-07 09:41:51 PDT
Comment on attachment 88631 [details]
Enable webkit build with GCCE on Symbian

Clearing flags on attachment: 88631

Committed r83179: <http://trac.webkit.org/changeset/83179>
Comment 19 WebKit Commit Bot 2011-04-07 09:41:57 PDT
All reviewed patches have been landed.  Closing bug.
Comment 20 Ademar Reis 2011-05-23 13:53:56 PDT
This was also commited to Qt-4.7 (http://bugreports.qt.nokia.com/browse/QTBUG-18484) and therefore needs to be cherry-picked into qtwebkit-2.0 and qtwebkit-2.1.