天嵌 ARM开发社区

 找回密码
 注册
查看: 2831|回复: 4

使用crosstool-ng制作交叉编译工具链出错

[复制链接]
daydreamsan 发表于 2014-11-17 20:24:07 | 显示全部楼层 |阅读模式
本人在centos6.5上安装了crosstool-ng-1.19,按照《嵌入式linux学习笔记》中的过程制作交叉编译工具链,出现如下错误:

[root@localhost crosstool]# ct-ng build
[INFO ]  Performing some trivial sanity checks
[INFO ]  Build started 20141117.200229
[INFO ]  Building environment variables
[EXTRA]  Preparing working directories
[ERROR]   
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Checking that gcc can compile a trivial statically linked program (CT_WANTS_STATIC_LINK)'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@541]
[ERROR]  >>
[ERROR]  >>  For more info on this error, look at the file: 'build.log'
[ERROR]  >>  There is a list of known issues, some with workarounds, in:
[ERROR]  >>      '/usr/local/share/doc/crosstool-ng/ct-ng.1.19.0/B - Known issues.txt'
[ERROR]   
[ERROR]  (elapsed: 0:01.71)
[00:02] / make: *** [build] 错误 1


应该如何解决呢?


TQ-lkp 发表于 2014-11-18 08:52:52 | 显示全部楼层
交叉编绎器制作比较复杂,无法给你提供建议
zyh2014 发表于 2014-11-18 16:03:34 | 显示全部楼层
不清楚啦,顶一下
 楼主| daydreamsan 发表于 2014-11-18 19:14:26 | 显示全部楼层
TQ-lkp 发表于 2014-11-18 08:52
交叉编绎器制作比较复杂,无法给你提供建议

已经解决了,通过查看build.log文件中详细的出错信息,然后按照其中的提示安装相应的依赖包就可以了
 楼主| daydreamsan 发表于 2014-11-18 19:32:24 | 显示全部楼层
zyh2014 发表于 2014-11-18 16:03
不清楚啦,顶一下

谢谢,已经解决了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号 )

GMT+8, 2024-5-3 03:03 , Processed in 1.062500 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表