编译错误
详细叙述
出现编译错误。
重复 issue
- [x] 没有类似的 issue
具体型号
x86
详细日志
- Checking for one of the modules 'libudev' CMake Error at /home/gswangmd/openwrt/lede/staging_dir/host/share/cmake-3.30/Modules/FindPkgConfig.cmake:938 (message): None of the required 'libudev' found Call Stack (most recent call first): CMakeLists.txt:220 (pkg_search_module)
-- BASE_LIBRARIES: -- BUILD_EXAMPLES: OFF -- BUILD_MANPAGES: OFF -- BUILD_SHARED_LIBS: ON -- BUILD_STATIC_LIBS: OFF -- BUILD_TOOLS: OFF -- CBOR_INCLUDE_DIRS: /home/gswangmd/openwrt/lede/staging_dir/target-x86_64_musl/usr/include -- CBOR_LIBRARIES: cbor -- CBOR_LIBRARY_DIRS: /home/gswangmd/openwrt/lede/staging_dir/target-x86_64_musl/usr/lib -- CBOR_VERSION: 0.8.0 -- CMAKE_BUILD_TYPE: Release -- CMAKE_C_COMPILER: /home/gswangmd/openwrt/lede/staging_dir/toolchain-x86_64_gcc-13.3.0_musl/bin/x86_64-openwrt-linux-musl-gcc -- CMAKE_C_COMPILER_ID: GNU -- CMAKE_C_FLAGS: -D_POSIX_C_SOURCE=200809L -D_BSD_SOURCE -D_GNU_SOURCE -D_DEFAULT_SOURCE -std=c99 -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/gswangmd/openwrt/lede/build_dir/target-x86_64_musl/libfido2-1.12.0=libfido2-1.12.0 -Wformat -Werror=format-security -fstack-protector -Wl,-z,now -Wl,-z,relro -- CMAKE_CROSSCOMPILING: TRUE -- CMAKE_GENERATOR_PLATFORM: -- CMAKE_HOST_SYSTEM_NAME: Linux -- CMAKE_HOST_SYSTEM_PROCESSOR: aarch64 -- CMAKE_INSTALL_LIBDIR: lib -- CMAKE_INSTALL_PREFIX: /usr -- CMAKE_SYSTEM_NAME: Linux -- CMAKE_SYSTEM_PROCESSOR: x86_64 -- CMAKE_SYSTEM_VERSION: 1 -- CRYPTO_INCLUDE_DIRS: /home/gswangmd/openwrt/lede/staging_dir/target-x86_64_musl/usr/include -- CRYPTO_LIBRARIES: crypto -- CRYPTO_LIBRARY_DIRS: /home/gswangmd/openwrt/lede/staging_dir/target-x86_64_musl/usr/lib -- CRYPTO_VERSION: 3.5.3 -- FIDO_VERSION: 1.12.0 -- FUZZ: OFF -- ZLIB_INCLUDE_DIRS: /home/gswangmd/openwrt/lede/staging_dir/target-x86_64_musl/usr/include -- ZLIB_LIBRARIES: z -- ZLIB_LIBRARY_DIRS: /home/gswangmd/openwrt/lede/staging_dir/target-x86_64_musl/usr/lib -- ZLIB_VERSION: 1.2.13 -- PCSC_INCLUDE_DIRS: -- PCSC_LIBRARIES: -- PCSC_LIBRARY_DIRS: -- PCSC_VERSION: -- LIBFUZZER: OFF -- TLS: __thread -- UDEV_INCLUDE_DIRS: -- UDEV_LIBRARIES: -- UDEV_LIBRARY_DIRS: -- UDEV_RULES_DIR: -- UDEV_VERSION: -- USE_HIDAPI: OFF -- USE_PCSC: OFF -- USE_WINHELLO: OFF -- NFC_LINUX: ON -- Configuring incomplete, errors occurred! make[3]: *** [Makefile:63: /home/gswangmd/openwrt/lede/build_dir/target-x86_64_musl/libfido2-1.12.0/.configured_68b329da9893e34099c7d8ad5cb9c940] Error 1 make[3]: Leaving directory '/home/gswangmd/openwrt/lede/feeds/packages/libs/libfido2' time: package/feeds/packages/libfido2/compile#0.06#0.03#0.11 ERROR: package/feeds/packages/libfido2 failed to build. make[2]: *** [package/Makefile:116: package/feeds/packages/libfido2/compile] Error 1 make[2]: Leaving directory '/home/gswangmd/openwrt/lede' make[1]: *** [package/Makefile:110: /home/gswangmd/openwrt/lede/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2 make[1]: Leaving directory '/home/gswangmd/openwrt/lede' make: *** [/home/gswangmd/openwrt/lede/include/toplevel.mk:231: world] Error 2 gswangmd@ubuntuserver10:~/openwrt/lede$
同样的报错,18.06源码 libfido2 编译不了 2025-09-28T08:41:28.1938073Z make[3]: *** [Makefile:63: /workdir/openwrt/build_dir/target-x86_64_musl/libfido2-1.12.0/.configured_68b329da9893e34099c7d8ad5cb9c940] Error 1 2025-09-28T08:41:28.1938761Z make[3]: Leaving directory '/workdir/openwrt/feeds/packages/libs/libfido2' 2025-09-28T08:41:28.1943473Z time: package/feeds/packages/libfido2/compile#0.12#0.16#0.25 2025-09-28T08:41:28.1951317Z ERROR: package/feeds/packages/libfido2 failed to build. 2025-09-28T08:41:28.1955150Z make[2]: *** [package/Makefile:116: package/feeds/packages/libfido2/compile] Error 1 2025-09-28T08:41:28.1959632Z make[2]: Leaving directory '/workdir/openwrt' 2025-09-28T08:41:28.1965364Z make[1]: *** [package/Makefile:110: /workdir/openwrt/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2 2025-09-28T08:41:28.1970371Z make[1]: Leaving directory '/workdir/openwrt' 2025-09-28T08:41:28.1977366Z make: *** [/workdir/openwrt/include/toplevel.mk:231: world] Error 2 2025-09-28T08:41:28.1997371Z ##[error]Process completed with exit code 2.
这是编译时.config
Target Config
CONFIG_TARGET_x86=y CONFIG_TARGET_x86_64=y CONFIG_TARGET_x86_64_DEVICE_generic=y
Set Firmware Size
CONFIG_TARGET_KERNEL_PARTSIZE=32 CONFIG_TARGET_ROOTFS_PARTSIZE=1024
Firmware Type
CONFIG_GRUB_CONSOLE is not set
CONFIG_GRUB_IMAGES=y CONFIG_GRUB_EFI_IMAGES=y CONFIG_TARGET_IMAGES_GZIP=y
CONFIG_TARGET_ROOTFS_EXT4FS is not set
CONFIG_TARGET_ROOTFS_SQUASHFS=y CONFIG_TARGET_ROOTFS_TARGZ=y
CONFIG_VMDK_IMAGES is not set
istoreos
CONFIG_PACKAGE_luci-app-hd-idle=y
CONFIG_PACKAGE_luci-app-istorex is not set
CONFIG_PACKAGE_luci-app-quickstart is not set
CONFIG_PACKAGE_luci-app-store=y
CONFIG_PACKAGE_luci-nginxer is not set
Applications
CONFIG_PACKAGE_luci-app-accesscontrol is not set
CONFIG_PACKAGE_luci-app-adbyby-plus is not set
CONFIG_PACKAGE_luci-app-adguardhome=y
CONFIG_PACKAGE_luci-app-alist is not set
CONFIG_PACKAGE_luci-app-argon-config=y CONFIG_PACKAGE_luci-app-arpbind=y CONFIG_PACKAGE_luci-app-autoreboot=y
CONFIG_PACKAGE_luci-app-cifs-mount is not set
CONFIG_PACKAGE_luci-app-ddns is not set
CONFIG_PACKAGE_luci-app-ddns-go=y CONFIG_PACKAGE_luci-app-diskman=y CONFIG_PACKAGE_luci-app-dockerman=y CONFIG_PACKAGE_luci-app-filetransfer=y CONFIG_PACKAGE_luci-app-firewall=y
CONFIG_PACKAGE_luci-app-frpc is not set
CONFIG_PACKAGE_luci-app-homeproxy=m
CONFIG_PACKAGE_luci-app-ipsec-vpnd is not set
CONFIG_PACKAGE_luci-app-mihomo=m CONFIG_PACKAGE_luci-app-mosdns=y CONFIG_PACKAGE_luci-app-netdata=y CONFIG_PACKAGE_luci-app-nlbwmon=y CONFIG_PACKAGE_luci-app-openclash=y CONFIG_PACKAGE_luci-app-passwall=y CONFIG_PACKAGE_luci-app-passwall_Iptables_Transparent_Proxy=y CONFIG_PACKAGE_luci-app-passwall_INCLUDE_Brook=y CONFIG_PACKAGE_luci-app-passwall_INCLUDE_Hysteria=y CONFIG_PACKAGE_luci-app-passwall_INCLUDE_NaiveProxy=y CONFIG_PACKAGE_luci-app-passwall_INCLUDE_Shadowsocks_Rust_Client=y CONFIG_PACKAGE_luci-app-passwall_INCLUDE_Shadowsocks_Rust_Server=y CONFIG_PACKAGE_luci-app-passwall_INCLUDE_ShadowsocksR_Libev_Server=y CONFIG_PACKAGE_luci-app-passwall_INCLUDE_Trojan_GO=y CONFIG_PACKAGE_luci-app-passwall_INCLUDE_tuic_client=y
CONFIG_PACKAGE_luci-app-passwall2 is not set
CONFIG_PACKAGE_luci-app-ramfree is not set
CONFIG_PACKAGE_luci-app-rclone_INCLUDE_rclone-ng is not set
CONFIG_PACKAGE_luci-app-rclone_INCLUDE_rclone-webui is not set
CONFIG_PACKAGE_luci-app-samba is not set
CONFIG_PACKAGE_luci-app-samba4=y CONFIG_PACKAGE_luci-app-smartdns=m CONFIG_PACKAGE_luci-app-ssr-plus=y CONFIG_PACKAGE_luci-app-ssr-plus_INCLUDE_Hysteria=y CONFIG_PACKAGE_luci-app-ssr-plus_INCLUDE_IPT2Socks=y CONFIG_PACKAGE_luci-app-ssr-plus_INCLUDE_Kcptun=y CONFIG_PACKAGE_luci-app-ssr-plus_INCLUDE_NaiveProxy=y CONFIG_PACKAGE_luci-app-ssr-plus_INCLUDE_Redsocks2=y CONFIG_PACKAGE_luci-app-ssr-plus_INCLUDE_Shadow_TLS=y
CONFIG_PACKAGE_luci-app-ssr-plus_INCLUDE_Shadowsocks_Libev_Server is not set
CONFIG_PACKAGE_luci-app-ssr-plus_INCLUDE_Shadowsocks_Rust_Server=y CONFIG_PACKAGE_luci-app-ssr-plus_INCLUDE_Trojan=y CONFIG_PACKAGE_luci-app-ssr-plus_INCLUDE_Tuic_Client=y CONFIG_PACKAGE_luci-app-ttyd=y CONFIG_PACKAGE_luci-app-turboacc=y
CONFIG_PACKAGE_luci-app-turboacc_INCLUDE_OFFLOADING is not set
CONFIG_PACKAGE_luci-app-turboacc_INCLUDE_SHORTCUT_FE is not set
CONFIG_PACKAGE_luci-app-turboacc_INCLUDE_SHORTCUT_FE_CM=y
CONFIG_PACKAGE_luci-app-turboacc_INCLUDE_DNSFORWARDER is not set
CONFIG_PACKAGE_luci-app-turboacc_INCLUDE_DNSPROXY is not set
CONFIG_PACKAGE_luci-app-unblockmusic=m CONFIG_PACKAGE_luci-app-upnp=y CONFIG_PACKAGE_luci-app-vlmcsd=y
CONFIG_PACKAGE_luci-app-vsftpd is not set
CONFIG_PACKAGE_luci-app-wireguard is not set
CONFIG_PACKAGE_luci-app-wol is not set
CONFIG_PACKAGE_luci-app-wrtbwmon=y
CONFIG_PACKAGE_luci-app-xlnetacc is not set
CONFIG_PACKAGE_luci-app-zerotier=y
Themes
CONFIG_PACKAGE_luci-theme-argon=y CONFIG_PACKAGE_luci-theme-design=y
Software
CONFIG_PACKAGE_autosamba is not set
CONFIG_PACKAGE_ddns-scripts-cloudflare=y CONFIG_PACKAGE_docker-compose=y CONFIG_PACKAGE_htop=y CONFIG_PACKAGE_iperf3=y CONFIG_PACKAGE_nano-plus=y CONFIG_PACKAGE_openssh-sftp-server=y CONFIG_PACKAGE_snmpd=y CONFIG_PACKAGE_vim-fuller=y CONFIG_PACKAGE_zsh=y
Ipv6 Support
CONFIG_PACKAGE_6in4=y CONFIG_PACKAGE_ipv6helper=y CONFIG_PACKAGE_ip6tables=y CONFIG_PACKAGE_ip6tables-extra=y CONFIG_PACKAGE_ip6tables-mod-nat=y
是openssh的问题吗?等待修复
是openssh依赖,make menuconfig - Libraries - 勾选 libfido2 / libudev 或者libudev-zero