Page 1 of 2

18.06.2 Fails to build

Posted: Thu Feb 14, 2019 9:38 pm
by GinDiamond
I've tried the new tutorial to build openwrt for the vocore2 ultimate (I want to add ext3 filesystem support).

At first, I thought if I just follow the tutorial as is, I could then change things later with less trouble.
However, I followed the tutorial but get this error upon make:

Code: Select all
make[4]: Entering directory '/root/Desktop/openwrt/build_dir/target-mipsel_24kc_musl/hostapd-full-internal/hostapd-2018-05-21-62566bc2/hostapd'
../src/ap/sta_info.o: In function `ap_sta_add':
sta_info.c:(.text.ap_sta_add+0x12e): undefined reference to `sta_track_claim_taxonomy_info'
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:1298: hostapd] Error 1


What am I missing again?

Re: 18.06.2 Fails to build

Posted: Thu Feb 14, 2019 9:53 pm
by ArkEngr
I built but it took me 2 trys to follow the directions exactly.

Re: 18.06.2 Fails to build

Posted: Fri Feb 15, 2019 2:40 pm
by GinDiamond
I tried two more times and did a clean clone and followed the directions exactly, but I still get the sta error.

Re: 18.06.2 Fails to build

Posted: Fri Feb 15, 2019 6:40 pm
by ArkEngr
Look in your private messages for a link to a copy of my build tree

Re: 18.06.2 Fails to build

Posted: Thu Feb 28, 2019 10:50 pm
by GinDiamond
I found the solution for me.

It turns out if you build Openwrt in steps, it works fine. Right after you do the git checkout of the 18.06.2 version, do make menuconfig and set it up for a basic vocore2 setup (targets). Build after that. When it finishes, you can then do the patches and it works fine.

Re: 18.06.2 Fails to build

Posted: Sun Mar 03, 2019 3:55 am
by ICore
Is this the tutorial you followed ?
https://github.com/Vonger/vocore2

Can i still compile openwrt for other routers like d-link using the same openwrt source?

Re: 18.06.2 Fails to build

Posted: Sun Mar 03, 2019 11:50 am
by Vonger
ICore wrote:Is this the tutorial you followed ?
https://github.com/Vonger/vocore2

Can i still compile openwrt for other routers like d-link using the same openwrt source?


maybe need to modify some dts

Re: 18.06.2 Fails to build

Posted: Mon Mar 04, 2019 7:07 pm
by Valeron70
I also build 18.06.2 for Vocore2.
By Vonger's tutorial I build it ok on Ubuntu 18.04, but I wanted to add sftp server and vfat support. And I get this error upon make:
Code: Select all
Package base-files is missing dependencies for the following libraries:
libc.so.0
libm.so.0
libstdc++.so.6
Makefile:202: recipe for target '/home/pve/openwrt/bin/targets/ramips/mt76x8/packages/base-files_194.2-r7676-cddd7b4c77_mipsel_24kc.ipk' failed
make[3]: *** [/home/pve/openwrt/bin/targets/ramips/mt76x8/packages/base-files_194.2-r7676-cddd7b4c77_mipsel_24kc.ipk] Error 1
make[3]: Leaving directory '/home/pve/openwrt/package/base-files'
time: package/base-files/compile#0.35#0.07#0.50
package/Makefile:107: recipe for target 'package/base-files/compile' failed
make[2]: *** [package/base-files/compile] Error 2
make[2]: Leaving directory '/home/pve/openwrt'
package/Makefile:103: recipe for target '/home/pve/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile' failed
make[1]: *** [/home/pve/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/pve/openwrt'
/home/pve/openwrt/include/toplevel.mk:216: recipe for target 'world' failed
make: *** [world] Error 2

What to do?

Re: 18.06.2 Fails to build

Posted: Tue Mar 05, 2019 1:09 am
by Vonger
looks like some package is missing, maybe you need also select libstdc++ in Base System(menuconfig first level)

Re: 18.06.2 Fails to build

Posted: Tue Mar 05, 2019 3:42 am
by Valeron70
libc, libstdcpp has been selected, but no effect
https://yadi.sk/i/E-a-41m4YfR22A