您的位置:首页 > 运维架构 > Linux

CentOS 7.0 制作crosstool-ng交叉编译 错误日志

2018-03-15 12:40 253 查看
crosstool-ng 制作交叉编译 CentOS 7.0版本制作 错误日志

[INFO ]  =================================================================
[INFO ]  Installing PPL for host
[EXTRA]    Configuring PPL
[ERROR]    configure: error: Cannot find GMP version 4.1.3 or higher.
[ERROR]
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing PPL for host'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@172]
[ERROR]  >>        called from: do_ppl_backend[scripts/build/companion_libs/ppl.sh@82]
[ERROR]  >>        called from: do_ppl_for_host[scripts/build/companion_libs/ppl.sh@59]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@598]
[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]  >>      'share/doc/crosstool-ng/ct-ng.1.16.0/B - Known issues.txt'
[ERROR]
[ERROR]  (elapsed: 1:28.30)
[01:29] / make: *** [build] 错误 1


gcc版本为4.4.6 ,尝试将GMP version从4.3.2改成4.3.0版本 同样报错,一样的问题

尝试将所有版本降低

更改后的版本

CLooG/ppl version 0.15.6版本没有找到,下载0.15.7版本

问题解决,但出现新的问题

[EXTRA]    Building PPL
[ERROR]    /home/klaus/crosstool/crosstool-ng-1.16.0/.build/src/ppl-0.10.2/src/Interval.defs.hh:451:85: error: 'f_info' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
[ERROR]    /home/klaus/crosstool/crosstool-ng-1.16.0/.build/src/ppl-0.10.2/src/Interval.defs.hh:390:85: error: 'f_info' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
[ERROR]    /home/klaus/crosstool/crosstool-ng-1.16.0/.build/src/ppl-0.10.2/src/Interval.defs.hh:432:60: error: 'f_info' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
[ERROR]    /home/klaus/crosstool/crosstool-ng-1.16.0/.build/src/ppl-0.10.2/src/Interval.defs.hh:492:60: error: 'f_info' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
[ERROR]    /home/klaus/crosstool/crosstool-ng-1.16.0/.build/src/ppl-0.10.2/src/Interval.defs.hh:390:85: error: 'f_info' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
[ERROR]    /home/klaus/crosstool/crosstool-ng-1.16.0/.build/src/ppl-0.10.2/src/Interval.defs.hh:451:85: error: 'f_info' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
[ERROR]    make[4]: *** [Polyhedron_widenings.lo] Error 1
[ERROR]    make[3]: *** [all] Error 2
[ERROR]    make[2]: *** [all-recursive] Error 1
[ERROR]    make[1]: *** [all] Error 2
[ERROR]
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing PPL for host'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@172]
[ERROR]  >>        called from: do_ppl_backend[scripts/build/companion_libs/ppl.sh@105]
[ERROR]  >>
d45c
called from: do_ppl_for_host[scripts/build/companion_libs/ppl.sh@59]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@598]
[ERROR]  >>
[ERROR]  >>  For more info on this error, look at the file: 'build.log'


替换新的PPL version ,将0.10.2改成0.11.1,没有0.11.1更换成 0.11查看新的现象

[INFO ]  =================================================================
[INFO ]  Installing PPL for host
[EXTRA]    Configuring PPL
[ERROR]    configure: error: Cannot find GMP version 4.1.3 or higher.
[ERROR]
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing PPL for host'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@172]
[ERROR]  >>        called from: do_ppl_backend[scripts/build/companion_libs/ppl.sh@82]
[ERROR]  >>        called from: do_ppl_for_host[scripts/build/companion_libs/ppl.sh@59]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@598]
[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]  >>      'share/doc/crosstool-ng/ct-ng.1.16.0/B - Known issues.txt'
[ERROR]
[ERROR]  (elapsed: 1:24.99)
[01:25] / make: *** [build] 错误 1


更改之后出现这样的问题,证明不应该修改,改回之前的版本

[klaus@localhost tarballs]$ rm -rf ppl-0.11.tar.gz
[klaus@localhost tarballs]$ wget http://gcc.parentingamerica.com/infrastructure/ppl-0.10.2.tar.gz[/code] 
更换了ppl-0.10.2的下载地址,重新试一下

[klaus@localhost crosstool-ng-1.16.0]$ cd tarballs/
[klaus@localhost tarballs]$ ls
binutils-2.20.1a.tar.bz2  gcc-4.4.6.tar.bz2  glibc-ports-2.9.tar.bz2  linux-3.5.tar.bz2  ppl-0.10.2.tar.gz
cloog-ppl-0.15.7.tar.gz   glibc-2.9.tar.bz2  gmp-4.3.0.tar.bz2        mpfr-3.0.0.tar.xz
[klaus@localhost tarballs]$ file ppl-0.10.2.tar.gz
ppl-0.10.2.tar.gz: gzip compressed data, from Unix, last modified: Sat Apr 18 13:15:40 2009, max compression
[klaus@localhost tarballs]$ du -h ppl-0.10.2.tar.gz
11M     ppl-0.10.2.tar.gz
[klaus@localhost tarballs]$ rm -rf ppl-0.10.2.tar.gz
[klaus@localhost tarballs]$ wget http://bugseng.com/products/ppl/download/ftp/releases/0.10.2/ppl-0.10.2.tar.bz2 --2018-03-14 14:10:57--  http://bugseng.com/products/ppl/download/ftp/releases/0.10.2/ppl-0.10.2.tar.bz2 正在解析主机 bugseng.com (bugseng.com)... 77.104.189.62
正在连接 bugseng.com (bugseng.com)|77.104.189.62|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:9820135 (9.4M) [application/x-tar]
正在保存至: “ppl-0.10.2.tar.bz2”

100%[==========================================================================================>] 9,820,135   73.1KB/s 用时 95s

2018-03-14 14:12:34 (101 KB/s) - 已保存 “ppl-0.10.2.tar.bz2” [9820135/9820135])

[klaus@localhost tarballs]$ file ppl-0.10.2.tar.bz2
ppl-0.10.2.tar.bz2: bzip2 compressed data, block size = 900k
[klaus@localhost tarballs]$ du -h ppl-0.10.2.tar.bz2
9.4M    ppl-0.10.2.tar.bz2
[klaus@localhost tarballs]$


不知道差别的2M内容是什么,尝试编译一下

还是出现同样的问题,不是文件不对了,要深入看一下了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: