Failed build on PC Engines APU2

Hello. The build for the x86_64 target ends with various errors. I had to exclude (kmod-button-hotplug, kmod-ath10k, kmod-mac80211, kmod-cfg80211, flashrom, pciutils).

kg/include -I/home/debian/apu2/staging_dir/target-x86_64_musl/host/include -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="x86_64-openwrt-linux-musl-" ARCH="x86" KBUILD_HAVE_NLS=no KBUILD_BUILD_USER="" KBUILD_BUILD_HOST="" KBUILD_BUILD_TIMESTAMP="Tue Jan 3 00:24:21 2023" KBUILD_BUILD_VERSION="0" HOST_LOADLIBES="-L/home/debian/apu2/staging_dir/host/lib" KBUILD_HOSTLDLIBS="-L/home/debian/apu2/staging_dir/host/lib" CONFIG_SHELL="bash" V='' cmd_syscalls= KBUILD_EXTRA_SYMBOLS="/home/debian/apu2/build_dir/target-x86_64_musl/linux-x86_64/symvers/gpio-button-hotplug.symvers /home/debian/apu2/build_dir/target-x86_64_musl/linux-x86_64/symvers/gpio-nct5104d.symvers" KERNELRELEASE=5.10.161 M="/home/debian/apu2/build_dir/target-x86_64_musl/linux-x86_64/button-hotplug" EXTRA_CFLAGS=" -DCONFIG_BUTTON_HOTPLUG=1 " CONFIG_BUTTON_HOTPLUG=m modules
make[4]: Entering directory '/home/debian/apu2/build_dir/target-x86_64_musl/linux-x86_64/linux-5.10.161'
make[5]: *** No rule to make target '/home/debian/apu2/build_dir/target-x86_64_musl/linux-x86_64/button-hotplug/button-hotplug.o', needed by '/home/debian/apu2/build_dir/target-x86_64_musl/linux-x86_64/button-hotplug/button-hotplug.mod'. Stop.
make[4]: *** [Makefile:1837: /home/debian/apu2/build_dir/target-x86_64_musl/linux-x86_64/button-hotplug] Error 2
make[4]: Leaving directory '/home/debian/apu2/build_dir/target-x86_64_musl/linux-x86_64/linux-5.10.161'
make[3]: *** [Makefile:53: /home/debian/apu2/build_dir/target-x86_64_musl/linux-x86_64/button-hotplug/.built] Error 2
make[3]: Leaving directory '/home/debian/apu2/package/kernel/button-hotplug'
time: package/kernel/button-hotplug/compile#0.39#0.03#0.41
ERROR: package/kernel/button-hotplug failed to build.
make[2]: *** [package/Makefile:116: package/kernel/button-hotplug/compile] Error 1
make[2]: Leaving directory '/home/debian/apu2'
make[1]: *** [package/Makefile:110: /home/debian/apu2/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/debian/apu2'
make: *** [/home/debian/apu2/include/toplevel.mk:230: world] Ошибка 2

make[8]: 'conf' is up to date.
boolean symbol CRYPTO_LIB_ARC4 tested for 'm'? test forced to 'n'
Building backport-include/backport/autoconf.h ... done.
make[9]: *** No rule to make target '/home/debian/apu2/build_dir/target-x86_64_musl/linux-x86_64/backports-5.15.81-1/compat/main.o', needed by '/home/debian/apu2/build_dir/target-x86_64_musl/linux-x86_64/backports-5.15.81-1/compat/compat.o'. Stop.
make[8]: *** [scripts/Makefile.build:503: /home/debian/apu2/build_dir/target-x86_64_musl/linux-x86_64/backports-5.15.81-1/compat] Error 2
make[7]: *** [Makefile:1837: /home/debian/apu2/build_dir/target-x86_64_musl/linux-x86_64/backports-5.15.81-1] Error 2
make[6]: *** [Makefile.build:13: modules] Error 2
make[5]: *** [Makefile.real:93: modules] Error 2
make[4]: *** [Makefile:121: modules] Error 2
make[4]: Leaving directory '/home/debian/apu2/build_dir/target-x86_64_musl/linux-x86_64/backports-5.15.81-1'
make[3]: *** [Makefile:559: /home/debian/apu2/build_dir/target-x86_64_musl/linux-x86_64/backports-5.15.81-1/.built] Error 2
make[3]: Leaving directory '/home/debian/apu2/package/kernel/mac80211'
time: package/kernel/mac80211/regular/compile#0.47#0.03#0.46
ERROR: package/kernel/mac80211 failed to build (build variant: regular).
make[2]: *** [package/Makefile:116: package/kernel/mac80211/compile] Error 1
make[2]: Leaving directory '/home/debian/apu2'
make[1]: *** [package/Makefile:110: /home/debian/apu2/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/debian/apu2'
make: *** [/home/debian/apu2/include/toplevel.mk:230: world] Ошибка 2

* opkg_install_cmd: Cannot install package pciutils.
make[2]: *** [package/Makefile:70: package/install] Error 255
make[2]: Leaving directory '/home/debian/apu2'
make[1]: *** [package/Makefile:111: /home/debian/apu2/staging_dir/target-x86_64_musl/stamp/.package_install] Error 2
make[1]: Leaving directory '/home/debian/apu2'
make: *** [/home/debian/apu2/include/toplevel.mk:230: world] Ошибка 2

I have the same problem.

https://github.com/openwrt/openwrt/issues/9860

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.