openwrt外部工具链(芯片厂商的,非openwrt自带)make编译报错 求助

m0_37781301 2018-06-06 04:45:30
大大神好,我现在重新搭建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


求助大神!
...全文
3688 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
qq_23849583 2019-03-19
  • 打赏
  • 举报
回复

-----------------------------------------------------------------------------------+ |
| | --- Advanced configuration options (for developers) | |
| | [ ] Show broken platforms / packages | |
| | () Binary folder | |
| | () Download folder | |
| | () Local mirror for source packages | |
| |
  • Automatic rebuild of packages
  • | |
    | | () Build suffix to append to the target BUILD_DIR variable | |
    | | () Override the default TARGET_ROOTFS_DIR variable | |
    | | [ ] Use ccache | |
    | | () Use external kernel tree | |
    | | () Enter git repository to clone | |
    | | [ ] Enable log files during build process | |
    | | [ ] Enable package source tree override | |
    | | (-fno-caller-saves) Additional compiler options | |
    | |
  • Target Options ---> 这项选中就没有那个错了
  • | |
    | |
  • Use external toolchain --->
  • | |
    | |
qq_23849583 2019-03-19
  • 打赏
  • 举报
回复
xbmu3 2018-09-06
  • 打赏
  • 举报
回复 1
sudo apt install lib32z1-dev
Edward201804 2018-08-01
  • 打赏
  • 举报
回复 1
sudo apt install lib32z1-dev
m0_37781301 2018-06-07
  • 打赏
  • 举报
回复
请问我这个想法可行吗?依据之前说的先链接使用芯片厂商的工具链,在make
fly 100% 2018-06-07
  • 打赏
  • 举报
回复
报错信息就是找不到编译器,看看makefile 里面编译器的宏 ,设置一下

679

社区成员

发帖
与我相关
我的任务
社区描述
智能路由器通常具有独立的操作系统,包括OpenWRT、eCos、VxWorks等,可以由用户自行安装各种应用,实现网络和设备的智能化管理。
linuxpython 技术论坛(原bbs)
社区管理员
  • 智能路由器社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧