Im trying to compile for a pi4 using the defualt .config
make -j1 V=s package/xdp-tools/compile gives
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[5]: *** [Makefile:139: xdp-dispatcher.o] Error 1
make[4]: *** [Makefile:20: libxdp] Error 2
make[3]: *** [Makefile:25: lib] Error 2
I'm lost,compiling on Debian ifit is a depends problem
Thankz
Jeff
Are all dependencies installed ?
Oops, My bad
I did miss gcc-multilib
So now I'm further
But get
""""
Laveno openwrt # make -j1 V=s package/xdp-tools/compile
make[2]: Entering directory '/root/openwrt/scripts/config'
make[2]: 'conf' is up to date.
make[2]: Leaving directory '/root/openwrt/scripts/config'
make[1]: Entering directory '/root/openwrt'
mkdir -p /root/openwrt/staging_dir/target-mips_24kc_musl
cd /root/openwrt/staging_dir/target-mips_24kc_musl
mkdir -p bin lib stamp usr/include usr/lib
mkdir -p /root/openwrt/build_dir/target-mips_24kc_musl/stamp
touch /root/openwrt/staging_dir/target-mips_24kc_musl/.prepared
make[2]: Entering directory '/root/openwrt/package/libs/toolchain'
echo "libc" >> /root/openwrt/staging_dir/target-mips_24kc_musl/pkginfo/toolchain.default.install
echo "libgcc" >> /root/openwrt/staging_dir/target-mips_24kc_musl/pkginfo/toolchain.default.install
echo "libpthread" >> /root/openwrt/staging_dir/target-mips_24kc_musl/pkginfo/toolchain.default.install
make[2]: Leaving directory '/root/openwrt/package/libs/toolchain'
time: package/libs/toolchain/compile#0.18#0.03#0.20
make[2]: Entering directory '/root/openwrt/package/kernel/bpf-headers'
rm -f /root/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/bpf-headers/linux-5.15.162/.configured_*
rm -f /root/openwrt/staging_dir/target-mips_24kc_musl/stamp/.bpf-headers_installed
grep -vE 'CONFIG_(CPU_.*ENDIAN|HZ)' /root/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/bpf-headers/linux-5.15.162/arch/mips/configs/generic_defconfig > /root/openwrt/build_dir/t arget-mips_24kc_musl/linux-ath79_generic/bpf-headers/linux-5.15.162/.config
echo 'CONFIG_CPU_BIG_ENDIAN=y' >> /root/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/bpf-headers/linux-5.15.162/.config
grep CONFIG_HZ /root/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-5.15.162/.config >> /root/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/bpf-headers/linux-5 .15.162/.config
yes '' | make -C /root/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/bpf-headers/linux-5.15.162 ARCH=mips CROSS_COMPILE=mips-linux- LLVM=1 CC="" LD="mips-openwrt-linux-musl-ld" H OSTCC="gcc" HOSTCXX="g++" KBUILD_HOSTLDLIBS="-L/root/openwrt/staging_dir/host/lib" CONFIG_SHELL="bash" INSTALL_HDR_PATH="/root/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/bpf-h eaders/linux-5.15.162/user_headers" oldconfig
make[3]: Entering directory '/root/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/bpf-headers/linux-5.15.162'
/bin/sh: 0: Illegal option -W
: unknown compiler
scripts/Kconfig.include:44: Sorry, this compiler is not supported.
make[4]: *** [scripts/kconfig/Makefile:77: oldconfig] Error 1
make[3]: *** [Makefile:628: oldconfig] Error 2
make[3]: Leaving directory '/root/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/bpf-headers/linux-5.15.162'
make[2]: *** [Makefile:121: /root/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/bpf-headers/linux-5.15.162/.configured_68b329da9893e34099c7d8ad5cb9c940] Error 2
make[2]: Leaving directory '/root/openwrt/package/kernel/bpf-headers'
time: package/kernel/bpf-headers/compile#0.77#0.05#0.81
ERROR: package/kernel/bpf-headers failed to build.
make[1]: *** [package/Makefile:129: package/kernel/bpf-headers/compile] Error 1
make[1]: Leaving directory '/root/openwrt'
make: *** [/root/openwrt/include/toplevel.mk:232: package/xdp-tools/compile] Error 2
""""
Kernel 5.15 seems old
...
Please use the </> button when pasting cli output.
Ok, got past that by switching to a x86 system.
But I still cannot get it to compile
Gives
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[5]: *** [Makefile:21: xdp_sample.bpf.o] Error 1
make[5]: Leaving directory '/root/openwrt/build_dir/target-aarch64_cortex-a72_musl/xdp-tools-1.4.2/lib/util'
make[4]: *** [Makefile:13: util] Error 2
make[4]: Leaving directory '/root/openwrt/build_dir/target-aarch64_cortex-a72_musl/xdp-tools-1.4.2/lib'
make[3]: *** [Makefile:31: lib] Error 2
make[3]: Leaving directory '/root/openwrt/build_dir/target-aarch64_cortex-a72_musl/xdp-tools-1.4.2'
make[2]: *** [Makefile:144: /root/openwrt/build_dir/target-aarch64_cortex-a72_musl/xdp-tools-1.4.2/.built] Error 2
make[2]: Leaving directory '/root/openwrt/package/network/utils/xdp-tools'
time: package/network/utils/xdp-tools/compile#0.64#0.06#0.66
ERROR: package/network/utils/xdp-tools failed to build.
make[1]: *** [package/Makefile:177: package/network/utils/xdp-tools/compile] Error 1
make[1]: Leaving directory '/root/openwrt'
make: *** [/root/openwrt/include/toplevel.mk:248: package/xdp-tools/compile] Error 2
Laveno openwrt #
Full Build https://pastebin.com/uBqT5FHi
Hostle
September 4, 2024, 2:19am
8
try adding -i to your compile command, this will ignore errors and build what can be built. This should help you narrow in on what is braking in the build..
make -j1 V=s package/xdp-tools/compile -i