Error building open-sdk

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
preiter
Posts: 7
Joined: Tue Aug 09, 2016 5:14 pm

Error building open-sdk

Post by preiter » Fri Aug 19, 2016 5:16 am

I'm getting this error building esp-open-sdk...

Code: Select all

#
# configuration written to .config
#

***********************************************************

Initially reported by: Max Filippov <jcmvbkbc@gmail.com>
URL: http://www.esp8266.com/viewtopic.php?f=9&t=224

***********************************************************

WARNING! This sample may enable experimental features.
         Please be sure to review the configuration prior
         to building and using your toolchain!
Now, you have been warned!

***********************************************************

Now configured for "xtensa-lx106-elf"
make[2]: Leaving directory `/mnt/c/Users/Pete/Documents/esp8266/build/esp-open-sdk/crosstool-NG'
sed -r -i.org s%CT_PREFIX_DIR=.*%CT_PREFIX_DIR="/mnt/c/Users/Pete/Documents/esp8266/build/esp-open-sdk/xtensa-lx106-elf"% .config
sed -r -i s%CT_INSTALL_DIR_RO=y%"#"CT_INSTALL_DIR_RO=y% .config
cat ../crosstool-config-overrides >> .config
./ct-ng build
make[2]: Entering directory `/mnt/c/Users/Pete/Documents/esp8266/build/esp-open-sdk/crosstool-NG'
[INFO ]  Performing some trivial sanity checks
[INFO ]  Build started 20160818.214952
[INFO ]  Building environment variables
[INFO ]  =================================================================
[INFO ]  Retrieving needed toolchain components' tarballs
[INFO ]  Retrieving needed toolchain components' tarballs: done in 166.37s (at 03:02)
[INFO ]  =================================================================
[INFO ]  Extracting and patching toolchain components
[INFO ]  Extracting and patching toolchain components: done in 450.18s (at 10:33)
[INFO ]  =================================================================
[INFO ]  Installing ncurses for build
[INFO ]  Installing ncurses for build: done in 59.94s (at 11:33)
[INFO ]  =================================================================
[INFO ]  Installing GMP for host
[INFO ]  Installing GMP for host: done in 152.03s (at 14:05)
[INFO ]  =================================================================
[INFO ]  Installing MPFR for host
[ERROR]    make[3]: *** [/mnt/c/Users/Pete/Documents/esp8266/build/esp-open-sdk/crosstool-NG/.build/src/mpfr-3.1.3/aclocal.m4] Error 127
[ERROR]
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing MPFR for host'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR]  >>        called from: do_mpfr_backend[scripts/build/companion_libs/110-mpfr.sh@149]
[ERROR]  >>        called from: do_mpfr_for_host[scripts/build/companion_libs/110-mpfr.sh@104]
[ERROR]  >>        called from: do_companion_libs_for_host[scripts/build/companion_libs.sh@36]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@646]
[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/crosstool-ng-1.22.0-55-gecfc19a/B - Known issues.txt'
[ERROR]
[ERROR]  (elapsed: 14:31.90)
[14:34] / make[2]: *** [build] Error 2
make[2]: Leaving directory `/mnt/c/Users/Pete/Documents/esp8266/build/esp-open-sdk/crosstool-NG'
make[1]: *** [_toolchain] Error 2
make[1]: Leaving directory `/mnt/c/Users/Pete/Documents/esp8266/build/esp-open-sdk/crosstool-NG'
make: *** [/mnt/c/Users/Pete/Documents/esp8266/build/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc] Error 2
Here's the error from build.log...

Code: Select all

[EXTRA]    Building MPFR
[DEBUG]    ==> Executing: '/usr/bin/make' '-j5' '-l'
[ALL  ]    make[3]: Entering directory `/mnt/c/Users/Pete/Documents/esp8266/build/esp-open-sdk/crosstool-NG/.build/xtensa-lx106-elf/build/build-mpfr-host-x86_64-build_pc-linux-gnu'
[ALL  ]    CDPATH="${ZSH_VERSION+.}:" && cd /mnt/c/Users/Pete/Documents/esp8266/build/esp-open-sdk/crosstool-NG/.build/src/mpfr-3.1.3 && /bin/bash /mnt/c/Users/Pete/Documents/esp8266/build/esp-open-sdk/crosstool-NG/.build/src/mpfr-3.1.3/missing aclocal-1.15 -I m4
[ALL  ]    /mnt/c/Users/Pete/Documents/esp8266/build/esp-open-sdk/crosstool-NG/.build/src/mpfr-3.1.3/missing: line 81: aclocal-1.15: command not found
[ALL  ]    WARNING: 'aclocal-1.15' is missing on your system.
[ALL  ]             You should only need it if you modified 'acinclude.m4' or
[ALL  ]             'configure.ac' or m4 files included by 'configure.ac'.
[ALL  ]             The 'aclocal' program is part of the GNU Automake package:
[ALL  ]             <http://www.gnu.org/software/automake>
[ALL  ]             It also requires GNU Autoconf, GNU m4 and Perl in order to run:
[ALL  ]             <http://www.gnu.org/software/autoconf>
[ALL  ]             <http://www.gnu.org/software/m4/>
[ALL  ]             <http://www.perl.org/>
[ERROR]    make[3]: *** [/mnt/c/Users/Pete/Documents/esp8266/build/esp-open-sdk/crosstool-NG/.build/src/mpfr-3.1.3/aclocal.m4] Error 127
[ALL  ]    make[3]: Leaving directory `/mnt/c/Users/Pete/Documents/esp8266/build/esp-open-sdk/crosstool-NG/.build/xtensa-lx106-elf/build/build-mpfr-host-x86_64-build_pc-linux-gnu'
[ERROR]
Some searches indicated that this may be an issue with timestamps being wrong, but I would think that would affect everyone trying to build this.

Any clues?

User avatar
deshipu
Posts: 1388
Joined: Thu May 28, 2015 5:54 pm

Re: Error building open-sdk

Post by deshipu » Fri Aug 19, 2016 7:07 am

Have you tried just installing that aclocal?

jms
Posts: 108
Joined: Thu May 05, 2016 8:29 pm
Contact:

Re: Error building open-sdk

Post by jms » Fri Aug 19, 2016 4:43 pm

Personally I think the whole autoconf system is a load of rubbish.

aclocal is something to do with local customisations which ablmost nobody does, at least using it, because it's such a mess. I have no doubt that particular version is present on some systems. One technique (hack) I have learnt is to do autoreconf -f -i but this should not be necessary ideally.

User avatar
deshipu
Posts: 1388
Joined: Thu May 28, 2015 5:54 pm

Re: Error building open-sdk

Post by deshipu » Fri Aug 19, 2016 9:45 pm

Well, all the tools we have suck in one way or another. On the other hand, we can still use them to make awesome things, even though they suck. Personally I'm happy to have tools, even when they are not perfect.

(And yes, I write my makefiles by hand and try to make them pretty.)

preiter
Posts: 7
Joined: Tue Aug 09, 2016 5:14 pm

Re: Error building open-sdk

Post by preiter » Sat Aug 20, 2016 4:57 am

So it looks like I have aclocal-1.14 installed and the scripts for esp-open-sdk is specifically looking for aclocal-1.15.

Aclocal is part of the automake package and I seem to have the latest version available of automake.

I'm running on the windows subsystem for linux on Windows 10 which is supposed to be Ubuntu, but I'm not sure what release.

preiter
Posts: 7
Joined: Tue Aug 09, 2016 5:14 pm

Re: Error building open-sdk

Post by preiter » Sat Aug 20, 2016 4:45 pm

Success!

I faked it out by adding a softlink from aclocal-1.14 to aclocal-1.15 in /usr/bin. I had to do the same thing with automake-1.14.

Post Reply