title: fatal error: stddef.h: No such file or directory
body: <p>I'm following the guide below to build a <strong>mingw-w64</strong> tool chain to cross compile for windows64 on Fedora 26. (I can't use the buildin tool chain, as the Fedora people decided to activate certain compiler options that i want disabled.)</p>
  
  <p><a href="http://pete.akeo.ie/2010/07/compiling-mingw-w64-with-multilib-on.html" rel="nofollow noreferrer">http://pete.akeo.ie/2010/07/compiling-mingw-w64-with-multilib-on.html</a></p>
  
  <p>I know it is not the most recent one, but all steps seem reasonable and version independent. </p>
  
  <p>So now here is my problem: When I try to do the last gcc build <strong>"Gcc, pass 2"</strong>, I am presented with the following error message: </p>
  
  <pre><code>&lt;path to build dir&gt;/mingw-w64/build/gcc/./gcc/xgcc -B&lt;path to build dir&gt;/mingw-w64/build/gcc/./gcc/ -L&lt;path to local install dir&gt;/mingw-local/x86_64-w64-mingw32/lib -L&lt;path to local install dir&gt;/mingw-local/mingw/lib -isystem &lt;path to local install dir&gt;/mingw-local/x86_64-w64-mingw32/include -isystem &lt;path to local install dir&gt;/mingw-local/mingw/include -B&lt;path to local install dir&gt;/mingw-local/x86_64-w64-mingw32/bin/ -B&lt;path to local install dir&gt;/mingw-local/x86_64-w64-mingw32/lib/ -isystem &lt;path to local install dir&gt;/mingw-local/x86_64-w64-mingw32/include -isystem &lt;path to local install dir&gt;/mingw-local/x86_64-w64-mingw32/sys-include    -g -O2 -m32 -O2 -I../../../../../gcc-7.2.0/libgcc/../winsup/w32api/include -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc  -I. -I. -I../../.././gcc -I../../../../../gcc-7.2.0/libgcc -I../../../../../gcc-7.2.0/libgcc/. -I../../../../../gcc-7.2.0/libgcc/../gcc -I../../../../../gcc-7.2.0/libgcc/../include  -DHAVE_CC_TLS -DUSE_EMUTLS -o _muldi3.o -MT _muldi3.o -MD -MP -MF _muldi3.dep -DL_muldi3 -c ../../../../../gcc-7.2.0/libgcc/libgcc2.c 
  
  In file included from ../../../../../gcc-7.2.0/libgcc/../gcc/tsystem.h:44:0,
               from ../../../../../gcc-7.2.0/libgcc/libgcc2.c:27:
  &lt;path to build dir&gt;/mingw-w64/build/gcc/gcc/include/stddef.h:1:15: fatal error: stddef.h: No such file or directory
  #include_next &lt;stddef.h&gt;
             ^~~~~~~~~~
  compilation terminated.
  </code></pre>
  
  <p>I'm using following version numbers:</p>
  
  <ul>
  <li>binutils-2.29    </li>
  <li>gcc-7.2.0</li>
  <li>gmp-6.1.2</li>
  <li>mingw-w64-v5.0.3</li>
  <li>mpc-1.1.0</li>
  <li>mpfr-4.0.0</li>
  </ul>
  
  <p>Also Fedora's own gcc is version 7.2.1, which i can't download from gnu.org. (I mention it anyway since some solutions I found mentioned there might be a version conflict.)</p>
  
  <p>I'm stuck here, hope anyone can help.</p>