<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [CMake] Build failure with GCC 6 (fatal error: stdlib.h: No such file or directory)"
   href="https://bugs.webkit.org/show_bug.cgi?id=161697#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [CMake] Build failure with GCC 6 (fatal error: stdlib.h: No such file or directory)"
   href="https://bugs.webkit.org/show_bug.cgi?id=161697">bug 161697</a>
              from <span class="vcard"><a class="email" href="mailto:mcatanzaro&#64;igalia.com" title="Michael Catanzaro &lt;mcatanzaro&#64;igalia.com&gt;"> <span class="fn">Michael Catanzaro</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=161697#c1">comment #1</a>)
<span class="quote">&gt; So my understandings is that we need to either:
&gt; 
&gt;  Option 1: Obtain the list of default system includes and put it as first
&gt; option when using include_directories(SYSTEM and
&gt; target_include_directories(...SYTEM
&gt; 
&gt;  Option 2: Stop using the SYSTEM modifier on include_directories( and
&gt; target_include_directories and live with the extra warnings.
&gt; 
&gt; 
&gt; I don't know how to do option 1. I was unable so far to find a CMake
&gt; variable with this info.</span >

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 <a href="show_bug.cgi?id=161697#c0">comment #0</a>) 
<span class="quote">&gt; Seems that we started using -isystem on r185806
&gt; &lt;<a href="http://trac.webkit.org/r185806">http://trac.webkit.org/r185806</a>&gt; as a way to silence warnings.</span >

We've used it for slightly longer than that; that commit was a follow-up because I forgot about the Tools directory. :)</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>