RESOLVED FIXED 90227
[Chromium] Compilation fails under gcc 4.7
https://bugs.webkit.org/show_bug.cgi?id=90227
Summary [Chromium] Compilation fails under gcc 4.7
Han Shen
Reported 2012-06-28 16:58:10 PDT
We are building WebKit using gcc 4.7. And we need option "-Wno-c++0x-compat" for a successful build. The gcc_version condition to control this in "WebCore.gyp" and other gyp files is "... gcc_version==46", should be replaced with "... gcc_version>=46". To reproduce, compile WebKit using gcc 4.7, you'll get something like this - Source/WTF/wtf/NullPtr.h:52:1: error: identifier ‘nullptr’ is a keyword in C++11 [-Werror=c++0x-compat] cc1plus: all warnings being treated as errors
Attachments
proposed patch (3.00 KB, patch)
2012-07-18 15:50 PDT, Han Shen
no flags
Updated patchset - 2. (3.00 KB, patch)
2012-07-19 13:28 PDT, Han Shen
no flags
Updated for ToT (3.56 KB, patch)
2012-07-19 16:41 PDT, Han Shen
no flags
Patch for landing (7.17 KB, patch)
2012-07-20 11:12 PDT, Tony Chang
no flags
Patch for landing (7.17 KB, patch)
2012-07-20 12:12 PDT, Tony Chang
no flags
Han Shen
Comment 1 2012-07-11 15:56:25 PDT
Ping?
Han Shen
Comment 2 2012-07-18 15:50:31 PDT
Created attachment 153119 [details] proposed patch
Han Shen
Comment 3 2012-07-19 13:28:00 PDT
Created attachment 153334 [details] Updated patchset - 2.
Ryosuke Niwa
Comment 4 2012-07-19 16:23:19 PDT
Please update the patch for ToT.
Han Shen
Comment 5 2012-07-19 16:41:58 PDT
Created attachment 153373 [details] Updated for ToT
Han Shen
Comment 6 2012-07-19 16:42:33 PDT
(In reply to comment #4) > Please update the patch for ToT. Done thanks!
Ryosuke Niwa
Comment 7 2012-07-19 16:44:21 PDT
Oops, sorry, I meant to cc tony, not andersca. Please update the bug title in the change log (prefix with [Chromium]).
Han Shen
Comment 8 2012-07-20 11:02:05 PDT
(In reply to comment #7) > Oops, sorry, I meant to cc tony, not andersca. > > Please update the bug title in the change log (prefix with [Chromium]). Yeah, the title is already prefixed with [Chromium], though I think someone else changed it. Thanks!
Ryosuke Niwa
Comment 9 2012-07-20 11:03:38 PDT
(In reply to comment #8) > (In reply to comment #7) > > Oops, sorry, I meant to cc tony, not andersca. > > > > Please update the bug title in the change log (prefix with [Chromium]). > > Yeah, the title is already prefixed with [Chromium], though I think someone else changed it. Thanks! I changed it.
Tony Chang
Comment 10 2012-07-20 11:08:07 PDT
Comment on attachment 153373 [details] Updated for ToT This patch is missing a ChangeLog. I'll fix it and upload a new copy.
Han Shen
Comment 11 2012-07-20 11:12:08 PDT
(In reply to comment #10) > (From update of attachment 153373 [details]) > This patch is missing a ChangeLog. I'll fix it and upload a new copy. Oh, Tony, thanks a lot! -Han
Tony Chang
Comment 12 2012-07-20 11:12:29 PDT
Created attachment 153545 [details] Patch for landing
WebKit Review Bot
Comment 13 2012-07-20 12:05:36 PDT
Comment on attachment 153545 [details] Patch for landing Rejecting attachment 153545 [details] from commit-queue. Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 2 Last 500 characters of output: Kit/chromium/third_party/yasm/source/patched-yasm --revision 134927 --non-interactive --force --accept theirs-conflict --ignore-externals' in '/mnt/git/webkit-commit-queue/Source/WebKit/chromium' 48>At revision 134927. ________ running '/usr/bin/python tools/clang/scripts/update.py --mac-only' in '/mnt/git/webkit-commit-queue/Source/WebKit/chromium' ________ running '/usr/bin/python gyp_webkit' in '/mnt/git/webkit-commit-queue/Source/WebKit/chromium' Updating webkit projects from gyp files... Full output: http://queues.webkit.org/results/13317236
Ryosuke Niwa
Comment 14 2012-07-20 12:09:40 PDT
Comment on attachment 153545 [details] Patch for landing View in context: https://bugs.webkit.org/attachment.cgi?id=153545&action=review > Source/WebCore/ChangeLog:10 > + No new tests (OOPS!). You need to remove this.
Ryosuke Niwa
Comment 15 2012-07-20 12:09:40 PDT
Comment on attachment 153545 [details] Patch for landing View in context: https://bugs.webkit.org/attachment.cgi?id=153545&action=review > Source/WebCore/ChangeLog:10 > + No new tests (OOPS!). You need to remove this.
Tony Chang
Comment 16 2012-07-20 12:12:53 PDT
Created attachment 153559 [details] Patch for landing
WebKit Review Bot
Comment 17 2012-07-20 13:09:17 PDT
Comment on attachment 153559 [details] Patch for landing Clearing flags on attachment: 153559 Committed r123253: <http://trac.webkit.org/changeset/123253>
WebKit Review Bot
Comment 18 2012-07-20 13:09:21 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.