0

我正在尝试为 ARM 和 i586 架构构建跨 NG。ct-ng build尝试编译 GCC 时失败。我已经安装了 PPL 1.0-1 版。还尝试了 0.11.2-2 版本。我不明白为什么 GCC 的配置脚本找不到 PPL,而 PPL 已经在那里了......

所有相同的结果:

...
[CFG  ]    checking for the correct version of gmp.h... yes
[CFG  ]    checking for the correct version of mpfr.h... yes
[CFG  ]    checking for the correct version of mpc.h... yes
[CFG  ]    checking for the correct version of the gmp/mpfr/mpc libraries... yes
[CFG  ]    checking for PWL_handle_timeout in -lpwl... yes
[CFG  ]    checking for version 0.11 (revision 0 or later) of PPL... no
[ERROR]    configure: error: Unable to find a usable PPL.  See config.log for details.
[ERROR]  
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing pass-1 core C compiler'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@172]
[ERROR]  >>        called from: do_cc_core_backend[scripts/build/cc/gcc.sh@343]
[ERROR]  >>        called from: do_cc_core_pass_1[scripts/build/cc/gcc.sh@88]
[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]  >>      'docs/B - Known issues.txt'
[ERROR]  
[ERROR]  (elapsed: 7:27.12)

万一这很重要,我的盒子:

uname -m x86_64
distro: archlinux
gcc -v: gcc version 4.7.1 20120721 (prerelease) (GCC)
4

1 回答 1

1

Crosstool-NG自行下载并构建其依赖项。在 ct-ng menuconfig 中,有这样的注释:

  │ │    ()  Extra addons                                                 │ │  
  │ │          *** WARNING !!!                                            │ │  
  │ │          ***   For glibc >= 2.8, it can happen that the tarballs    │ │  
  │ │          ***   for the addons are not available for download.       │ │  
  │ │          ***   If that happens, bad luck... Try a previous version  │ │  
  │ │          ***   or try again later... :-(

可能下载服务器暂时关闭或您的网络连接中断。“稍后再试” ?

要尝试的另一件事是在 Companion 库下的 ct-ng menuconfig 中选择不同版本的 PPL。就我而言,我选择了 gcc 和 crosstool 不支持的其他版本的组合。尝试使用库存通用 arm-unknown-linux-gnueabi 配置而不进行修改。这对我有用。

于 2013-06-10T20:46:57.143 回答