sbwml / r4s_build_script

个人自用 OpenWrt 定制脚本存档
https://github.com/sbwml/builder
90 stars 138 forks source link

x86_64 24.10-SNAPSHOT 编译dpdk失败 #51

Closed Sakurayimanatsu closed 2 weeks ago

Sakurayimanatsu commented 3 weeks ago

ubuntu22.04 KERNEL_CLANG_LTO=y USE_GCC15=y ENABLE_LTO=y ENABLE_MOLD=y ENABLE_BPF=y ENABLE_LRNG=y ENABLE_LOCAL_KMOD=y ENABLE_DPDK=y

在拉取文件的时候就会在dpdk的地方失败,之后编译就会卡在dpdk这里一直失败 之前内核还是6.6.50时,非常顺利的编译成功了

23.05分支也试过了,出现了同样的错误

最先出现的错误是 ./../../build_dir/target-x86_64_musl/dpdk-24.03/config/meson.build:513:4: ERROR: Problem encountered: Unsupported value "both" for "default_library" option. NOTE: DPDK always builds both shared and static libraries. Please set "default_library" to either "static" or "shared" to select default linkage for apps and any examples.

按照提示做出对应更改后出现了哈希值不对的错误

修正了哈希值之后出现了如下错误 install: cannot stat '/home/inori/Desktop/openwrt/build_dir/target-x86_64_musl/dpdk-24.03/ipkg-install/usr/bin/dpdk-pdump': No such file or directory make[3]: [Makefile:219: /home/inori/Desktop/openwrt/bin/packages/x86_64/base/dpdk-tools_24.03-r1_x86_64.ipk] Error 1 make[3]: Leaving directory '/home/inori/Desktop/openwrt/package/new/dpdk' time: package/new/dpdk/compile#241.88#75.26#426.85 ERROR: package/new/dpdk failed to build. make[2]: [package/Makefile:177: package/new/dpdk/compile] Error 1 make[2]: Leaving directory '/home/inori/Desktop/openwrt' make[1]: [package/Makefile:171: /home/inori/Desktop/openwrt/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2 make[1]: Leaving directory '/home/inori/Desktop/openwrt' make: [/home/inori/Desktop/openwrt/include/toplevel.mk:248: world] Error 2

尝试了其他版本的dpdk文件,也出现了同样的错误

sbwml commented 3 weeks ago

修复 https://github.com/sbwml/r4s_build_script/commit/c9ae8f961b235aaff60b8ab7ff3a77e026bbfc9a

如还有问题,提交 github action 编译环境的完整日志

Sakurayimanatsu commented 3 weeks ago

编译成功了,多谢大佬的维护修复