Cross-Compile Problem / Interpreting File as script

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware
Author Message
RcRaCk2k
DD-WRT User


Joined: 07 Aug 2007
Posts: 151

PostPosted: Tue Nov 26, 2013 18:57    Post subject: Cross-Compile Problem / Interpreting File as script Reply with quote
Hi!

I have a very strange problem.

I have cross compiled the sources of dhcp-forwarder:

Code:
ARCH=mips-linux-uclibc CC=/root/staging_dir_mips/mips-linux-uclibc/bin/gcc STRIP=/root/staging_dir_mips/mips-linux-uclibc/bin/strip ../configure --host=mips-linux-uclibc
.....
make
.....
file dhcp-fwd
dhcp-fwd: ELF 32-bit MSB executable, MIPS, MIPS-I version 1 (SYSV), dynamically linked (uses shared libs), not stripped


So, cross-compile was successful.

But when i copy the file via SCP to my DD-WRT Device (Buffalo WHR-HP-G54) it tells me that:

Code:
./dhcp-fwd: line 1: syntax error: "(" unexpected


That looks like the command line interpreter will parse that file instead to run the Binary File.

What have i do wrong?[/code]
Sponsor
LOM
DD-WRT Guru


Joined: 28 Dec 2008
Posts: 7632

PostPosted: Wed Nov 27, 2013 2:16    Post subject: Reply with quote
Broadcom mips cpu's are little endian (mipsel)
_________________
Kernel panic: Aiee, killing interrupt handler!
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum