Error compiling 23.05 Linksys WRT3200ACM

Hello, I get an error when compiling the latest version OpenWrt-23.05 for the mvebu device "Linksys WRT3200ACM" the same config in the previous version openwrt-22.03 compiles without problems, below I put the last lines of the compilation in case someone can help me give a clue where the problem comes from, or if it is already known, thank you.

lib

  libxdp
    CC       staticobjs/libxdp.o
    CC       staticobjs/xsk.o
    CLANG    xdp-dispatcher.o
In file included from xdp-dispatcher.c:3:
In file included from ../../headers/linux/bpf.h:11:
/usr/include/linux/types.h:5:10: fatal error: 'asm/types.h' file not found
#include <asm/types.h>
         ^~~~~~~~~~~~~
1 error generated.
make[6]: *** [Makefile:139: xdp-dispatcher.o] Error 1
make[5]: *** [Makefile:20: libxdp] Error 2
make[4]: *** [Makefile:25: lib] Error 2
make[4]: Leaving directory '/home/abuntu/ow23/LS/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/xdp-tools-1.2.9'
make[3]: *** [Makefile:139: /home/abuntu/ow23/LS/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/xdp-tools-1.2.9/.built] Error 2
make[3]: Leaving directory '/home/abuntu/ow23/LS/openwrt/package/network/utils/xdp-tools'
time: package/network/utils/xdp-tools/compile#1.04#0.07#1.08
    ERROR: package/network/utils/xdp-tools failed to build.
make[2]: *** [package/Makefile:128: package/network/utils/xdp-tools/compile] Error 1
make[2]: Leaving directory '/home/abuntu/ow23/LS/openwrt'
make[1]: *** [package/Makefile:122: /home/abuntu/ow23/LS/openwrt/staging_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/abuntu/ow23/LS/openwrt'
make: *** [/home/abuntu/ow23/LS/openwrt/include/toplevel.mk:232: world] Error 2

Got everything set up, as described in https://openwrt.org/docs/guide-developer/toolchain/install-buildsystem ?

Hello, thanks for responding but I don't think that is the problem since the previous version openwrt-22.03 i compiled without problems

It's a yes / no question, bud.

2 Likes

@frollic
Sorry, I couldn't have answered with a resounding yes, I suppose yes for the reason given.

@hnyman
Thank you very much for the reference of the already known problem.

Same problem here, and cannot simply install gcc-multilib, because gcc-multilib is not available for arm64.

Hello, many compilation errors are caused by overwriting the ".config" of the new version with that of an old one and you have to configure the list of packages to compile from scratch.