Search code examples
linuxcross-compilingautotoolstoolchaincrosstool-ng

Failed to build an ARM cross compiler with crosstool-ng


I'm doing a lab from Free Electron to building a cross-compilation toolchain But when I run the build command it fails shortly after downloading things...

My stuff : xubuntu 14.04.3 | crosstool-ng-1.19.0

When I run ./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)

Solution

  • SOLUTION : The problem was my version of mpfr... So to fixe that I config with ./-ct-ng menuconfig , and I tell him to rebuild this module. It's was in the section Companion libraries.