Compiling Gargoyle: mips-linux-uclibc-gcc -arch
Posted: Tue Jan 12, 2010 5:23 pm
It seems like I can compile the openwrt packages fine after selecting whatever I want from:
make menuconfig
However, I get this error if I do:
make package/gargoyle/compile V=99
Do I need a certain compiler? There are a bunch for my Mac listed at:
http://www.macports.org/ports.php?by=name&substr=gcc
Also:
make menuconfig
However, I get this error if I do:
make package/gargoyle/compile V=99
Code: Select all
mips-linux-uclibc-gcc -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -I/Volumes/buildOpenWRT/stable-8.09-latest/staging_dir/mips/usr/include -I/Volumes/buildOpenWRT/stable-8.09-latest/staging_dir/mips/include -Os -arch i386 -fPIC -Wall -Wstrict-prototypes -pedantic -o list_dyn.o -c list.c
mips-linux-uclibc-gcc: i386: No such file or directory
cc1: error: unrecognized command line option "-arch"
make[3]: *** [list_dyn.o] Error 1
make[2]: *** [/Volumes/buildOpenWRT/stable-8.09-latest/build_dir/mips/libericstools/.built] Error 2
make[1]: *** [package/libericstools/compile] Error 2
make: *** [package/gargoyle/compile] Error 2
[john@john-2 /Volumes/buildOpenWRT/stable-8.09-latest]% gcc -v
Using built-in specs.
Target: i686-apple-darwin9
Configured with: /var/tmp/gcc/gcc-5493~1/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=i686-apple-darwin9 --with-arch=apple --with-tune=generic --host=i686-apple-darwin9 --target=i686-apple-darwin9
Thread model: posix
gcc version 4.0.1 (Apple Inc. build 5493)
http://www.macports.org/ports.php?by=name&substr=gcc
Also:
Code: Select all
[john@john-2 /Volumes/buildOpenWRT/stable-8.09-latest]% find . -name 'mips-linux-uclibc-gcc' -print
./staging_dir/toolchain-mips_gcc4.1.2/bin/mips-linux-uclibc-gcc