openwrt外部工具链(芯片厂商的,非openwrt自带)make编译报错 求助
大大神好,我现在重新搭建openwrt环境,在make之前我将芯片厂商的mips交叉编译工具链解压到staging_dir下,在make menuconfig里设置了外部工具链,具体操作如下:
修改
Adcanced configurationoptions->
Use external toolchain
修改Base system->
Libc…configuration->交叉工具链所在路径
Libgcc…configuration->交叉工具链所在路径
Libpthread…configuration->交叉工具链所在路径
然后make报错:
cuimh@cuimh-virtual-machine:~/openwrt$ make -j1 V=s
WARNING: Makefile 'package/utils/busybox/Makefile' has a dependency on 'libpam', which does not exist
WARNING: Makefile 'package/utils/busybox/Makefile' has a build dependency on 'libpam', which does not exist
WARNING: Makefile 'package/network/utils/curl/Makefile' has a dependency on 'libgnutls', which does not exist
WARNING: Makefile 'package/network/utils/curl/Makefile' has a dependency on 'libopenldap', which does not exist
WARNING: Makefile 'package/network/utils/curl/Makefile' has a dependency on 'libidn2', which does not exist
WARNING: Makefile 'package/network/utils/curl/Makefile' has a dependency on 'libssh2', which does not exist
WARNING: Makefile 'package/boot/kexec-tools/Makefile' has a dependency on 'liblzma', which does not exist
WARNING: Makefile 'package/network/services/lldpd/Makefile' has a dependency on 'libnetsnmp', which does not exist
make[1]: Entering directory '/home/cuimh/openwrt'
make[2]: Entering directory '/home/cuimh/openwrt'
+ mkdir -p /home/cuimh/openwrt/staging_dir/target-mips-unknown-linux-gnu_musl
+ cd /home/cuimh/openwrt/staging_dir/target-mips-unknown-linux-gnu_musl
+ mkdir -p bin lib include stamp
mkdir -p /home/cuimh/openwrt/build_dir/target-mips-unknown-linux-gnu_musl/stamp
touch /home/cuimh/openwrt/staging_dir/target-mips-unknown-linux-gnu_musl/.prepared
make[3]: Entering directory '/home/cuimh/openwrt/toolchain/wrapper'
Testing external toolchain for softfloat support ... Toolchain directory '/opt/cross/mips-unknown-linux-gnu' does not exist.
failed
ERROR: CONFIG_SOFT_FLOAT is enabled but the external toolchain does not support it
Makefile:62: recipe for target '/home/cuimh/openwrt/build_dir/toolchain-mips-unknown-linux-gnu/wrapper-1/.prepared' failed
make[3]: *** [/home/cuimh/openwrt/build_dir/toolchain-mips-unknown-linux-gnu/wrapper-1/.prepared] Error 1
make[3]: Leaving directory '/home/cuimh/openwrt/toolchain/wrapper'
Command exited with non-zero status 2
time: toolchain/wrapper/compile#0.00#0.00#0.02
toolchain/Makefile:96: recipe for target 'toolchain/wrapper/compile' failed
make[2]: *** [toolchain/wrapper/compile] Error 2
make[2]: Leaving directory '/home/cuimh/openwrt'
toolchain/Makefile:94: recipe for target '/home/cuimh/openwrt/staging_dir/toolchain-mips-unknown-linux-gnu/stamp/.toolchain_compile' failed
make[1]: *** [/home/cuimh/openwrt/staging_dir/toolchain-mips-unknown-linux-gnu/stamp/.toolchain_compile] Error 2
make[1]: Leaving directory '/home/cuimh/openwrt'
/home/cuimh/openwrt/include/toplevel.mk:216: recipe for target 'world' failed
make: *** [world] Error 2
求助大神!