u-boot-1.1.6编译过程中出现cannot find -lc
2013-06-03 00:54
211 查看
Linux 系统管理 2013-06-03 00:54
488人阅读 评论(0)
收藏
举报
在尝试u-boot-1.1.6向mini2440移植的过程中,遇到下面的编译问题:
opt/FriendlyARM/toolschain/4.4.3/bin/.arm-none-linux-gnueabi-ld: cannot find -lc
打开u-boot-1.1.6根目录下的Makefile,发现:第218行
PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc -lc -L/usr/local/arm/4.3.2/arm-none-linux-gnueabi/libc/armv4t/usr/lib
这一行是有问题的
检查一下arm-linux-gcc的目录,发现arm-none-linux-gnueabi目录下并没有libc这样的目录,因此推断问题是arm-linux-gcc带来的,将arm-linux-gcc换成4.3.2版本,检查libc目录存在,库文件完整后,重新调整环境变量,问题解决。
相关文章推荐
- u-boot-1.1.6编译过程中出现cannot find -lc
- u-boot编译过程中出现的问题
- U-Boot 1.1.6的编译过程
- Linux编译静态链接出现:/usr/bin/ld: cannot find -lc
- u-boot-1.1.6的配置编译过程分析.doc
- 解决g++编译出现/usr/bin/ld: cannot find -lc
- chkrootkit安装过程中出现/usr/bin/ld: cannot find -lc的解决方法
- 关于springboot 生成的jar 文件在编译的时候出现没有主配置文件
- 编译错误 说明: 在编译向该请求提供服务所需资源的过程中出现错误。请检查下列特定错误详细信息并适当地修改源代码。
- tiny210(s5pv210)移植u-boot(基于 2014.4 版本)——编译过程
- qt编译过程中出现错误:arm-linux-g++ could not found
- U-Boot编译过程完全分析
- 编译U-boot 出现Nothing to be done for `_depend'.错误
- U-boot分析第1章------------------Makefile(编译过程)
- TQ2440 学习笔记—— 29、移植U-Boot【U-Boot 的编译、链接过程】
- ubuntu下安装Qt时,编译时出现”/usr/bin/ld: cannot find -LXXX” 错误
- U-Boot编译过程完全分析
- ubuntu14.04下编译linux uboot和kernel时提示arm-linux-gcc: not found 的解决过程
- 【转】Ubuntu 上编译Android出现cannot find -lstdc++解决办法
- opencv-3.1.0在Ubuntu系统上使用g++编译时出现“/usr/bin/ld: cannot find -lippicv ” 错误及其解决办法