chenmozhijin / turboacc

一个适用于官方openwrt(22.03/23.05/24.10) firewall4的turboacc
GNU General Public License v3.0
248 stars 72 forks source link

Can't build for OpenWRT 23.05.5 #30

Closed upanasiuk closed 1 month ago

upanasiuk commented 1 month ago

I can't build Turboacc with SFE enabled for OpenWRT v23.05.5.

/home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/fast-classifier/fast-classifier.c:39:10: fatal error: sfe_backport.h: No such file or directory
   39 | #include <sfe_backport.h>
      |          ^~~~~~~~~~~~~~~~

Builds and works fine with --no-sfe.

diffconfig:

CONFIG_TARGET_ath79=y
CONFIG_TARGET_ath79_generic=y
CONFIG_TARGET_ath79_generic_DEVICE_tplink_archer-c6-v2=y
CONFIG_ALL_KMODS=y
CONFIG_ALL_NONSHARED=y
CONFIG_DEVEL=y
CONFIG_AUTOREMOVE=y
CONFIG_BPF_TOOLCHAIN_BUILD_LLVM=y
# CONFIG_BPF_TOOLCHAIN_NONE is not set
CONFIG_BUILDBOT=y
CONFIG_COLLECT_KERNEL_DEBUG=y
CONFIG_HAS_BPF_TOOLCHAIN=y
CONFIG_IB=y
CONFIG_IMAGEOPT=y
CONFIG_JSON_CYCLONEDX_SBOM=y
CONFIG_KERNEL_BUILD_DOMAIN="buildhost"
CONFIG_KERNEL_BUILD_USER="builder"
# CONFIG_KERNEL_KALLSYMS is not set
CONFIG_MAKE_TOOLCHAIN=y
CONFIG_OPENSSL_ENGINE=y
CONFIG_OPENSSL_PREFER_CHACHA_OVER_GCM=y
CONFIG_OPENSSL_WITH_ASM=y
CONFIG_OPENSSL_WITH_CHACHA_POLY1305=y
CONFIG_OPENSSL_WITH_CMS=y
CONFIG_OPENSSL_WITH_DEPRECATED=y
CONFIG_OPENSSL_WITH_ERROR_MESSAGES=y
CONFIG_OPENSSL_WITH_IDEA=y
CONFIG_OPENSSL_WITH_MDC2=y
CONFIG_OPENSSL_WITH_PSK=y
CONFIG_OPENSSL_WITH_SEED=y
CONFIG_OPENSSL_WITH_SRP=y
CONFIG_OPENSSL_WITH_TLS13=y
CONFIG_OPENSSL_WITH_WHIRLPOOL=y
CONFIG_PACKAGE_adb=m
CONFIG_PACKAGE_adb-enablemodem=m
CONFIG_PACKAGE_ath10k-board-qca9887=m
CONFIG_PACKAGE_ath10k-board-qca9888=m
CONFIG_PACKAGE_ath10k-board-qca988x=m
CONFIG_PACKAGE_ath10k-board-qca9984=m
CONFIG_PACKAGE_ath10k-board-qca99x0=m
CONFIG_PACKAGE_ath10k-firmware-qca9887-ct=m
CONFIG_PACKAGE_ath10k-firmware-qca9887-ct-full-htt=m
CONFIG_PACKAGE_ath10k-firmware-qca9888-ct=m
CONFIG_PACKAGE_ath10k-firmware-qca988x-ct=m
CONFIG_PACKAGE_ath10k-firmware-qca9984-ct=m
CONFIG_PACKAGE_ath10k-firmware-qca99x0-ct=m
CONFIG_PACKAGE_cgi-io=y
CONFIG_PACKAGE_e2fsprogs=m
CONFIG_PACKAGE_fconfig=m
CONFIG_PACKAGE_fritz-tffs=m
CONFIG_PACKAGE_kmod-ath10k-ct=m
CONFIG_PACKAGE_kmod-hwmon-core=m
CONFIG_PACKAGE_kmod-nft-fullcone=y
CONFIG_PACKAGE_kmod-rtc-ds1307=m
CONFIG_PACKAGE_kmod-rtc-ds1374=m
CONFIG_PACKAGE_kmod-rtc-pcf8563=m
CONFIG_PACKAGE_kmod-tcp-bbr=y
CONFIG_PACKAGE_libblkid=m
CONFIG_PACKAGE_libbpf=m
CONFIG_PACKAGE_libcomerr=m
CONFIG_PACKAGE_libelf=m
CONFIG_PACKAGE_libext2fs=m
CONFIG_PACKAGE_liblua=y
CONFIG_PACKAGE_liblucihttp=y
CONFIG_PACKAGE_liblucihttp-lua=y
CONFIG_PACKAGE_liblucihttp-ucode=y
CONFIG_PACKAGE_libopenssl=m
CONFIG_PACKAGE_libpcap=m
CONFIG_PACKAGE_libss=m
CONFIG_PACKAGE_libubus-lua=y
CONFIG_PACKAGE_libuuid=m
CONFIG_PACKAGE_libxdp=m
CONFIG_PACKAGE_lua=y
CONFIG_PACKAGE_luci=y
CONFIG_PACKAGE_luci-app-firewall=y
CONFIG_PACKAGE_luci-app-opkg=y
CONFIG_PACKAGE_luci-app-turboacc=y
CONFIG_PACKAGE_luci-base=y
CONFIG_PACKAGE_luci-compat=y
CONFIG_PACKAGE_luci-lib-base=y
CONFIG_PACKAGE_luci-lib-ip=y
CONFIG_PACKAGE_luci-lib-jsonc=y
CONFIG_PACKAGE_luci-lib-nixio=y
CONFIG_PACKAGE_luci-light=y
CONFIG_PACKAGE_luci-lua-runtime=y
CONFIG_PACKAGE_luci-mod-admin-full=y
CONFIG_PACKAGE_luci-mod-network=y
CONFIG_PACKAGE_luci-mod-status=y
CONFIG_PACKAGE_luci-mod-system=y
CONFIG_PACKAGE_luci-proto-ipv6=y
CONFIG_PACKAGE_luci-proto-ppp=y
CONFIG_PACKAGE_luci-ssl=y
CONFIG_PACKAGE_luci-theme-bootstrap=y
CONFIG_PACKAGE_px5g-mbedtls=y
CONFIG_PACKAGE_qosify=m
CONFIG_PACKAGE_rpcd=y
CONFIG_PACKAGE_rpcd-mod-file=y
CONFIG_PACKAGE_rpcd-mod-iwinfo=y
CONFIG_PACKAGE_rpcd-mod-luci=y
CONFIG_PACKAGE_rpcd-mod-rrdns=y
CONFIG_PACKAGE_rpcd-mod-ucode=y
CONFIG_PACKAGE_rssileds=m
CONFIG_PACKAGE_tc-tiny=m
CONFIG_PACKAGE_ucode-mod-html=y
CONFIG_PACKAGE_ucode-mod-lua=y
CONFIG_PACKAGE_ucode-mod-math=y
CONFIG_PACKAGE_uencrypt-mbedtls=m
CONFIG_PACKAGE_uhttpd=y
CONFIG_PACKAGE_uhttpd-mod-ubus=y
CONFIG_PACKAGE_xdp-filter=m
CONFIG_PACKAGE_xdp-loader=m
CONFIG_PACKAGE_xdpdump=m
CONFIG_PACKAGE_zlib=m
CONFIG_REPRODUCIBLE_DEBUG_INFO=y
CONFIG_SDK=y
CONFIG_SDK_LLVM_BPF=y
CONFIG_USE_LLVM_BUILD=y
CONFIG_VERSIONOPT=y
CONFIG_VERSION_BUG_URL=""
CONFIG_VERSION_CODE=""
CONFIG_VERSION_DIST="OpenWrt"
CONFIG_VERSION_FILENAMES=y
CONFIG_VERSION_HOME_URL=""
CONFIG_VERSION_HWREV=""
CONFIG_VERSION_MANUFACTURER=""
CONFIG_VERSION_MANUFACTURER_URL=""
CONFIG_VERSION_NUMBER=""
CONFIG_VERSION_PRODUCT=""
CONFIG_VERSION_REPO="https://downloads.openwrt.org/releases/23.05.5"
CONFIG_VERSION_SUPPORT_URL=""

more expanded log:

make[3]: Entering directory '/home/builder/openwrt/package/turboacc/nft-fullcone'
mkdir -p /home/builder/openwrt/staging_dir/target-mips_24kc_musl/root-ath79/stamp
SHELL= flock /home/builder/openwrt/tmp/.root-copy.flock -c 'cp -fpR /home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/nft-fullcone/.pkgdir/kmod-nft-fullcone/. /home/builder/openwrt/staging_dir/target-mips_24kc_musl/root-ath79/'
touch /home/builder/openwrt/staging_dir/target-mips_24kc_musl/root-ath79/stamp/.kmod-nft-fullcone_installed
echo "kmod-nft-fullcone" >> /home/builder/openwrt/staging_dir/target-mips_24kc_musl/pkginfo/nft-fullcone.default.install
touch -r /home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/nft-fullcone/.built /home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/nft-fullcone/.autoremove 2>/dev/null >/dev/null
find /home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/nft-fullcone -mindepth 1 -maxdepth 1 -not '(' -type f -and -name '.*' -and -size 0 ')' -and -not -name '.pkgdir'  -print0 | xargs -r -0 rm -rf
make[3]: Leaving directory '/home/builder/openwrt/package/turboacc/nft-fullcone'
time: package/turboacc/nft-fullcone/compile#0.16#0.02#0.16
make[3]: Entering directory '/home/builder/openwrt/package/turboacc/luci-app-turboacc'
touch /home/builder/openwrt/build_dir/target-mips_24kc_musl/luci-app-turboacc/.prepared_48814201a1c73bb54c2effb12b6df3e8_18f1e190c5d53547fed41a3eaa76e9e9_check
for d in luasrc ucode htdocs root src; do if [ -d ./$d ]; then mkdir -p /home/builder/openwrt/build_dir/target-mips_24kc_musl/luci-app-turboacc/$d; cp -fpR ./$d/* /home/builder/openwrt/build_dir/target-mips_24kc_musl/luci-app-turboacc/$d/; fi; done
true
[ ! -d ./src/ ] || cp -fpR ./src/. /home/builder/openwrt/build_dir/target-mips_24kc_musl/luci-app-turboacc
touch /home/builder/openwrt/build_dir/target-mips_24kc_musl/luci-app-turboacc/.prepared_48814201a1c73bb54c2effb12b6df3e8_18f1e190c5d53547fed41a3eaa76e9e9
rm -f /home/builder/openwrt/build_dir/target-mips_24kc_musl/luci-app-turboacc/.configured_*
rm -f /home/builder/openwrt/staging_dir/target-mips_24kc_musl/stamp/.luci-app-turboacc_installed
touch /home/builder/openwrt/build_dir/target-mips_24kc_musl/luci-app-turboacc/.configured_55961538f7c2429158aaed485d88def8
rm -f /home/builder/openwrt/build_dir/target-mips_24kc_musl/luci-app-turboacc/.built
touch /home/builder/openwrt/build_dir/target-mips_24kc_musl/luci-app-turboacc/.built_check
touch /home/builder/openwrt/build_dir/target-mips_24kc_musl/luci-app-turboacc/.built
rm -rf /home/builder/openwrt/build_dir/target-mips_24kc_musl/luci-app-turboacc/.pkgdir/luci-app-turboacc.installed /home/builder/openwrt/build_dir/target-mips_24kc_musl/luci-app-turboacc/.pkgdir/luci-app-turboacc
mkdir -p /home/builder/openwrt/build_dir/target-mips_24kc_musl/luci-app-turboacc/.pkgdir/luci-app-turboacc
install -d -m0755 /home/builder/openwrt/build_dir/target-mips_24kc_musl/luci-app-turboacc/.pkgdir/luci-app-turboacc/usr/lib/lua/luci
cp -pR /home/builder/openwrt/build_dir/target-mips_24kc_musl/luci-app-turboacc/luasrc/* /home/builder/openwrt/build_dir/target-mips_24kc_musl/luci-app-turboacc/.pkgdir/luci-app-turboacc/usr/lib/lua/luci/
find /home/builder/openwrt/build_dir/target-mips_24kc_musl/luci-app-turboacc/.pkgdir/luci-app-turboacc/usr/lib/lua/luci/ -type f -name '*.luadoc' | xargs -r rm
true
find /home/builder/openwrt/build_dir/target-mips_24kc_musl/luci-app-turboacc/.pkgdir/luci-app-turboacc/usr/lib/lua/luci/ -type f -name '*.htm' | while read src; do /home/builder/openwrt/staging_dir/host/bin/sed -i -e 's/<%# *\([^ ]*\)PKG_VERSION *%>/\11.3/g' -e 's/"\(<%= *\(media\|resource\) *%>[^"]*\.\(js\|css\)\)"/"\1?v=1.3"/g' "$src"; done; find /home/builder/openwrt/build_dir/target-mips_24kc_musl/luci-app-turboacc/.pkgdir/luci-app-turboacc/usr/lib/lua/luci/ -type f -name '*.ut' | while read src; do /home/builder/openwrt/staging_dir/host/bin/sed -i -e 's/{# *\([^ ]*\)PKG_VERSION *#}/\11.3/g' -e 's/"\({{ *\(media\|resource\) *}}[^"]*\.\(js\|css\)\)"/"\1?v=1.3"/g' "$src"; done
install -d -m0755 /home/builder/openwrt/build_dir/target-mips_24kc_musl/luci-app-turboacc/.pkgdir/luci-app-turboacc/
cp -pR /home/builder/openwrt/build_dir/target-mips_24kc_musl/luci-app-turboacc/root/* /home/builder/openwrt/build_dir/target-mips_24kc_musl/luci-app-turboacc/.pkgdir/luci-app-turboacc/
touch /home/builder/openwrt/build_dir/target-mips_24kc_musl/luci-app-turboacc/.pkgdir/luci-app-turboacc.installed
mkdir -p /home/builder/openwrt/staging_dir/target-mips_24kc_musl/root-ath79/stamp
SHELL= flock /home/builder/openwrt/tmp/.root-copy.flock -c 'cp -fpR /home/builder/openwrt/build_dir/target-mips_24kc_musl/luci-app-turboacc/.pkgdir/luci-app-turboacc/. /home/builder/openwrt/staging_dir/target-mips_24kc_musl/root-ath79/'
touch /home/builder/openwrt/staging_dir/target-mips_24kc_musl/root-ath79/stamp/.luci-app-turboacc_installed
mkdir -p /home/builder/openwrt/bin/targets/ath79/generic/packages /home/builder/openwrt/build_dir/target-mips_24kc_musl/luci-app-turboacc/ipkg-all/luci-app-turboacc/CONTROL /home/builder/openwrt/staging_dir/target-mips_24kc_musl/pkginfo
install -d -m0755 /home/builder/openwrt/build_dir/target-mips_24kc_musl/luci-app-turboacc/ipkg-all/luci-app-turboacc/usr/lib/lua/luci
cp -pR /home/builder/openwrt/build_dir/target-mips_24kc_musl/luci-app-turboacc/luasrc/* /home/builder/openwrt/build_dir/target-mips_24kc_musl/luci-app-turboacc/ipkg-all/luci-app-turboacc/usr/lib/lua/luci/
find /home/builder/openwrt/build_dir/target-mips_24kc_musl/luci-app-turboacc/ipkg-all/luci-app-turboacc/usr/lib/lua/luci/ -type f -name '*.luadoc' | xargs -r rm
true
find /home/builder/openwrt/build_dir/target-mips_24kc_musl/luci-app-turboacc/ipkg-all/luci-app-turboacc/usr/lib/lua/luci/ -type f -name '*.htm' | while read src; do /home/builder/openwrt/staging_dir/host/bin/sed -i -e 's/<%# *\([^ ]*\)PKG_VERSION *%>/\11.3/g' -e 's/"\(<%= *\(media\|resource\) *%>[^"]*\.\(js\|css\)\)"/"\1?v=1.3"/g' "$src"; done; find /home/builder/openwrt/build_dir/target-mips_24kc_musl/luci-app-turboacc/ipkg-all/luci-app-turboacc/usr/lib/lua/luci/ -type f -name '*.ut' | while read src; do /home/builder/openwrt/staging_dir/host/bin/sed -i -e 's/{# *\([^ ]*\)PKG_VERSION *#}/\11.3/g' -e 's/"\({{ *\(media\|resource\) *}}[^"]*\.\(js\|css\)\)"/"\1?v=1.3"/g' "$src"; done
install -d -m0755 /home/builder/openwrt/build_dir/target-mips_24kc_musl/luci-app-turboacc/ipkg-all/luci-app-turboacc/
cp -pR /home/builder/openwrt/build_dir/target-mips_24kc_musl/luci-app-turboacc/root/* /home/builder/openwrt/build_dir/target-mips_24kc_musl/luci-app-turboacc/ipkg-all/luci-app-turboacc/
find /home/builder/openwrt/build_dir/target-mips_24kc_musl/luci-app-turboacc/ipkg-all/luci-app-turboacc -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf
export CROSS="mips-openwrt-linux-musl-"   ; NM="mips-openwrt-linux-musl-nm" STRIP="/home/builder/openwrt/staging_dir/host/bin/sstrip -z" STRIP_KMOD="/home/builder/openwrt/scripts/strip-kmod.sh" PATCHELF="/home/builder/openwrt/staging_dir/host/bin/patchelf" /home/builder/openwrt/scripts/rstrip.sh /home/builder/openwrt/build_dir/target-mips_24kc_musl/luci-app-turboacc/ipkg-all/luci-app-turboacc
(cd /home/builder/openwrt/build_dir/target-mips_24kc_musl/luci-app-turboacc/ipkg-all/luci-app-turboacc/CONTROL; ( echo "$CONTROL"; printf "Description: "; echo "$DESCRIPTION" | sed -e 's,^[[:space:]]*, ,g'; ) > control; chmod 644 control; ( echo "#!/bin/sh"; echo "[ \"\${IPKG_NO_SCRIPT}\" = \"1\" ] && exit 0"; echo "[ -s "\${IPKG_INSTROOT}/lib/functions.sh" ] || exit 0"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo "default_postinst \$0 \$@"; ) > postinst; ( echo "#!/bin/sh"; echo "[ -s "\${IPKG_INSTROOT}/lib/functions.sh" ] || exit 0"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo "default_prerm \$0 \$@"; ) > prerm; chmod 0755 postinst prerm; echo "$V_Package_luci_app_turboacc_postinst" > postinst-pkg; chmod 0755 postinst-pkg; )
install -d -m0755 /home/builder/openwrt/bin/packages/mips_24kc/base
/home/builder/openwrt/staging_dir/host/bin/fakeroot /home/builder/openwrt/staging_dir/host/bin/bash /home/builder/openwrt/scripts/ipkg-build -m "" /home/builder/openwrt/build_dir/target-mips_24kc_musl/luci-app-turboacc/ipkg-all/luci-app-turboacc /home/builder/openwrt/bin/packages/mips_24kc/base
Packaged contents of /home/builder/openwrt/build_dir/target-mips_24kc_musl/luci-app-turboacc/ipkg-all/luci-app-turboacc into /home/builder/openwrt/bin/packages/mips_24kc/base/luci-app-turboacc_1.3_all.ipk
echo "luci-app-turboacc" >> /home/builder/openwrt/staging_dir/target-mips_24kc_musl/pkginfo/luci-app-turboacc.default.install
touch -r /home/builder/openwrt/build_dir/target-mips_24kc_musl/luci-app-turboacc/.built /home/builder/openwrt/build_dir/target-mips_24kc_musl/luci-app-turboacc/.autoremove 2>/dev/null >/dev/null
find /home/builder/openwrt/build_dir/target-mips_24kc_musl/luci-app-turboacc -mindepth 1 -maxdepth 1 -not '(' -type f -and -name '.*' -and -size 0 ')' -and -not -name '.pkgdir'  -print0 | xargs -r -0 rm -rf
make[3]: Leaving directory '/home/builder/openwrt/package/turboacc/luci-app-turboacc'
time: package/turboacc/luci-app-turboacc/compile#1.53#0.12#1.61
make[3]: Entering directory '/home/builder/openwrt/package/turboacc/shortcut-fe/shortcut-fe'
mkdir -p /home/builder/openwrt/staging_dir/target-mips_24kc_musl/root-ath79/stamp
SHELL= flock /home/builder/openwrt/tmp/.root-copy.flock -c 'cp -fpR /home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/shortcut-fe/.pkgdir/kmod-shortcut-fe/. /home/builder/openwrt/staging_dir/target-mips_24kc_musl/root-ath79/'
touch /home/builder/openwrt/staging_dir/target-mips_24kc_musl/root-ath79/stamp/.kmod-shortcut-fe_installed
mkdir -p /home/builder/openwrt/staging_dir/target-mips_24kc_musl/root-ath79/stamp
SHELL= flock /home/builder/openwrt/tmp/.root-copy.flock -c 'cp -fpR /home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/shortcut-fe/.pkgdir/kmod-shortcut-fe-cm/. /home/builder/openwrt/staging_dir/target-mips_24kc_musl/root-ath79/'
touch /home/builder/openwrt/staging_dir/target-mips_24kc_musl/root-ath79/stamp/.kmod-shortcut-fe-cm_installed
touch -r /home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/shortcut-fe/.built /home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/shortcut-fe/.autoremove 2>/dev/null >/dev/null
find /home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/shortcut-fe -mindepth 1 -maxdepth 1 -not '(' -type f -and -name '.*' -and -size 0 ')' -and -not -name '.pkgdir'  -print0 | xargs -r -0 rm -rf
make[3]: Leaving directory '/home/builder/openwrt/package/turboacc/shortcut-fe/shortcut-fe'
time: package/turboacc/shortcut-fe/shortcut-fe/compile#0.74#0.03#0.76
make[3]: Entering directory '/home/builder/openwrt/package/turboacc/shortcut-fe/fast-classifier'
rm -f /home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/fast-classifier/.built
touch /home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/fast-classifier/.built_check
make -j1 -C "/home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-5.15.167" KCFLAGS="-ffile-prefix-map=/home/builder/openwrt/build_dir/target-mips_24kc_musl=target-mips_24kc_musl -fno-caller-saves " HOSTCFLAGS="-O2 -I/home/builder/openwrt/staging_dir/host/include -I/home/builder/openwrt/staging_dir/hostpkg/include -I/home/builder/openwrt/staging_dir/target-mips_24kc_musl/host/include -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="mips-openwrt-linux-musl-" ARCH="mips" KBUILD_HAVE_NLS=no KBUILD_BUILD_USER="builder" KBUILD_BUILD_HOST="buildhost" KBUILD_BUILD_TIMESTAMP="Mon Sep 23 12:34:46 2024" KBUILD_BUILD_VERSION="0" KBUILD_HOSTLDFLAGS="-L/home/builder/openwrt/staging_dir/host/lib" CONFIG_SHELL="bash" V=''  cmd_syscalls= KBUILD_EXTRA_SYMBOLS="/home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/symvers/ath10k-ct.symvers /home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/symvers/batman-adv.symvers /home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/symvers/button-hotplug.symvers /home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/symvers/cryptodev-linux.symvers /home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/symvers/dahdi-linux.symvers /home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/symvers/dmx_usb_module.symvers /home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/symvers/gpio-button-hotplug.symvers /home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/symvers/jool.symvers /home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/symvers/mac80211.symvers /home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/symvers/macremapper.symvers /home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/symvers/mdio-netlink.symvers /home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/symvers/mt76.symvers /home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/symvers/mtd-rw.symvers /home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/symvers/nat46.symvers /home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/symvers/netatop.symvers /home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/symvers/nft-fullcone.symvers /home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/symvers/openvswitch.symvers /home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/symvers/ovpn-dco.symvers /home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/symvers/r8101.symvers /home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/symvers/r8125.symvers /home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/symvers/r8126.symvers /home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/symvers/r8168.symvers /home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/symvers/rtl8812au-ct.symvers /home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/symvers/rtpengine.symvers /home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/symvers/shortcut-fe.symvers /home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/symvers/siit.symvers /home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/symvers/trelay.symvers /home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/symvers/ubootenv-nvram.symvers /home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/symvers/usb-serial-xr_usb_serial_common.symvers /home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/symvers/v4l2loopback.symvers /home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/symvers/xtables-addons.symvers" KERNELRELEASE=5.15.167  M="/home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/fast-classifier" CONFIG_FAST_CLASSIFIER=m EXTRA_CFLAGS+="-DSFE_SUPPORT_IPV6" modules
make[4]: Entering directory '/home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-5.15.167'
  CC [M]  /home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/fast-classifier/fast-classifier.o
/home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/fast-classifier/fast-classifier.c:39:10: fatal error: sfe_backport.h: No such file or directory
   39 | #include <sfe_backport.h>
      |          ^~~~~~~~~~~~~~~~
compilation terminated.
make[5]: *** [scripts/Makefile.build:289: /home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/fast-classifier/fast-classifier.o] Error 1
make[4]: *** [Makefile:1907: /home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/fast-classifier] Error 2
make[4]: Leaving directory '/home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-5.15.167'
make[3]: *** [Makefile:107: /home/builder/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/fast-classifier/.built] Error 2
make[3]: Leaving directory '/home/builder/openwrt/package/turboacc/shortcut-fe/fast-classifier'
time: package/turboacc/shortcut-fe/fast-classifier/compile#1.51#0.16#1.60
    ERROR: package/turboacc/shortcut-fe/fast-classifier failed to build.
make[2]: *** [package/Makefile:129: package/turboacc/shortcut-fe/fast-classifier/compile] Error 1
make[2]: Leaving directory '/home/builder/openwrt'
make[1]: *** [package/Makefile:123: /home/builder/openwrt/staging_dir/target-mips_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/builder/openwrt'
make: *** [/home/builder/openwrt/include/toplevel.mk:233: world] Error 2
upanasiuk commented 1 month ago

BTW what SFE is? Do I need it? 🥲

chenmozhijin commented 1 month ago

I did a compilation test and there was no problem

I think the problem you are experiencing is related to your configuration. You have CONFIG_BUILDBOT enabled which will compile all kernel modules, including kmod-fast-classifier and kmod-shortcut-fe-cm. These modules conflict with each other. And there may be compatibility issues with other plug-ins. If you need Shortcut-FE, you need to set

CONFIG_PACKAGE_luci-app-turboacc_INCLUDE_SHORTCUT_FE=y

and you may need to disable CONFIG_BUILDBOT

I haven't actually used Shortcut-FE so I don't know much about it. It is said that it can improve the performance of small packet forwarding, but it will also increase instability and cause some strange problems

upanasiuk commented 1 month ago

You're right. My problem was in my configuration. I changed it (CONFIG_BUILDBOT is disabled and much more changed) and the build was successful with SFE enabled. It works 👌 As for now, my router can transmit 1 Gbps through NAT using insignificant CPU load (using Shortcut-FE).