`oonf-olsrd2`: Build fails for me with `FAILED: src/olsrd2/CMakeFiles/olsrd2_static /[...]/openwrt-22.03/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/oonf-olsrd2-v0.15.1/src/olsrd2/CMakeFiles/olsrd2_static` on 22.03.
Maintainer:
Henning Rogge <hrogge(at)gmail.com>, @HRogge
Environment:
- Building for Xunlog OrangePi Plus (sun8i):
grep ^CONFIG_TARGET .config:CONFIG_TARGET_sunxi=y CONFIG_TARGET_sunxi_cortexa7=y CONFIG_TARGET_sunxi_cortexa7_DEVICE_xunlong_orangepi-plus=y CONFIG_TARGET_BOARD="sunxi" CONFIG_TARGET_SUBTARGET="cortexa7" CONFIG_TARGET_PROFILE="DEVICE_xunlong_orangepi-plus" CONFIG_TARGET_ARCH_PACKAGES="arm_cortex-a7_neon-vfpv4" [...] - OpenWrt version:
- Git branch
openwrt-22.03fromgit://git.openwrt.org/openwrt/openwrt.git, - initially checked out on 2022-07-05,
- latest
git pulland./scripts/feeds update -a && ./scripts/feeds update -aon 2022-07-14, ca. 12:00 UTC
(I give up on posting latest commit date and hash, sincegit loggives me some old dates, and I don't know how I can makegit logprinting out the last operation. I don't know much aboutgit.)
- Git branch
- Building on GNU/Linux on x86_64-architecture (Distribution: Artix Linux).
- OpenWrt configuration: →
config.txt. -
grep -i oonf .config:CONFIG_PACKAGE_oonf-dlep-proxy=m CONFIG_PACKAGE_oonf-dlep-radio=m CONFIG_PACKAGE_oonf-init-scripts=m CONFIG_PACKAGE_oonf-olsrd2=m CONFIG_OONF_NHDP_AUTOLL4=y CONFIG_OONF_OLSRV2_LAN_IMPORT=y CONFIG_OONF_OLSRV2_ROUTE_MODIFIER=y CONFIG_OONF_GENERIC_DLEP_ROUTER=y CONFIG_OONF_GENERIC_REMOTECONTROL=y CONFIG_OONF_GENERIC_HTTP=y CONFIG_OONF_OLSRV2_MPR=y -
grep -i olsr .config | grep -v luci-i18n:CONFIG_PACKAGE_luci-app-olsr=y CONFIG_PACKAGE_luci-app-olsr-services=y CONFIG_PACKAGE_luci-app-olsr-viz=y # OLSR.org network framework CONFIG_PACKAGE_oonf-olsrd2=m CONFIG_OONF_OLSRV2_LAN_IMPORT=y CONFIG_OONF_OLSRV2_ROUTE_MODIFIER=y CONFIG_OONF_OLSRV2_MPR=y # end of OLSR.org network framework CONFIG_PACKAGE_olsrd=y CONFIG_PACKAGE_olsrd-mod-arprefresh=y CONFIG_PACKAGE_olsrd-mod-bmf=y CONFIG_PACKAGE_olsrd-mod-dot-draw=y CONFIG_PACKAGE_olsrd-mod-dyn-gw=y CONFIG_PACKAGE_olsrd-mod-dyn-gw-plain=y CONFIG_PACKAGE_olsrd-mod-filtergw=y CONFIG_PACKAGE_olsrd-mod-httpinfo=y CONFIG_PACKAGE_olsrd-mod-jsoninfo=y CONFIG_PACKAGE_olsrd-mod-mdns=y CONFIG_PACKAGE_olsrd-mod-nameservice=y CONFIG_PACKAGE_olsrd-mod-netjson=y CONFIG_PACKAGE_olsrd-mod-p2pd=y CONFIG_PACKAGE_olsrd-mod-pgraph=y CONFIG_PACKAGE_olsrd-mod-pud=y CONFIG_PACKAGE_olsrd-mod-quagga=y CONFIG_PACKAGE_olsrd-mod-secure=y CONFIG_PACKAGE_olsrd-mod-sgwdynspeed=y CONFIG_PACKAGE_olsrd-mod-txtinfo=y CONFIG_PACKAGE_olsrd-mod-watchdog=y CONFIG_PACKAGE_olsrd-utils=y CONFIG_PACKAGE_wg-installer-server-hotplug-olsrd=m CONFIG_PACKAGE_collectd-mod-olsrd=y
Description:
A make -j6 fails in above configuration on package/feeds/routing/oonf-olsrd2. After a make package/feeds/routing/oonf-olsrd2/clean, an explicit run of
make -j1 V=sc package/feeds/routing/oonf-olsrd2/compile
fails with
ninja: Entering directory `/[...]/openwrt-22.03/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/oonf-olsrd2-v0.15.1'
[1/1] cd /[...]/openwrt-22.03/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/oonf-olsrd2-v0.15.1/src/olsrd2 && false
FAILED: src/olsrd2/CMakeFiles/olsrd2_static /[...]/openwrt-22.03/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/oonf-olsrd2-v0.15.1/src/olsrd2/CMakeFiles/olsrd2_static
cd /[...]/openwrt-22.03/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/oonf-olsrd2-v0.15.1/src/olsrd2 && false
ninja: build stopped: subcommand failed.
make[2]: *** [Makefile:91: /[...]/openwrt-22.03/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/oonf-olsrd2-v0.15.1/.built] Error 1
Full output of above 'make' command (*click* to expand)
WARNING: Makefile 'package/feeds/video/qt4/Makefile' has a dependency on 'libX11', which does not exist
WARNING: Makefile 'package/feeds/video/qt4/Makefile' has a dependency on 'libXext', which does not exist
WARNING: Makefile 'package/feeds/video/qt4/Makefile' has a dependency on 'tslib', which does not exist
WARNING: Makefile 'package/feeds/video/qt4/Makefile' has a dependency on 'directfb', which does not exist
make[2]: Entering directory '/[...]/openwrt-22.03/scripts/config'
make[2]: 'conf' is up to date.
make[2]: Leaving directory '/[...]/openwrt-22.03/scripts/config'
make[1]: Entering directory '/[...]/openwrt-22.03'
make[2]: Entering directory '/[...]/openwrt-22.03/package/libs/toolchain'
echo "libc" >> /[...]/openwrt-22.03/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/pkginfo/toolchain.default.install
echo "libgcc" >> /[...]/openwrt-22.03/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/pkginfo/toolchain.default.install
echo "libatomic" >> /[...]/openwrt-22.03/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/pkginfo/toolchain.default.install
echo "libstdcpp" >> /[...]/openwrt-22.03/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/pkginfo/toolchain.default.install
echo "libpthread" >> /[...]/openwrt-22.03/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/pkginfo/toolchain.default.install
echo "librt" >> /[...]/openwrt-22.03/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/pkginfo/toolchain.default.install
make[2]: Leaving directory '/[...]/openwrt-22.03/package/libs/toolchain'
time: package/libs/toolchain/compile#0.35#0.09#0.41
make[2]: Entering directory '/[...]/openwrt-22.03/feeds/routing/oonf-init-scripts'
make[2]: Leaving directory '/[...]/openwrt-22.03/feeds/routing/oonf-init-scripts'
time: package/feeds/routing/oonf-init-scripts/compile#0.33#0.06#0.37
make[2]: Entering directory '/[...]/openwrt-22.03/package/libs/libnl-tiny'
echo "libnl-tiny" >> /[...]/openwrt-22.03/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/pkginfo/libnl-tiny.default.install
make[2]: Leaving directory '/[...]/openwrt-22.03/package/libs/libnl-tiny'
time: package/libs/libnl-tiny/compile#0.35#0.08#0.40
make[2]: Entering directory '/[...]/openwrt-22.03/package/libs/libjson-c'
echo "libjson-c" >> /[...]/openwrt-22.03/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/pkginfo/libjson-c.default.install
make[2]: Leaving directory '/[...]/openwrt-22.03/package/libs/libjson-c'
time: package/libs/libjson-c/compile#0.47#0.06#0.47
make[2]: Entering directory '/[...]/openwrt-22.03/package/utils/lua'
echo "liblua" >> /[...]/openwrt-22.03/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/pkginfo/lua.default.install
echo "lua" >> /[...]/openwrt-22.03/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/pkginfo/lua.default.install
make[2]: Leaving directory '/[...]/openwrt-22.03/package/utils/lua'
time: package/utils/lua/compile#0.47#0.07#0.48
make[2]: Entering directory '/[...]/openwrt-22.03/package/libs/libubox'
echo "libubox" >> /[...]/openwrt-22.03/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/pkginfo/libubox.default.install
echo "libblobmsg-json" >> /[...]/openwrt-22.03/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/pkginfo/libubox.default.install
echo "jshn" >> /[...]/openwrt-22.03/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/pkginfo/libubox.default.install
echo "libjson-script" >> /[...]/openwrt-22.03/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/pkginfo/libubox.default.install
make[2]: Leaving directory '/[...]/openwrt-22.03/package/libs/libubox'
time: package/libs/libubox/compile#0.42#0.11#0.47
make[2]: Entering directory '/[...]/openwrt-22.03/package/system/uci'
echo "libuci" >> /[...]/openwrt-22.03/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/pkginfo/uci.default.install
echo "libuci-lua" >> /[...]/openwrt-22.03/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/pkginfo/uci.default.install
echo "uci" >> /[...]/openwrt-22.03/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/pkginfo/uci.default.install
make[2]: Leaving directory '/[...]/openwrt-22.03/package/system/uci'
time: package/system/uci/compile#0.37#0.11#0.44
make[2]: Entering directory '/[...]/openwrt-22.03/feeds/routing/oonf-olsrd2'
rm -f /[...]/openwrt-22.03/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/oonf-olsrd2-v0.15.1/.built
touch /[...]/openwrt-22.03/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/oonf-olsrd2-v0.15.1/.built_check
MAKEFLAGS="" /[...]/openwrt-22.03/staging_dir/host/bin/ninja -v -j1 -C /[...]/openwrt-22.03/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/oonf-olsrd2-v0.15.1 olsrd2_static
ninja: Entering directory `/[...]/openwrt-22.03/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/oonf-olsrd2-v0.15.1'
[1/1] cd /[...]/openwrt-22.03/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/oonf-olsrd2-v0.15.1/src/olsrd2 && false
FAILED: src/olsrd2/CMakeFiles/olsrd2_static /[...]/openwrt-22.03/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/oonf-olsrd2-v0.15.1/src/olsrd2/CMakeFiles/olsrd2_static
cd /[...]/openwrt-22.03/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/oonf-olsrd2-v0.15.1/src/olsrd2 && false
ninja: build stopped: subcommand failed.
make[2]: *** [Makefile:91: /[...]/openwrt-22.03/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/oonf-olsrd2-v0.15.1/.built] Error 1
make[2]: Leaving directory '/[...]/openwrt-22.03/feeds/routing/oonf-olsrd2'
time: package/feeds/routing/oonf-olsrd2/compile#0.35#0.06#0.37
ERROR: package/feeds/routing/oonf-olsrd2 failed to build.
make[1]: *** [package/Makefile:116: package/feeds/routing/oonf-olsrd2/compile] Error 1
make[1]: Leaving directory '/[...]/openwrt-22.03'
make: *** [/[...]/openwrt-22.03/include/toplevel.mk:230: package/feeds/routing/oonf-olsrd2/compile] Error 2
@PolynomialDivision any idea?
To fix builds for me I updated olsrd2 to latest develop branch, as the master branch is pretty much unused currently (and olsrd2 does not really have any stable release. latest develop is the most stable you'll get as there were quite a lot of fixes merged).
Attached is a patch that applies to the routing feed version that is currently used by the latest 22.03 stable. olsrd2.zip (zip because for whatever reason github won't let me upload a patch file with an unsupported filetype error...)
EDIT: Udpated the patch file, I accidentally sent the version with my testing tree of olsrd2
Why don't you add a PR?
Haven't had time so far. I was planning on making a PR next week
https://github.com/openwrt/routing/pull/956 PR opened