OpenWrt Forum Archive

Topic: Problems compiling scripts ar71xx. Any ideas?

The content of this topic has been archived on 24 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello! I'm trying to compile a simple script for a ar71xx (bleeding edge /from snapshots) router.

I have previously compiled scripts for Kamikaze 8.09. I just copied the gcc file inside the SDK dir and used it without problems.

Now I tried doing the same for  http://downloads.openwrt.org/snapshots/trunk/ar71xx/

But every time I try to execute it:

[root@centos]# ./gcc src/hello.c -o hello
-bash: ./gcc: cannot execute binary file

Note: I downloaded the "OpenWrt-SDK-ar71xx-for-Linux-x86_64-gcc-4.3.3+cs_uClibc-0.9.32" from the previous link. I used the gcc executable inside the "staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.32/mips-openwrt-linux-uclibc/bin" directory.


Am I doing something wrong? How can I compile simple scripts for my DIR 825?

thank you

(Last edited by aztroboy on 12 Feb 2011, 04:51)

The discussion might have continued from here.