【发布时间】: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