title: Invalid argument error compiling stdio.h / iostream
body: <p>[Solved] Switched from the Ubuntu app to the Kali app, and that compiler works fine.</p>
  
  <p>I'm suddenly having trouble compiling anything that includes these header files because of some error from inside the headers. I have never had issues with this before, and I don't even know what the error means. Any help is appreciated!</p>
  
  <p>I am on Windows 10.0.18362 using the Ubuntu app with WSL.</p>
  
  <p>The code is just hello world programs shown below, but when compiled I get the following errors for gcc and g++:</p>
  
  <pre class="lang-c prettyprint-override"><code>// test.c
  #include &lt;stdio.h&gt;
  
  int main(int argc, const char *argv[]) {
      printf("Hello, world!\n");
    return 0;
  }
  </code></pre>
  
  <pre class="lang-cpp prettyprint-override"><code>// test.cpp
  #include &lt;iostream&gt;
  
  int main(int argc, const char *argv[]) {
    std::cout &lt;&lt; "Hello, world!" &lt;&lt; '\n';
    return 0;
  }
  </code></pre>
  
  <pre><code>gcc test.c
  In file included from test.c:1:0:
  /usr/include/stdio.h:27:10: fatal error: /usr/include/x86_64-linux-gnu/bits/libc-header-start.h: Invalid argument
   #include &lt;bits/libc-header-start.h&gt;
            ^~~~~~~~~~~~~~~~~~~~~~~~~~
  compilation terminated.
  </code></pre>
  
  <pre><code>g++ test.cpp
  In file included from /usr/include/features.h:424:0,
                   from /usr/include/x86_64-linux-gnu/c++/7/bits/os_defines.h:39,
                   from /usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:533,
                   from /usr/include/c++/7/iostream:38,
                   from test.cpp:1:
  /usr/include/x86_64-linux-gnu/sys/cdefs.h:427:10: fatal error: /usr/include/x86_64-linux-gnu/bits/wordsize.h: Invalid argument
   #include &lt;bits/wordsize.h&gt;
            ^~~~~~~~~~~~~~~~~
  compilation terminated.
  </code></pre>