Discuss the technical details of Gargoyle and ongoing development
Moderator: Moderators
vask
Posts: 45 Joined: Tue Jul 21, 2009 4:33 pm
Post
by vask » 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
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)
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:
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
Eric
Site Admin
Posts: 1443 Joined: Sat Jun 14, 2008 1:14 pm
Post
by Eric » Thu Jan 14, 2010 8:31 am
You're over-thinking it.
Instead of re-compiling just the Gargoyle package, try recompiling everything. Under linux (again... I haven't tried this under any other OS, so any trouble you run into there is your own problem), (1) checkout the source, (2) cd into the source directory, (3) edit files you want to, and (4) type "make brcm-2.4" (assuming brcm-2.4) is your architecture.
Code: Select all
svn checkout https://svn.assembla.com/svn/gargoyle-router/trunk
cd trunk
[edit files]
make brcm-2.4
vask
Posts: 45 Joined: Tue Jul 21, 2009 4:33 pm
Post
by vask » Thu Jan 14, 2010 6:07 pm
Eric wrote: Code: Select all
svn checkout https://svn.assembla.com/svn/gargoyle-router/trunk
cd trunk
[edit files]
make brcm-2.4
That is way easier! ( I am not finished yet because the compile is taking a while )
I am doing it on an ubuntu machine we have downstairs...
I am assuming I do:
make brcm-2.4
# for LinkSys WRT54GL
# I think Broadcom BCM5352EKPB Chipset
make atheros-2.6
# for Atheros MR3201a
# Chipset: Atheros AR2315 System-on-chip
vask
Posts: 45 Joined: Tue Jul 21, 2009 4:33 pm
Post
by vask » Sat Jan 16, 2010 5:31 pm
After doing research on google the -arch error seems to be specific to Mac OSX. And I was unable to compile gargoyle =(
I have since given up on finding a solution as I just went with Ubuntu and can compile fine on there.
"It is recommended to use a Linux system, either as a standalone installation or as a separate system running in a virtual environment (Vmware or Qemu). It is potentially possible to build OpenWrt images directly on a *BSD or Mac OSX systems, but success is not guaranteed."
-
http://wiki.openwrt.org/doc/howto/build