openwrt / openwrt/routing

`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.

Open
#899 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
396
Forks
452
Avg merge
13h 29m
Merged PRs (30d)
2

Description

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.03 from git://git.openwrt.org/openwrt/openwrt.git,
    • initially checked out on 2022-07-05,
    • latest git pull and ./scripts/feeds update -a && ./scripts/feeds update -a on 2022-07-14, ca. 12:00 UTC
      (I give up on posting latest commit date and hash, since git log gives me some old dates, and I don't know how I can make git log printing out the last operation. I don't know much about git.)
  • 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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with make -j1 V=sc package/feeds/routing/oonf-olsrd2/compile after cleaning the package. Inspect package/feeds/routing/oonf-olsrd2/Makefile around line 91 and the generated Ninja/CMake output; done means oonf-olsrd2 compiles successfully for the reported OpenWrt 22.03 configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake
Domain
build-system, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.