coolsnowwolf / lede

Lean's LEDE source
Other
29.8k stars 19.52k forks source link

无法编译cryptodev-linux-cryptodev #8107

Closed caoli5288 closed 3 years ago

caoli5288 commented 3 years ago

反馈bug/问题模板,提建议请删除

1.关于你要提交的问题

Q:是否搜索了issue (使用 "x" 选择)

2. 详细叙述

(1) 具体问题

A:无法编译cryptodev-linux-cryptodev

(2) 路由器型号和固件版本

A:x86_64

(3) 详细日志

A:

make[3]: Entering directory '/home/yiwan/lede/package/kernel/cryptodev-linux'
mkdir -p /home/yiwan/lede/dl
SHELL= flock /home/yiwan/lede/tmp/.cryptodev-linux-1.12.tar.gz.flock -c '       /home/yiwan/lede/scripts/download.pl "/home/yiwan/lede/dl" "cryptodev-linux-1.12.tar.gz" "f51c2254749233b1b1d7ec9445158bd709f124f88e1c650fe2faac83c3a81938" "" "https://codeload.github.com/cryptodev-linux/cryptodev-linux/tar.gz/cryptodev-linux-1.12?"    '
rm -f /home/yiwan/lede/build_dir/target-x86_64_musl/linux-x86_64/cryptodev-linux-cryptodev-linux-1.12/.built
touch /home/yiwan/lede/build_dir/target-x86_64_musl/linux-x86_64/cryptodev-linux-cryptodev-linux-1.12/.built_check
make -C /home/yiwan/lede/build_dir/target-x86_64_musl/linux-x86_64/cryptodev-linux-cryptodev-linux-1.12 KCFLAGS="-fmacro-prefix-map=/home/yiwan/lede/build_dir/target-x86_64_musl=target-x86_64_musl" HOSTCFLAGS="-O2 -I/home/yiwan/lede/staging_dir/host/include -I/home/yiwan/lede/staging_dir/hostpkg/include -I/home/yiwan/lede/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="Fri Oct 22 03:56:24 2021" KBUILD_BUILD_VERSION="0" HOST_LOADLIBES="-L/home/yiwan/lede/staging_dir/host/lib" KBUILD_HOSTLDLIBS="-L/home/yiwan/lede/staging_dir/host/lib" CONFIG_SHELL="bash" V=''  cmd_syscalls= KBUILD_EXTRA_SYMBOLS="" KERNELRELEASE=5.4.155 KERNEL_DIR="/home/yiwan/lede/build_dir/target-x86_64_musl/linux-x86_64/linux-5.4.155"
make[4]: Entering directory '/home/yiwan/build_dir/target-x86_64_musl/linux-x86_64/cryptodev-linux-cryptodev-linux-1.12'
make -C /home/yiwan/lede/build_dir/target-x86_64_musl/linux-x86_64/linux-5.4.155 M=/home/yiwan/build_dir/target-x86_64_musl/linux-x86_64/cryptodev-linux-cryptodev-linux-1.12 ARCH=x86 CROSS_COMPILE=x86_64-openwrt-linux-musl- modules
make[5]: Entering directory '/home/yiwan/build_dir/target-x86_64_musl/linux-x86_64/linux-5.4.155'
make[6]: *** No rule to make target '/home/yiwan/build_dir/target-x86_64_musl/linux-x86_64/cryptodev-linux-cryptodev-linux-1.12/ioctl.o', needed by '/home/yiwan/build_dir/target-x86_64_musl/linux-x86_64/cryptodev-linux-cryptodev-linux-1.12/cryptodev.o'.  Stop.
make[5]: *** [Makefile:1734: /home/yiwan/build_dir/target-x86_64_musl/linux-x86_64/cryptodev-linux-cryptodev-linux-1.12] Error 2
make[5]: Leaving directory '/home/yiwan/build_dir/target-x86_64_musl/linux-x86_64/linux-5.4.155'
make[4]: *** [Makefile:27: build] Error 2
make[4]: Leaving directory '/home/yiwan/build_dir/target-x86_64_musl/linux-x86_64/cryptodev-linux-cryptodev-linux-1.12'
make[3]: *** [Makefile:61: /home/yiwan/lede/build_dir/target-x86_64_musl/linux-x86_64/cryptodev-linux-cryptodev-linux-1.12/.built] Error 2
make[3]: Leaving directory '/home/yiwan/lede/package/kernel/cryptodev-linux'
time: package/kernel/cryptodev-linux/compile#0.47#0.15#0.61
    ERROR: package/kernel/cryptodev-linux failed to build.
make[2]: *** [package/Makefile:116: package/kernel/cryptodev-linux/compile] Error 1
make[2]: Leaving directory '/home/yiwan/lede'
make[1]: *** [package/Makefile:110: /home/yiwan/lede/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/yiwan/lede'
make: *** [/home/yiwan/lede/include/toplevel.mk:230: world] Error 2
WYC-2020 commented 3 years ago

没遇到我这里编译正常

1715173329 commented 3 years ago

你需要先重新构建内核 make target/linux/{clean,compile}

caoli5288 commented 3 years ago

@1715173329 并没有用,

+ make -j3 target/linux/compile
 make[1] target/linux/compile
 make[2] -C target/linux compile
+ make -j3
 make[1] world
 make[2] toolchain/compile
 make[2] package/cleanup
 make[3] -C toolchain/binutils compile
 make[3] -C toolchain/gdb compile
 make[3] -C toolchain/fortify-headers compile
 make[3] -C toolchain/nasm compile
 make[3] -C toolchain/gcc/initial compile
 make[3] -C toolchain/kernel-headers compile
 make[3] -C toolchain/musl compile
 make[3] -C toolchain/gcc/final compile
 make[2] target/compile
 make[3] -C target/linux compile
 make[2] buildinfo
 make[2] package/compile
 make[3] -C package/libs/toolchain compile
 make[3] -C package/libs/libjson-c host-compile
 make[3] diffconfig buildversion feedsversion
 make[3] -C package/libs/ncurses host-compile
 make[3] -C package/libs/zlib compile
 make[3] -C package/system/fwtool host-compile
 make[3] -C package/system/usign host-compile
 make[3] -C package/system/openwrt-keyring compile
 make[3] -C package/boot/grub2 host-compile
 make[3] -C feeds/packages/libs/libev compile
 make[3] -C feeds/packages/libs/libsodium compile
 make[3] -C feeds/packages/libs/udns compile
 make[3] -C package/libs/pcre compile
 make[3] -C feeds/helloworld/tcping compile
 make[3] -C feeds/luci/modules/luci-base host-compile
 make[3] -C feeds/packages/utils/attr compile
 make[3] -C package/libs/gmp compile
 make[3] -C package/libs/libcap compile
 make[3] -C package/lean/dns2socks compile
 make[3] -C package/lean/microsocks compile
 make[3] -C package/lean/pdnsd-alt compile
 make[3] -C package/libs/mbedtls compile
 make[3] -C package/libs/libmnl compile
 make[3] -C package/libs/gettext compile
 make[3] -C package/libs/libiconv compile
 make[3] -C package/utils/bzip2 compile
 make[3] -C package/libs/argp-standalone compile
 make[3] -C package/network/utils/resolveip compile
 make[3] -C package/utils/lua host-compile
 make[3] -C feeds/packages/libs/c-ares compile
 make[3] -C feeds/helloworld/simple-obfs compile
 make[3] -C feeds/packages/lang/golang/golang host-compile
 make[3] -C package/system/ca-certificates compile
 make[3] -C feeds/luci/protocols/luci-proto-ppp compile
 make[3] -C feeds/luci/themes/luci-theme-bootstrap compile
 make[3] -C feeds/packages/libs/libuv compile
 make[3] -C feeds/packages/libs/nghttp2 compile
 make[3] -C feeds/packages/net/etherwake compile
 make[3] -C package/lean/wol compile
 make[3] -C feeds/packages/utils/coremark compile
 make[3] -C package/libs/sysfsutils compile
 make[3] -C feeds/packages/net/wsdd2 compile
 make[3] -C package/firmware/wireless-regdb compile
 make[3] -C package/firmware/b43legacy-firmware compile
 make[3] -C package/libs/libtool compile
 make[3] -C package/lean/adbyby compile
 make[3] -C package/network/utils/ethtool compile
 make[3] -C package/lean/qBittorrent-static compile
 make[3] -C package/lean/r8125 compile
 make[3] -C package/lean/r8168 compile
 make[3] -C package/lean/vlmcsd compile
 make[3] -C package/network/services/dropbear compile
 make[3] -C package/libs/libpcap compile
 make[3] -C package/network/utils/linux-atm compile
 make[3] -C package/libs/libsepol compile
 make[3] -C package/libs/musl-fts compile
 make[3] -C package/utils/e2fsprogs host-compile
 make[3] -C package/libs/libubox host-compile
 make[3] -C package/libs/libnl-tiny compile
 make[3] -C package/libs/libjson-c compile
 make[3] -C package/utils/lua compile
 make[3] -C package/firmware/linux-firmware compile
 make[3] -C package/firmware/prism54-firmware compile
 make[3] -C package/libs/ncurses compile
 make[3] -C package/system/fwtool compile
 make[3] -C package/system/ucert host-compile
 make[3] -C package/boot/grub2 compile
 make[3] -C feeds/packages/utils/acl compile
 make[3] -C package/devel/binutils compile
 make[3] -C package/libs/elfutils compile
 make[3] -C feeds/helloworld/xray-core compile
 make[3] -C feeds/luci/libs/luci-lib-ip compile
 make[3] -C feeds/luci/libs/luci-lib-jsonc compile
 make[3] -C package/libs/readline compile
 make[3] -C package/boot/grub2 compile
 make[3] -C feeds/luci/applications/luci-app-wol compile
 make[3] -C feeds/packages/utils/bc compile
 make[3] -C feeds/packages/utils/lm-sensors compile
 make[3] -C package/libs/wolfssl compile
 make[3] -C package/network/utils/iw compile
 make[3] -C package/lean/UnblockNeteaseMusic-Go compile
 make[3] -C package/lean/autocore compile
 make[3] -C package/libs/libselinux compile
 make[3] -C package/system/opkg host-compile
 make[3] -C package/libs/libubox compile
 make[3] -C package/kernel/linux compile
 make[3] -C package/utils/util-linux compile
 make[3] -C package/utils/jsonfilter compile
 make[3] -C package/system/usign compile
 make[3] -C package/kernel/cryptodev-linux compile
    ERROR: package/kernel/cryptodev-linux failed to build.
make -r world: build failed. Please re-run make with -j1 V=s or V=sc for a higher verbosity level to see what's going on
make: *** [/home/runner/work/lede_x86-64/lede_x86-64/lede/include/toplevel.mk:230: world] Error 1
EnnawYang commented 3 years ago

@1715173329 并没有用,

cryptodev-linux没问题啊 Snipaste_2021-10-27_16-06-13

caoli5288 commented 3 years ago

@EnnawYang 很奇怪发生了什么,我上一次编译是几个月前,那时也没问题

1orz commented 2 years ago

遇到了同样的问题,用的Github Actions ERROR: package/kernel/cryptodev-linux failed to build