【问题标题】:Failed to build an ARM cross compiler with crosstool-ng使用 crosstool-ng 构建 ARM 交叉编译器失败
【发布时间】:2018-08-05 21:35:11
【问题描述】:

我正在从 Free Electron 做一个实验室来构建一个交叉编译工具链 但是当我运行构建命令时,它在下载东西后不久就失败了......

我的东西:xubuntu 14.04.3 |交叉工具-ng-1.19.0

当我运行 ./ct-ng build 时

[DEBUG]    Entering '/home/thibaut/felabs/sysdev/toolchain/crosstool-ng-1.19.0/.build/src/mpfr-2.4.2'
[DEBUG]    Running autoreconf
[DEBUG]    ==> Executing: 'autoreconf' 
[ALL  ]    aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
[ERROR]    configure.in:294: error: automatic de-ANSI-fication support has been removed
[ALL  ]    /usr/share/aclocal-1.14/obsolete.m4:26: AM_C_PROTOTYPES is expanded from...
[ALL  ]    configure.in:294: the top level
[ALL  ]    autom4te: /usr/bin/m4 failed with exit status: 1
[ERROR]    aclocal: error: echo failed with exit status: 1
[ALL  ]    autoreconf: aclocal failed with exit status: 1
[ERROR]  
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Extracting and patching toolchain components'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR]  >>        called from: do_mpfr_extract[scripts/build/companion_libs/110-mpfr.sh@37]
[ERROR]  >>        called from: do_companion_libs_extract[scripts/build/companion_libs.sh@22]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@600]
[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: 0:03.97)

【问题讨论】:

  • 有时您可以通过 autorecon -f -i 解决 Autotools 问题(根据很多经验)。确保安装了 Autotools 和 Libtool(开发版本)。但是,我没有看到上面的错误。也许autoupdate 将摆脱去ANSI-fication 问题。您可能应该使用 V=1 进行 kbuild 以获得更多详细信息。
  • 是的,我有 Autotolos(Automake?)和 libtool。从文档中我需要安装这些软件包:sudo apt-get install autoconf automake libtool libexpat1-dev \ libncurses5-dev bison flex patch curl cvs texinfo \ build-essential subversion gawk python-dev gperf 我尝试了 autoreconf -f -i 和 autoupdate 但没有任何反应。 Idk 如果因为我使用 crosstool-ng1.19.0... 现在有 1.23.0 但这个实验室是针对 1.19.0 所以 Idk 如果升级到 1.23 是个好主意

标签: linux cross-compiling autotools toolchain crosstool-ng


【解决方案1】:

看起来crosstool-ng 使用的mpfr 版本与您的autoconf 版本不兼容。我建议尝试更新版本的crosstool-ng(2013 年发布了 1.19 版)。

如果你真的需要crosstool-ng 1.19,可以尝试从“配套工具”编译autoconf版本(EXPERIMENTAL必须设置)。

您也可以尝试安装另一个版本的 autoconf。我相信 Ubuntu 14.04 提供了 autoconf 2.13、2.59 和 2.68。你可以试试看。

【讨论】:

  • 是的,你说得对,它是关于 mpfr 的版本...所以要修复我用 ./-ct-ng menuconfig 配置的问题,我告诉他重建这个模块。它位于配套库部分中。
【解决方案2】:

解决方案: 问题是我的 mpfr 版本...所以要修复我用 ./-ct-ng menuconfig 配置的问题,我告诉他重建这个模块。它位于配套库部分中。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-02-26
    • 2014-03-14
    • 2015-06-11
    • 1970-01-01
    • 2013-10-09
    相关资源
    最近更新 更多