PDA

Bekijk de volledige versie : Natively Compiling binutils for wl-500gx



mspriggs
02-02-2005, 14:11
I have started trying to compile a version of binutils that will actually run on the wl-500gx. I have downloaded the binutils-2.13.2.1 from ftp.gnu.org and applied the broadcom binutils-2.13.2.1.diff patch.

I used this command line for configure
./configure –host=mipsel-linux

Compilation runs fine but when I copy the executables across to the wl-500gx and try to run an executable I get this error message:
./mipsel-linux-objdump: 1: Syntax error: “(“ unexpected

Where am I going wrong?

mspriggs
02-02-2005, 14:42
Now I thing I understand, the binaries that I produced are for the architecture that they were compiled on so I produced binutils that will generate mips architecture executable but are executable on the original platform.

I think this means that to build native executable it is a 2 stage process.
1. Build binutils & gcc targeted for mips (./configure –host=mipsel-linux
)
2. Rebuild binutils & gcc using the newly created binaries. This should result in wl-500gx native binaries.

mctiew
02-02-2005, 14:46
I used this command line for configure
./configure –host=mipsel-linux



Try this :-

CC=mipsel-uclibc-gcc ./configure --host=mipsel-linux

Cheers.