title: gcc wont compile to an executable
body: <pre><code>#include &lt;stdlib.h&gt;
  
  int main(int argc, char* argv[]) 
  {
      // printf("Hello World!\n");
      return 0;
  }
  </code></pre>
  
  <p>gcc --version</p>
  
  <p>gcc (Ubuntu 7.3.0-16ubuntu3) 7.3.0
  Copyright (C) 2017 Free Software Foundation, Inc.
  This is free software; see the source for copying conditions.  There is NO
  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.</p>
  
  <p>gcc -O0 -g -o helloworld -c helloworld.c</p>
  
  <p>This is a fresh system built from scratch today. Ubuntu 18.04.</p>
  
  <p>Produces a helloworld file but not executable if I make it so and try and run it i get</p>
  
  <p>$ chmod +x helloworld</p>
  
  <p>$ ./helloworld</p>
  
  <p>bash: ./helloworld: cannot execute binary file: Exec format error</p>
  
  <p>However seems to compile my large project without any problem.</p>
  
  <p>Even though its a fresh system I reinstalled gcc but no difference.</p>