title: GNU C Cross-compiler: Cannot execute binary file
body: <p>I've been trying to compile busybox from source for ttylinux x64 I'm currently.. dealing with. Because of some king of bug (very similar to described <a href="https://www.mail-archive.com/ptxdist@pengutronix.de/msg02015.html" rel="nofollow">here</a>) I'm forced to use cross compiler.</p>
  
  <p>But this thing refuses to work. When I try to run it:</p>
  
  <pre><code>$ /mnt/hdd/cross-compiler-x86_64/bin/x86_64-gcc --version
  </code></pre>
  
  <p>I get: </p>
  
  <pre><code>-bash: /mnt/hdd/cross-compiler-x86_64/bin/x86_64-gcc: cannot execute binary file
  </code></pre>
  
  <p>This is different diagnostic outputs:</p>
  
  <pre><code>$ ldd /mnt/hdd/cross-compiler-x86_64/bin/x86_64-gcc
  not a dynamic executable
  
  $ uname -mpi
  x86_64 unknown unknown
  
  $ uname -a
  Linux ttylinux_host 3.7.1 #1 SMP Mon May 27 14:31:18 MST 2013 x86_64 GNU/Linux
  
  $ objdump -f /mnt/hdd/cross-compiler-x86_64/bin/x86_64-gcc
  /mnt/hdd/cross-compiler-x86_64/bin/x86_64-gcc: file format elf32-i386
  architecture: i386, flags 0x00000112:
  EXEC_P, HAS_SYMS, D_PAGED
  start address 0x08048188
  </code></pre>
  
  <p>Can anyone help me with this matter? I do believe x64 should have no problem running i386 code? </p>
  
  <p>BTW: cross compiler originates from <a href="http://landley.net/aboriginal/downloads/binaries/" rel="nofollow">here</a> </p>