Build for ar71xx fails second time through

Discuss the technical details of Gargoyle and ongoing development

Moderator: Moderators

Chilling_Silence
Posts: 47
Joined: Tue Jul 27, 2010 11:31 pm

Build for ar71xx fails second time through

Post by Chilling_Silence »

Hi All,

Wanting to do some builds, for the Archer C7 and the TL-WR1043ND specifically, so I'm running:
git clone http://github.com/ericpaulbishop/gargoyle.git
cd gargoyle
time make ar71xx

First time through it finishes perfectly:

Code: Select all

Generating index for package ./wireless-tools_29-5_ar71xx.ipk
Generating index for package ./wol_0.7.1-3_ar71xx.ipk
Generating index for package ./wpad-mini_2015-03-25-1_ar71xx.ipk
Generating index for package ./wpad_2015-03-25-1_ar71xx.ipk
Generating index for package ./wwan_2014-07-17-1_ar71xx.ipk
Generating index for package ./zip_3.0-1_ar71xx.ipk
Generating index for package ./zlib_1.2.8-1_ar71xx.ipk
Signing package index...
make[3]: Leaving directory '/home/builduser/gargoyle/ar71xx-src'
make[2]: Leaving directory '/home/builduser/gargoyle/ar71xx-src'
make[1]: Leaving directory '/home/builduser/gargoyle/ar71xx-src'

real    212m44.413s
user    124m24.228s
sys     7m12.640s
And if I check, the firmware files are all in there (And I've even flashed one to a TL-WR1043NDv3):

Code: Select all

:~/gargoyle$ ls -la ar71xx-src/bin/ar71xx/ | wc -l
458
I then run it a second time (I was going to add in some uci-defaults, but it does this even without any changes) just by pushing up (to run the last bash command) and then it bombs out with:

Code: Select all

/home/builduser/gargoyle/ar71xx-src/build_dir/target-mips_34kc_uClibc-0.9.33.2/iproute2-full/iproute2-4.0.0/tc/tc_core.o:tc_core.c:(.text.tc_calc_xmittime+0x1): first defined here
/home/builduser/gargoyle/ar71xx-src/build_dir/target-mips_34kc_uClibc-0.9.33.2/iproute2-tiny/iproute2-4.0.0/tc/tc_core.o: In function `tc_calc_xmitsize':
tc_core.c:(.text.tc_calc_xmitsize+0x1): multiple definition of `tc_calc_xmitsize'
/home/builduser/gargoyle/ar71xx-src/build_dir/target-mips_34kc_uClibc-0.9.33.2/iproute2-full/iproute2-4.0.0/tc/tc_core.o:tc_core.c:(.text.tc_calc_xmitsize+0x1): first defined here
/home/builduser/gargoyle/ar71xx-src/build_dir/target-mips_34kc_uClibc-0.9.33.2/iproute2-tiny/iproute2-4.0.0/tc/tc_core.o: In function `tc_calc_rtable':
tc_core.c:(.text.tc_calc_rtable+0x1): multiple definition of `tc_calc_rtable'
/home/builduser/gargoyle/ar71xx-src/build_dir/target-mips_34kc_uClibc-0.9.33.2/iproute2-full/iproute2-4.0.0/tc/tc_core.o:tc_core.c:(.text.tc_calc_rtable+0x1): first defined here
/home/builduser/gargoyle/ar71xx-src/build_dir/target-mips_34kc_uClibc-0.9.33.2/iproute2-tiny/iproute2-4.0.0/tc/tc_core.o: In function `tc_calc_size_table':
tc_core.c:(.text.tc_calc_size_table+0x1): multiple definition of `tc_calc_size_table'
/home/builduser/gargoyle/ar71xx-src/build_dir/target-mips_34kc_uClibc-0.9.33.2/iproute2-full/iproute2-4.0.0/tc/tc_core.o:tc_core.c:(.text.tc_calc_size_table+0x1): first defined here
/home/builduser/gargoyle/ar71xx-src/build_dir/target-mips_34kc_uClibc-0.9.33.2/iproute2-tiny/iproute2-4.0.0/tc/tc_core.o: In function `tc_core_init':
tc_core.c:(.text.tc_core_init+0x1): multiple definition of `tc_core_init'
/home/builduser/gargoyle/ar71xx-src/build_dir/target-mips_34kc_uClibc-0.9.33.2/iproute2-full/iproute2-4.0.0/tc/tc_core.o:tc_core.c:(.text.tc_core_init+0x1): first defined here
/home/builduser/gargoyle/ar71xx-src/build_dir/target-mips_34kc_uClibc-0.9.33.2/iproute2-tiny/iproute2-4.0.0/tc/q_hfsc.o:(.data.hfsc_qdisc_util+0x0): multiple definition of `hfsc_qdisc_util'
/home/builduser/gargoyle/ar71xx-src/build_dir/target-mips_34kc_uClibc-0.9.33.2/iproute2-full/iproute2-4.0.0/tc/q_hfsc.o:(.data.hfsc_qdisc_util+0x0): first defined here
/home/builduser/gargoyle/ar71xx-src/build_dir/target-mips_34kc_uClibc-0.9.33.2/iproute2-full/iproute2-4.0.0/lib/libutil.a(utils.o): In function `format_host':
utils.c:(.text.format_host+0x162): warning: gethostbyaddr is obsolescent, use getaddrinfo() instead.
qosmon.o: In function `main':
qosmon.c:(.text.startup+0xde): warning: gethostbyname is obsolescent, use getnameinfo() instead.
collect2: error: ld returned 1 exit status
Makefile:21: recipe for target 'qosmon' failed
make[5]: *** [qosmon] Error 1
make[5]: Leaving directory '/home/builduser/gargoyle/ar71xx-src/build_dir/target-mips_34kc_uClibc-0.9.33.2/qos-gargoyle'
Makefile:67: recipe for target '/home/builduser/gargoyle/ar71xx-src/build_dir/target-mips_34kc_uClibc-0.9.33.2/qos-gargoyle/.built' failed
make[4]: *** [/home/builduser/gargoyle/ar71xx-src/build_dir/target-mips_34kc_uClibc-0.9.33.2/qos-gargoyle/.built] Error 2
make[4]: Leaving directory '/home/builduser/gargoyle/ar71xx-src/package/qos-gargoyle'
package/Makefile:193: recipe for target 'package/qos-gargoyle/compile' failed
make[3]: *** [package/qos-gargoyle/compile] Error 2
make[3]: Leaving directory '/home/builduser/gargoyle/ar71xx-src'
package/Makefile:190: recipe for target '/home/builduser/gargoyle/ar71xx-src/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.package_compile' failed
make[2]: *** [/home/builduser/gargoyle/ar71xx-src/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.package_compile] Error 2
make[2]: Leaving directory '/home/builduser/gargoyle/ar71xx-src'
/home/builduser/gargoyle/ar71xx-src/include/toplevel.mk:181: recipe for target 'world' failed
make[1]: *** [world] Error 2
make[1]: Leaving directory '/home/builduser/gargoyle/ar71xx-src'

real    20m14.709s
user    8m28.728s
sys     0m44.388s
Any ideas why it's now failing on building iproute2-tiny?
Is there a better way for me to just "re-package" the firmware, including the uci-default changes that I should be using?

Cheers


Chill.

Chilling_Silence
Posts: 47
Joined: Tue Jul 27, 2010 11:31 pm

Re: Build for ar71xx fails second time through

Post by Chilling_Silence »

Any ideas why it's not happy?
I can just rm -rf the gargoyle directory and start again each time but it's a bit excessive for making small tweaks.

First build: Always flawless
Second build in the same directory: Never gets past there :(

Lantis
Moderator
Posts: 6753
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Build for ar71xx fails second time through

Post by Lantis »

I ran 5 builds in a row with zero issues.

The one difference I see between us.
My first build runs as
make FULL_BUILD=true ar71xx

And my subsequent builds are
make ar71xx
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Chilling_Silence
Posts: 47
Joined: Tue Jul 27, 2010 11:31 pm

Re: Build for ar71xx fails second time through

Post by Chilling_Silence »

I've just rm -rf 'd the gargoyle directory and tried again, doing exactly as you did, but I'm still getting:

Code: Select all

/home/builduser/gargoyle/ar71xx-src/build_dir/target-mips_34kc_uClibc-0.9.33.2/iproute2-full/iproute2-4.0.0/tc/tc_core.o:tc_core.c:(.text.tc_core_init+0x1): first defined here
/home/builduser/gargoyle/ar71xx-src/build_dir/target-mips_34kc_uClibc-0.9.33.2/iproute2-tiny/iproute2-4.0.0/tc/q_hfsc.o:(.data.hfsc_qdisc_util+0x0): multiple definition of `hfsc_qdisc_util'
/home/builduser/gargoyle/ar71xx-src/build_dir/target-mips_34kc_uClibc-0.9.33.2/iproute2-full/iproute2-4.0.0/tc/q_hfsc.o:(.data.hfsc_qdisc_util+0x0): first defined here
/home/builduser/gargoyle/ar71xx-src/build_dir/target-mips_34kc_uClibc-0.9.33.2/iproute2-full/iproute2-4.0.0/lib/libutil.a(utils.o): In function `format_host':
utils.c:(.text.format_host+0x162): warning: gethostbyaddr is obsolescent, use getaddrinfo() instead.
qosmon.o: In function `main':
qosmon.c:(.text.startup+0xde): warning: gethostbyname is obsolescent, use getnameinfo() instead.
collect2: error: ld returned 1 exit status
Makefile:21: recipe for target 'qosmon' failed
make[5]: *** [qosmon] Error 1
:(
Any ideas why ? Makes tweaking it a bloody long process :P

Actually I wonder if it's because I'm running it with "time", let me try without....

Chilling_Silence
Posts: 47
Joined: Tue Jul 27, 2010 11:31 pm

Re: Build for ar71xx fails second time through

Post by Chilling_Silence »

Nope, still happens :(

Lantis
Moderator
Posts: 6753
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Build for ar71xx fails second time through

Post by Lantis »

What customisation have you made? That error can occur if you select both ip and ip-full (might be IP route).
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Chilling_Silence
Posts: 47
Joined: Tue Jul 27, 2010 11:31 pm

Re: Build for ar71xx fails second time through

Post by Chilling_Silence »

None at all, like I mentioned I rm -rf'd the directory and did a complete fresh build, no customizations to Gargoyle, no custom configuration for OpenWRT, no FILES directory even, nothing at all :(

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

Re: Build for ar71xx fails second time through

Post by ispyisail »

hard drive full?

Chilling_Silence
Posts: 47
Joined: Tue Jul 27, 2010 11:31 pm

Re: Build for ar71xx fails second time through

Post by Chilling_Silence »

Nup, it's a VM on a 3TB HDD I've spun up just for this:
builduser@openwrt:~/gargoyle$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 294G 76G 204G 27% /

Any other ideas ?

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

Re: Build for ar71xx fails second time through

Post by ispyisail »

Mine works perfect

Problems i've had

- Hard drive filling up

- Can't auto purge packages ubuntu because of the above problem

- Gargoyle/openwrt repositories links going down BUT because i've download then previously my build works and others won't

- errors in the gargoyle/openwrt code

- Errors due to building with more than one CPU

That all I can remember

Post Reply