Paul Gray | 6 Aug 2003 07:04
Picon

Re: uClibc: sim/mips/gentmap: cannot execute binary file

On Tue, 5 Aug 2003, David Wuertele wrote:

>    RANLIB=/path/to/mipsel-uclibc-ranlib\
>    ./configure --target=mipsel-linux --host=i386-pc-linux-gnu

Have you tried adding --build=?

>
> When I run make, the following appears to successfully build:
> libiberty, libbfd, libopcodes, libmmalloc, libreadline, and sim/igen.
> But when it comes to sim/mips, I see this:
>
>   make[2]: Entering directory `/home/dave/C/perforce/source/deschutes/buildroot-M14.0-X225/gdb-5.3/sim/mips'
>   rm -f tmp-tvals.h tmp-tmap.c
>   ./gentmap -h >tmp-tvals.h
>   /bin/sh: line 1: ./gentmap: cannot execute binary file

If you type "file gentmap", what binary format is it?

Paul Gray                                         -o)
323 Wright Hall                                   /\\
University of Northern Iowa                      _\_V
  Message void if penguin violated ...  Don't mess with the penguin
  No one ever says "Hey, I can't read that ASCII e-mail ya sent me."
David Wuertele | 6 Aug 2003 18:44

Re: uClibc: sim/mips/gentmap: cannot execute binary file

Me> RANLIB=/path/to/mipsel-uclibc-ranlib\
Me> ./configure --target=mipsel-linux --host=i386-pc-linux-gnu

Paul> Have you tried adding --build=?

Yes.  Apparently "--build=" just defaults to whatever "--host=" was
set to, so there is no difference.

Me> 
Me> When I run make, the following appears to successfully build:
Me> libiberty, libbfd, libopcodes, libmmalloc, libreadline, and sim/igen.
Me> But when it comes to sim/mips, I see this:
Me> 
Me> make[2]: Entering directory `/home/dave/C/perforce/source/deschutes/buildroot-M14.0-X225/gdb-5.3/sim/mips'
Me> rm -f tmp-tvals.h tmp-tmap.c
Me> ./gentmap -h >tmp-tvals.h
Me> /bin/sh: line 1: ./gentmap: cannot execute binary file

Paul> If you type "file gentmap", what binary format is it?

  gentmap: ELF 32-bit LSB MIPS-I executable, MIPS, version 1 (SYSV),
  dynamically linked (uses shared libs), not stripped

This was obviously built for the target, not the host.

Dave

Gmane