title: Compiling U-BOOT bootloader on x86
body: <p>I have download and extracted u-boot-1.1.6 on Ubuntu Linux. I just want to compile the source code using GCC (not targeting cross compilation for any embedded platform).</p>
  
  <p>I tried running the provided <code>MAKEALL</code> makefile but "powerpc-linux-gcc : Not Found" is happening.</p>
  
  <p>My understanding is irrespective of platform the source code should compile.</p>
  
  <p>What are the necessary makefile and environment changes I need to do for compilation on x86?</p>
  
  <p>I have taken the recent code. Still facing some issues</p>
  
  <p>I have followed following steps to compile it on x86.</p>
  
  <ol>
  <li><code>make clean;</code></li>
  <li><code>make coreboot-x86_config</code></li>
  <li><code>./MAKEALL -C x86</code></li>
  </ol>
  
  <p>In step 3 I observed following:</p>
  
  <pre><code>ravitiwari@RAVI-HP-Pavilion-dv2000-GJ175PA-ACJ:~/u-boot-2013.04$ make clean
  ravitiwari@RAVI-HP-Pavilion-dv2000-GJ175PA-ACJ:~/u-boot-2013.04$ make coreboot-x86_config
  Configuring for coreboot-x86 - Board: coreboot, Options: SYS_TEXT_BASE=0x01110000
  ravitiwari@RAVI-HP-Pavilion-dv2000-GJ175PA-ACJ:~/u-boot-2013.04$ ./MAKEALL -C x86
  Configuring for coreboot-x86 - Board: coreboot, Options: SYS_TEXT_BASE=0x01110000
      make[1]: ** [interrupts.o] Error 127
      make: ** [arch/x86/cpu/libx86.o] Error 2
      make[1]: ** [coreboot.o] Error 127
      make: ** [arch/x86/cpu/coreboot/libcoreboot.o] Error 2
      make[1]: ** [bootm.o] Error 127
      make: ** [arch/x86/lib/libx86.o] Error 2
      size: './u-boot': No such file
      /bin/bash: sparse: command not found
      make[1]: ** [interrupts.o] Error 127
      make: ** [arch/x86/cpu/libx86.o] Error 2
      make: ** Waiting for unfinished jobs....
      /bin/bash: sparse: command not found
      make[1]: ** [coreboot.o] Error 127
      make: ** [arch/x86/cpu/coreboot/libcoreboot.o] Error 2
      /bin/bash: sparse: command not found
      make[1]: ** [bootm.o] Error 127
      make: ** [arch/x86/lib/libx86.o] Error 2
      make: INTERNAL: Exiting with 4 jobserver tokens available; should be 3!
  
      --------------------- SUMMARY ----------------------------
  
      Boards compiled: 1
      Boards with errors: 1( coreboot-x86 )
  </code></pre>