Can't build gargoyle from git

Discuss the technical details of Gargoyle and ongoing development

Moderator: Moderators

Post Reply
lgolebio
Posts: 8
Joined: Wed Jul 30, 2008 7:18 am

Can't build gargoyle from git

Post by lgolebio »

Hi
I'm trying to build gargoyle on mint 13 with latest updates.

Code: Select all

git clone git://gargoyle-router.com/gargoyle.git
cd gargoyle 
make custom 
I selected my platform AR71 and my router MR3420.
The compilation crashes after one hour.

Code: Select all

make[5]: [clean-staging] Error 123 (ignored)
make[5]: Leaving directory `/home/lukasz/gargoyle/gargoyle/custom-src/package/libericstools'
rm -rf /home/lukasz/gargoyle/gargoyle/custom-src/tmp/stage-libericstools
mkdir -p /home/lukasz/gargoyle/gargoyle/custom-src/tmp/stage-libericstools/host /home/lukasz/gargoyle/gargoyle/custom-src/staging_dir/target-mips_uClibc-0.9.30.1/packages /home/lukasz/gargoyle/gargoyle/custom-src/staging_dir/host/packages
mkdir -p /home/lukasz/gargoyle/gargoyle/custom-src/staging_dir/target-mips_uClibc-0.9.30.1/usr/include/
cp -fpR /home/lukasz/gargoyle/gargoyle/custom-src/build_dir/target-mips_uClibc-0.9.30.1/libericstools/*.h /home/lukasz/gargoyle/gargoyle/custom-src/staging_dir/target-mips_uClibc-0.9.30.1/usr/include/
mkdir -p /home/lukasz/gargoyle/gargoyle/custom-src/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib
cp -fpR /home/lukasz/gargoyle/gargoyle/custom-src/build_dir/target-mips_uClibc-0.9.30.1/libericstools/*.so* /home/lukasz/gargoyle/gargoyle/custom-src/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/
find /home/lukasz/gargoyle/gargoyle/custom-src/tmp/stage-libericstools -name '*.la' | xargs -r rm -f; 
if [ -d /home/lukasz/gargoyle/gargoyle/custom-src/tmp/stage-libericstools ]; then (cd /home/lukasz/gargoyle/gargoyle/custom-src/tmp/stage-libericstools; find ./ > /home/lukasz/gargoyle/gargoyle/custom-src/staging_dir/target-mips_uClibc-0.9.30.1/packages/libericstools.list); cp -fpR /home/lukasz/gargoyle/gargoyle/custom-src/tmp/stage-libericstools/* /home/lukasz/gargoyle/gargoyle/custom-src/staging_dir/target-mips_uClibc-0.9.30.1/; fi
rm -rf /home/lukasz/gargoyle/gargoyle/custom-src/tmp/stage-libericstools
touch /home/lukasz/gargoyle/gargoyle/custom-src/staging_dir/target-mips_uClibc-0.9.30.1/stamp/.libericstools_installed
make[4]: Leaving directory `/home/lukasz/gargoyle/gargoyle/custom-src/package/libericstools'
make[3]: Leaving directory `/home/lukasz/gargoyle/gargoyle/custom-src'
make[2]: *** [/home/lukasz/gargoyle/gargoyle/custom-src/staging_dir/target-mips_uClibc-0.9.30.1/stamp/.package_compile] Error 2
make[2]: Leaving directory `/home/lukasz/gargoyle/gargoyle/custom-src'
make[1]: *** [world] Error 2
make[1]: Leaving directory `/home/lukasz/gargoyle/gargoyle/custom-src'
cp: cannot stat `bin/ar71xx\natheros/bin/ar71xx:': No such file or directory
cp: cannot stat `bin/ar71xx\natheros/packages': No such file or directory 

pbix
Developer
Posts: 1373
Joined: Fri Aug 21, 2009 5:09 pm

Re: Can't build gargoyle from git

Post by pbix »

Did you read http://www.gargoyle-router.com/wiki/dok ... umentation including installing the extra packages needed and not mentioned in your post?
Linksys WRT1900ACv2
Netgear WNDR3700v2
TP Link 1043ND v3
TP-Link TL-WDR3600 v1
Buffalo WZR-HP-G300NH2
WRT54G-TM

lgolebio
Posts: 8
Joined: Wed Jul 30, 2008 7:18 am

Re: Can't build gargoyle from git

Post by lgolebio »

Oops, you are probably right, what packages I have to select manually ?

EDIT
Ok, I think I know what the problem was....recompiling.

Nope, still problems with compiling, probably I'm missing something more in menuconfig.

Code: Select all

make[5]: [clean-staging] Error 123 (ignored)
make[5]: Leaving directory `/home/lukasz/gargoyle/gargoyle/custom-src/package/libericstools'
rm -rf /home/lukasz/gargoyle/gargoyle/custom-src/tmp/stage-libericstools
mkdir -p /home/lukasz/gargoyle/gargoyle/custom-src/tmp/stage-libericstools/host /home/lukasz/gargoyle/gargoyle/custom-src/staging_dir/target-mips_uClibc-0.9.30.1/packages /home/lukasz/gargoyle/gargoyle/custom-src/staging_dir/host/packages
mkdir -p /home/lukasz/gargoyle/gargoyle/custom-src/staging_dir/target-mips_uClibc-0.9.30.1/usr/include/
cp -fpR /home/lukasz/gargoyle/gargoyle/custom-src/build_dir/target-mips_uClibc-0.9.30.1/libericstools/*.h /home/lukasz/gargoyle/gargoyle/custom-src/staging_dir/target-mips_uClibc-0.9.30.1/usr/include/
mkdir -p /home/lukasz/gargoyle/gargoyle/custom-src/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib
cp -fpR /home/lukasz/gargoyle/gargoyle/custom-src/build_dir/target-mips_uClibc-0.9.30.1/libericstools/*.so* /home/lukasz/gargoyle/gargoyle/custom-src/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/
find /home/lukasz/gargoyle/gargoyle/custom-src/tmp/stage-libericstools -name '*.la' | xargs -r rm -f; 
if [ -d /home/lukasz/gargoyle/gargoyle/custom-src/tmp/stage-libericstools ]; then (cd /home/lukasz/gargoyle/gargoyle/custom-src/tmp/stage-libericstools; find ./ > /home/lukasz/gargoyle/gargoyle/custom-src/staging_dir/target-mips_uClibc-0.9.30.1/packages/libericstools.list); cp -fpR /home/lukasz/gargoyle/gargoyle/custom-src/tmp/stage-libericstools/* /home/lukasz/gargoyle/gargoyle/custom-src/staging_dir/target-mips_uClibc-0.9.30.1/; fi
rm -rf /home/lukasz/gargoyle/gargoyle/custom-src/tmp/stage-libericstools
touch /home/lukasz/gargoyle/gargoyle/custom-src/staging_dir/target-mips_uClibc-0.9.30.1/stamp/.libericstools_installed
make[4]: Leaving directory `/home/lukasz/gargoyle/gargoyle/custom-src/package/libericstools'
make[3]: Leaving directory `/home/lukasz/gargoyle/gargoyle/custom-src'
make[2]: *** [/home/lukasz/gargoyle/gargoyle/custom-src/staging_dir/target-mips_uClibc-0.9.30.1/stamp/.package_compile] Error 2
make[2]: Leaving directory `/home/lukasz/gargoyle/gargoyle/custom-src'
make[1]: *** [world] Error 2
make[1]: Leaving directory `/home/lukasz/gargoyle/gargoyle/custom-src' 

lgolebio
Posts: 8
Joined: Wed Jul 30, 2008 7:18 am

Re: Can't build gargoyle from git

Post by lgolebio »

Can anoyne point me the right direction to make it work ?

linux_pro
Posts: 10
Joined: Thu Oct 21, 2010 9:58 pm

Re: Can't build gargoyle from git

Post by linux_pro »

please vim rebuild and fullbuild.

V -j4 to V -j1

post you error log.
thanks.
D-LINK 825 B1 gargoyle 1.5.5
TP-LINK 841nd v7.1 gargoyle 1.5.5
RouterStationPro gargoyle 1.5.5
other route
MI424 Ver.A IXP425 533Mhz
DDNAS V1 1.2G, 512MB,5 prot 1000M. marvell 88F6281 + 88E6171R
MI424 Ver.F CN5020. 500Mhz MIPS 64bit SoC.

ispyisail
Moderator
Posts: 5212
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: Can't build gargoyle from git

Post by ispyisail »

I'm fairly sure there is something wrong with the gargoyle build repository

I just tried to make another build and files are missing again

lgolebio
Posts: 8
Joined: Wed Jul 30, 2008 7:18 am

Re: Can't build gargoyle from git

Post by lgolebio »

Ok, I solved my problem.

Before make custom, I copied "config" file:

Code: Select all

 
cp targets/ar71xx/profiles/ath9k/config targets/custom/profiles/default/
then I typed "make custom", selected the package I wanted and voila it works, compiles without problems.

User avatar
ericwong
Posts: 430
Joined: Sat Aug 25, 2012 6:15 am
Location: Melbourne, Australia
Contact:

Re: Can't build gargoyle from git

Post by ericwong »

lgolebio wrote:Ok, I solved my problem.

Before make custom, I copied "config" file:

Code: Select all

 
cp targets/ar71xx/profiles/ath9k/config targets/custom/profiles/default/
then I typed "make custom", selected the package I wanted and voila it works, compiles without problems.
I encountered a similar error as described by your first post. After I make sure I have installed all the dependencies on Ubuntu. I still cannot build gargoyle using build custom.. not sure why.

However, I manage to build it by coping the target/brcm63xx folder from Openwrt's into gargoyle/target/brcm63xx and then execute

Code: Select all

build brcm63xx
In other words, I saved the custom configuration from menuconfig and put it into this folder.

Hope this info may help some other newbies looking for the same answer.
Eric Wong

PM me if you need to buy Gargoyle router in Australia/NZ, willing to pay me to help you on your Gargoyle configurations or build custom configured ROM with pre-installed app or try to fix your bricked router. Yes, I am looking for job/work.

Post Reply