[Webkit-unassigned] [Bug 161697] [CMake] Build failure with GCC 6 (fatal error: stdlib.h: No such file or directory)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 7 11:07:51 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=161697

--- Comment #2 from Michael Catanzaro <mcatanzaro at igalia.com> ---
(In reply to comment #1)
> So my understandings is that we need to either:
> 
>  Option 1: Obtain the list of default system includes and put it as first
> option when using include_directories(SYSTEM and
> target_include_directories(...SYTEM
> 
>  Option 2: Stop using the SYSTEM modifier on include_directories( and
> target_include_directories and live with the extra warnings.
> 
> 
> I don't know how to do option 1. I was unable so far to find a CMake
> variable with this info.

I would be OK with option 1, but I don't know how to do it either.

I don't want to do option 2 unless we have some other way to silence warnings from system headers outside our control. As far as I know, passing SYSTEM to include_directories is the recommended way to do so; I don't know what else we could do to accomplish that, and I do not want to live with the warnings.

FWIW I've been building WebKit with GCC/libstdc++ 6 for months without issue, so GCC 6 isn't the only factor here.

(In reply to comment #0) 
> Seems that we started using -isystem on r185806
> <http://trac.webkit.org/r185806> as a way to silence warnings.

We've used it for slightly longer than that; that commit was a follow-up because I forgot about the Tools directory. :)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160907/4219660c/attachment-0001.html>


More information about the webkit-unassigned mailing list