Bug 90227 - [Chromium] Compilation fails under gcc 4.7
Summary: [Chromium] Compilation fails under gcc 4.7
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Normal
Assignee: Tony Chang
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-28 16:58 PDT by Han Shen
Modified: 2012-07-20 13:09 PDT (History)
3 users (show)

See Also:


Attachments
proposed patch (3.00 KB, patch)
2012-07-18 15:50 PDT, Han Shen
no flags Details | Formatted Diff | Diff
Updated patchset - 2. (3.00 KB, patch)
2012-07-19 13:28 PDT, Han Shen
no flags Details | Formatted Diff | Diff
Updated for ToT (3.56 KB, patch)
2012-07-19 16:41 PDT, Han Shen
no flags Details | Formatted Diff | Diff
Patch for landing (7.17 KB, patch)
2012-07-20 11:12 PDT, Tony Chang
no flags Details | Formatted Diff | Diff
Patch for landing (7.17 KB, patch)
2012-07-20 12:12 PDT, Tony Chang
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Han Shen 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
Comment 1 Han Shen 2012-07-11 15:56:25 PDT
Ping?
Comment 2 Han Shen 2012-07-18 15:50:31 PDT
Created attachment 153119 [details]
proposed patch
Comment 3 Han Shen 2012-07-19 13:28:00 PDT
Created attachment 153334 [details]
Updated patchset - 2.
Comment 4 Ryosuke Niwa 2012-07-19 16:23:19 PDT
Please update the patch for ToT.
Comment 5 Han Shen 2012-07-19 16:41:58 PDT
Created attachment 153373 [details]
Updated for ToT
Comment 6 Han Shen 2012-07-19 16:42:33 PDT
(In reply to comment #4)
> Please update the patch for ToT.

Done thanks!
Comment 7 Ryosuke Niwa 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]).
Comment 8 Han Shen 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!
Comment 9 Ryosuke Niwa 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.
Comment 10 Tony Chang 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.
Comment 11 Han Shen 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
Comment 12 Tony Chang 2012-07-20 11:12:29 PDT
Created attachment 153545 [details]
Patch for landing
Comment 13 WebKit Review Bot 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
Comment 14 Ryosuke Niwa 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.
Comment 15 Ryosuke Niwa 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.
Comment 16 Tony Chang 2012-07-20 12:12:53 PDT
Created attachment 153559 [details]
Patch for landing
Comment 17 WebKit Review Bot 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>
Comment 18 WebKit Review Bot 2012-07-20 13:09:21 PDT
All reviewed patches have been landed.  Closing bug.