Page 1 of 1

build error

Posted: Tue May 31, 2016 4:13 am
by lost1
I'm trying to build Gargoyle from git according to the developer documentation but I'm not successful.

This is the log:
http://pastebin.com/5t3g4Vt9

and here the last lines:

Code: Select all

Makefile:3583: recipe for target 's-attrtab' failed
make[6]: *** [s-attrtab] Killed
make[6]: Leaving directory '/root/gargoyle/ar71xx-src/build_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/gcc-linaro-4.8-2014.04-minimal/gcc'
Makefile:3892: recipe for target 'all-gcc' failed
make[5]: *** [all-gcc] Error 2
make[5]: Leaving directory '/root/gargoyle/ar71xx-src/build_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/gcc-linaro-4.8-2014.04-minimal'
Makefile:46: recipe for target '/root/gargoyle/ar71xx-src/build_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/gcc-linaro-4.8-2014.04-minimal/.built' failed
make[4]: *** [/root/gargoyle/ar71xx-src/build_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/gcc-linaro-4.8-2014.04-minimal/.built] Error 2
make[4]: Target 'compile' not remade because of errors.
make[4]: Leaving directory '/root/gargoyle/ar71xx-src/toolchain/gcc/minimal'
toolchain/Makefile:81: recipe for target 'toolchain/gcc/minimal/compile' failed
make[3]: *** [toolchain/gcc/minimal/compile] Error 2
make[4]: Entering directory '/root/gargoyle/ar71xx-src/toolchain/kernel-headers'
make[4]: Nothing to be done for 'prepare'.
make[4]: Leaving directory '/root/gargoyle/ar71xx-src/toolchain/kernel-headers'
make[4]: Entering directory '/root/gargoyle/ar71xx-src/toolchain/kernel-headers'
make[4]: Nothing to be done for 'compile'.
make[4]: Leaving directory '/root/gargoyle/ar71xx-src/toolchain/kernel-headers'
make[4]: Entering directory '/root/gargoyle/ar71xx-src/toolchain/uClibc/headers'
make[4]: Nothing to be done for 'prepare'.
make[4]: Leaving directory '/root/gargoyle/ar71xx-src/toolchain/uClibc/headers'
make[4]: Entering directory '/root/gargoyle/ar71xx-src/toolchain/gcc/initial'
make[4]: Nothing to be done for 'prepare'.
make[4]: Leaving directory '/root/gargoyle/ar71xx-src/toolchain/gcc/initial'
make[4]: Entering directory '/root/gargoyle/ar71xx-src/toolchain/uClibc'
bash: mips-openwrt-linux-uclibc-gcc: command not found
bash: mips-openwrt-linux-uclibc-gcc: command not found
make[4]: Nothing to be done for 'prepare'.
make[4]: Leaving directory '/root/gargoyle/ar71xx-src/toolchain/uClibc'
make[4]: Entering directory '/root/gargoyle/ar71xx-src/toolchain/gcc/final'
make[4]: Nothing to be done for 'prepare'.
make[4]: Leaving directory '/root/gargoyle/ar71xx-src/toolchain/gcc/final'
make[4]: Entering directory '/root/gargoyle/ar71xx-src/toolchain/uClibc/utils'
bash: mips-openwrt-linux-uclibc-gcc: command not found
make[4]: Nothing to be done for 'prepare'.
make[4]: Leaving directory '/root/gargoyle/ar71xx-src/toolchain/uClibc/utils'
make[3]: Target 'toolchain/install' not remade because of errors.
make[3]: Leaving directory '/root/gargoyle/ar71xx-src'
toolchain/Makefile:80: recipe for target '/root/gargoyle/ar71xx-src/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/stamp/.toolchain_install' failed
make[2]: *** [/root/gargoyle/ar71xx-src/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/stamp/.toolchain_install] Error 2
make[3]: Entering directory '/root/gargoyle/ar71xx-src'
rm -rf /root/gargoyle/ar71xx-src/staging_dir/target-mips_34kc_uClibc-0.9.33.2/root-ar71xx
make[3]: Leaving directory '/root/gargoyle/ar71xx-src'
make[2]: Target 'world' not remade because of errors.
make[2]: Leaving directory '/root/gargoyle/ar71xx-src'
/root/gargoyle/ar71xx-src/include/toplevel.mk:181: recipe for target 'world' failed
make[1]: *** [world] Error 2
make[1]: Leaving directory '/root/gargoyle/ar71xx-src'
ls: cannot access 'bin': No such file or directory
find: ‘bin’: No such file or directory
find: ‘’: No such file or directory
find: ‘’: No such file or directory
ls: cannot access 'bin': No such file or directory
Is anyone able to help me here.

Thank you!

Re: build error

Posted: Tue May 31, 2016 4:29 am
by Lantis
What target are you compiling for?

What is the exact make command that you ran?

Re: build error

Posted: Tue May 31, 2016 4:56 am
by lost1
Hi!

I was using "make ar71xx" since I want to compile it for my TL-WA850RE.

Re: build error

Posted: Tue May 31, 2016 5:06 am
by Lantis
try
make FULL_BUILD=true ar71xx.default

Please be aware that your router has only 4mb of flash and will either not build (image too large error) or it will build and then be highly unstable when flashed to the router.

Re: build error

Posted: Tue May 31, 2016 5:32 am
by lost1
Thank you!

I'm trying it now after running make distclean and made clean.

It will take some time. I'll report back.

Unfortunately I've experienced problems with gargoyle 1.9.0 and using the WA850RE as a repeater for my Fritzbox.

I've read somewhere that these problems should be resolved in the git repo. That's why I am trying to build it myself.

Re: build error

Posted: Tue May 31, 2016 6:07 am
by ispyisail

Re: build error

Posted: Tue May 31, 2016 6:12 am
by lost1
Great! Thank you!

make FULL_BUILD=true ar71xx.default didn't work either ;(

Re: build error

Posted: Tue May 31, 2016 3:11 pm
by lost1
I've now flashed the iSpy image and the repeater mode worked immediately now!
Wonderful!
Thank you!

Re: build error

Posted: Tue Jun 14, 2016 10:10 pm
by majimus
Hello Everyone,

I'm also having the same error trying to build the ar71xx profile. I'm interesting in making some changes to the qos-gargoyle code, how can I resolve this error about target 'world'?

Thanks,

Majimus

Re: build error

Posted: Wed Jun 15, 2016 9:02 pm
by majimus
lost1 wrote:I'm trying to build Gargoyle from git according to the developer documentation but I'm not successful.

This is the log:
http://pastebin.com/5t3g4Vt9

and here the last lines:

Code: Select all

Makefile:3583: recipe for target 's-attrtab' failed
make[6]: *** [s-attrtab] Killed
make[6]: Leaving directory '/root/gargoyle/ar71xx-src/build_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/gcc-linaro-4.8-2014.04-minimal/gcc'
Makefile:3892: recipe for target 'all-gcc' failed
make[5]: *** [all-gcc] Error 2
make[5]: Leaving directory '/root/gargoyle/ar71xx-src/build_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/gcc-linaro-4.8-2014.04-minimal'
Makefile:46: recipe for target '/root/gargoyle/ar71xx-src/build_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/gcc-linaro-4.8-2014.04-minimal/.built' failed
make[4]: *** [/root/gargoyle/ar71xx-src/build_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/gcc-linaro-4.8-2014.04-minimal/.built] Error 2
make[4]: Target 'compile' not remade because of errors.
make[4]: Leaving directory '/root/gargoyle/ar71xx-src/toolchain/gcc/minimal'
toolchain/Makefile:81: recipe for target 'toolchain/gcc/minimal/compile' failed
make[3]: *** [toolchain/gcc/minimal/compile] Error 2
make[4]: Entering directory '/root/gargoyle/ar71xx-src/toolchain/kernel-headers'
make[4]: Nothing to be done for 'prepare'.
make[4]: Leaving directory '/root/gargoyle/ar71xx-src/toolchain/kernel-headers'
make[4]: Entering directory '/root/gargoyle/ar71xx-src/toolchain/kernel-headers'
make[4]: Nothing to be done for 'compile'.
make[4]: Leaving directory '/root/gargoyle/ar71xx-src/toolchain/kernel-headers'
make[4]: Entering directory '/root/gargoyle/ar71xx-src/toolchain/uClibc/headers'
make[4]: Nothing to be done for 'prepare'.
make[4]: Leaving directory '/root/gargoyle/ar71xx-src/toolchain/uClibc/headers'
make[4]: Entering directory '/root/gargoyle/ar71xx-src/toolchain/gcc/initial'
make[4]: Nothing to be done for 'prepare'.
make[4]: Leaving directory '/root/gargoyle/ar71xx-src/toolchain/gcc/initial'
make[4]: Entering directory '/root/gargoyle/ar71xx-src/toolchain/uClibc'
bash: mips-openwrt-linux-uclibc-gcc: command not found
bash: mips-openwrt-linux-uclibc-gcc: command not found
make[4]: Nothing to be done for 'prepare'.
make[4]: Leaving directory '/root/gargoyle/ar71xx-src/toolchain/uClibc'
make[4]: Entering directory '/root/gargoyle/ar71xx-src/toolchain/gcc/final'
make[4]: Nothing to be done for 'prepare'.
make[4]: Leaving directory '/root/gargoyle/ar71xx-src/toolchain/gcc/final'
make[4]: Entering directory '/root/gargoyle/ar71xx-src/toolchain/uClibc/utils'
bash: mips-openwrt-linux-uclibc-gcc: command not found
make[4]: Nothing to be done for 'prepare'.
make[4]: Leaving directory '/root/gargoyle/ar71xx-src/toolchain/uClibc/utils'
make[3]: Target 'toolchain/install' not remade because of errors.
make[3]: Leaving directory '/root/gargoyle/ar71xx-src'
toolchain/Makefile:80: recipe for target '/root/gargoyle/ar71xx-src/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/stamp/.toolchain_install' failed
make[2]: *** [/root/gargoyle/ar71xx-src/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/stamp/.toolchain_install] Error 2
make[3]: Entering directory '/root/gargoyle/ar71xx-src'
rm -rf /root/gargoyle/ar71xx-src/staging_dir/target-mips_34kc_uClibc-0.9.33.2/root-ar71xx
make[3]: Leaving directory '/root/gargoyle/ar71xx-src'
make[2]: Target 'world' not remade because of errors.
make[2]: Leaving directory '/root/gargoyle/ar71xx-src'
/root/gargoyle/ar71xx-src/include/toplevel.mk:181: recipe for target 'world' failed
make[1]: *** [world] Error 2
make[1]: Leaving directory '/root/gargoyle/ar71xx-src'
ls: cannot access 'bin': No such file or directory
find: ‘bin’: No such file or directory
find: ‘’: No such file or directory
find: ‘’: No such file or directory
ls: cannot access 'bin': No such file or directory
Is anyone able to help me here.

Thank you!
Trying doing a custom build first, build the tools and sdk, I did something along those lines and now my build works. Not sure which of those really fixed it.