Bug 184985 - [CMake] Require GCC 6
Summary: [CMake] Require GCC 6
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: PC Linux
: P2 Normal
Assignee: Michael Catanzaro
URL:
Keywords: InRadar
Depends on:
Blocks: 185135
  Show dependency treegraph
 
Reported: 2018-04-25 11:31 PDT by Michael Catanzaro
Modified: 2018-04-30 09:52 PDT (History)
11 users (show)

See Also:


Attachments
Patch (5.18 KB, patch)
2018-04-25 11:45 PDT, Michael Catanzaro
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews206 for win-future (12.59 MB, application/zip)
2018-04-25 17:25 PDT, EWS Watchlist
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Catanzaro 2018-04-25 11:31:51 PDT
As agreed at https://lists.webkit.org/pipermail/webkit-dev/2018-March/029928.html, it's time to require GCC 6.
Comment 1 Michael Catanzaro 2018-04-25 11:43:12 PDT
(This is going to break the GTK stable bots)
Comment 2 Michael Catanzaro 2018-04-25 11:45:29 PDT
Created attachment 338764 [details]
Patch
Comment 3 JF Bastien 2018-04-25 13:33:49 PDT
Naively this seems good to me, but maybe there's something I'm missing on how exactly we want to do about doing this.
Comment 4 Alex Christensen 2018-04-25 13:35:11 PDT
Comment on attachment 338764 [details]
Patch

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

> Source/WTF/wtf/Compiler.h:-97
> -#if !GCC_VERSION_AT_LEAST(5, 0, 0)
> -#error "Please use a newer version of GCC. WebKit requires GCC 5.0.0 or newer to compile."
> -#endif

Couldn't you just increment this?
Comment 5 JF Bastien 2018-04-25 13:36:26 PDT
(In reply to Alex Christensen from comment #4)
> Comment on attachment 338764 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=338764&action=review
> 
> > Source/WTF/wtf/Compiler.h:-97
> > -#if !GCC_VERSION_AT_LEAST(5, 0, 0)
> > -#error "Please use a newer version of GCC. WebKit requires GCC 5.0.0 or newer to compile."
> > -#endif
> 
> Couldn't you just increment this?

It's redundant with the cmake check, but it also doesn't hurt?
Comment 6 Michael Catanzaro 2018-04-25 13:46:44 PDT
(In reply to Alex Christensen from comment #4)
> Comment on attachment 338764 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=338764&action=review
> 
> > Source/WTF/wtf/Compiler.h:-97
> > -#if !GCC_VERSION_AT_LEAST(5, 0, 0)
> > -#error "Please use a newer version of GCC. WebKit requires GCC 5.0.0 or newer to compile."
> > -#endif
> 
> Couldn't you just increment this?

Yeah, but it could easily get out of sync with the earlier build system check in the future. I think if XCode build still supports GCC (which seems doubtful?) then it can do its own checking, right?
Comment 7 JF Bastien 2018-04-25 13:47:56 PDT
(In reply to Michael Catanzaro from comment #6)
> (In reply to Alex Christensen from comment #4)
> > Comment on attachment 338764 [details]
> > Patch
> > 
> > View in context:
> > https://bugs.webkit.org/attachment.cgi?id=338764&action=review
> > 
> > > Source/WTF/wtf/Compiler.h:-97
> > > -#if !GCC_VERSION_AT_LEAST(5, 0, 0)
> > > -#error "Please use a newer version of GCC. WebKit requires GCC 5.0.0 or newer to compile."
> > > -#endif
> > 
> > Couldn't you just increment this?
> 
> Yeah, but it could easily get out of sync with the earlier build system
> check in the future. I think if XCode build still supports GCC (which seems
> doubtful?) then it can do its own checking, right?

Isn't this a good argument to only keep the Compiler.h check instead?
Comment 8 Alex Christensen 2018-04-25 13:48:33 PDT
We don't support using gcc/Xcode to build WebKit any more.
Comment 9 Michael Catanzaro 2018-04-25 14:34:20 PDT
(In reply to JF Bastien from comment #7)
> Isn't this a good argument to only keep the Compiler.h check instead?

I don't think so, it's better to fail at configure time than to wait until after we've finished building bmalloc and whatever else.

(In reply to Alex Christensen from comment #8)
> We don't support using gcc/Xcode to build WebKit any more.

Then the check in Compiler.h is guaranteed to never be hit, so let's indeed get rid of it.
Comment 10 EWS Watchlist 2018-04-25 17:25:29 PDT
Comment on attachment 338764 [details]
Patch

Attachment 338764 [details] did not pass win-ews (win):
Output: http://webkit-queues.webkit.org/results/7460735

New failing tests:
http/tests/preload/onload_event.html
Comment 11 EWS Watchlist 2018-04-25 17:25:41 PDT
Created attachment 338834 [details]
Archive of layout-test-results from ews206 for win-future

The attached test failures were seen while running run-webkit-tests on the win-ews.
Bot: ews206  Port: win-future  Platform: CYGWIN_NT-6.1-2.9.0-0.318-5-3-x86_64-64bit
Comment 12 Yusuke Suzuki 2018-04-29 09:25:49 PDT
Ubuntu LTS 18.04 is released, it's good time to land this :)
Comment 13 WebKit Commit Bot 2018-04-29 10:30:01 PDT
Comment on attachment 338764 [details]
Patch

Clearing flags on attachment: 338764

Committed r231152: <https://trac.webkit.org/changeset/231152>
Comment 14 WebKit Commit Bot 2018-04-29 10:30:03 PDT
All reviewed patches have been landed.  Closing bug.
Comment 15 Radar WebKit Bug Importer 2018-04-29 10:32:11 PDT
<rdar://problem/39825105>