title: /usr/local/bin/ld: unrecognized option '--sysroot=/'
body: <p>I'm unable to compile the simplest of the C programs due to some cross compilation error.
  Could some shed some light on this issue.</p>
  
  <p>The simplest C program ever:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main()
  {
    printf( "Hello World!\n" );
  
    return 0;
  }
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>/usr/local/bin/ld: unrecognized option '--sysroot=/'
  Try `ld --help' or `ld --usage' for more information.
  collect2: error: ld returned 64 exit status
  </code></pre>
  
  <p>this is how I'm trying to compile: <code>gcc -o simple simple.c</code>   </p>