error: cannot execute binary file

Stan Sander ssande at
Thu Nov 3 08:21:57 PST 2005

On Thu, 3 Nov 2005, Matt Darcy wrote:
> Hello Stan.
> It would appear that you are trying to use the wrong version of the programs 
> on the wrong host.
> eg: your trying to use the 64bit programs on a 32bit host.
> This is obviously not the case as you've booted into your 64bit machine.
> However there are obviously serious problems if you cannot do gcc -v
> For arguments sake could you post the output from
> uname -a when you are booted into 64bit system

Linux (none) #1 SMP Tue Nov 1 21:18:02 MST 2005 x86_64 

> echo $PATH

> then
> try gcc -v again

Using built-in specs.
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-4.0.2/configure --prefix=/tools 
--libdir=/tools/lib64 --build=i686-cross-linux-gnu 
--host=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu 
--libexecdir=/tools/lib64 --with-local-prefix=/tools --enable-long-long 
--enable-c99 --enable-shared --enable-threads=posix --enable-__cxa_atexit 
--disable-nls --enable-languages=c,c++ --disable-libstdcxx-pch
Thread model: posix
gcc version 4.0.2

I'm going to have to go to work, so any other suggestions or fixes will 
have to wait until this evening or tomorrow when I'll have the day off.



More information about the cross-lfs mailing list