Problem building esp-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
slzatz
Posts: 92
Joined: Mon Feb 09, 2015 1:09 am

Problem building esp-sdk

Post by slzatz » Tue May 17, 2016 2:10 am

Have built it a number of times without problem on Ubuntu but now seeing:

Code: Select all

[INFO ]  Retrieving needed toolchain components' tarballs
[ERROR]   
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Retrieving needed toolchain components' tarballs'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: do_mpfr_get[scripts/build/companion_libs/110-mpfr.sh@741]
[ERROR]  >>        called from: do_companion_libs_get[scripts/build/companion_libs.sh@15]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@583]
Anyone else seeing this?

ideal2545
Posts: 12
Joined: Tue May 17, 2016 9:08 am

Re: Problem building esp-sdk

Post by ideal2545 » Tue May 17, 2016 9:14 am

download the tar files manually, i had to do this today

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Problem building esp-sdk

Post by pythoncoder » Tue May 17, 2016 9:45 am

I'm seeing a different problem: it falls over at the last hurdle. I've succeeded previously and the Debian 8.2 VM in use is unchanged:

Code: Select all

[successful output omitted]
[INFO ]Build completed at 20160517.072500
[INFO ]  (elapsed: 36:40.98)
[INFO ]  Finishing installation (may take a few seconds)...
[36:42] / make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Leaving directory '/mnt/qnap2/data/Projects/MicroPython/esp-open-sdk/crosstool-NG'
make[1]: Leaving directory '/mnt/qnap2/data/Projects/MicroPython/esp-open-sdk/crosstool-NG'
cp esptool/esptool.py /mnt/qnap2/data/Projects/MicroPython/esp-open-sdk/xtensa-lx106-elf/bin/
Creating irom version of libc...
/mnt/qnap2/data/Projects/MicroPython/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-objcopy --rename-section .text=.irom0.text \
	--rename-section .literal=.irom0.literal /mnt/qnap2/data/Projects/MicroPython/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/lib/libc.a /mnt/qnap2/data/Projects/MicroPython/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/lib/libcirom.a;
unzip -q -o ESP8266_NONOS_SDK_V1.5.2_16_01_29.zip
mv License esp_iot_sdk_v1.5.2
mv: cannot stat ‘License’: No such file or directory
Makefile:165: recipe for target 'esp_iot_sdk_v1.5.2/.dir' failed
make: [esp_iot_sdk_v1.5.2/.dir] Error 1 (ignored)
touch esp_iot_sdk_v1.5.2/.dir
ln -snf esp_iot_sdk_v1.5.2 sdk
make: *** No rule to make target 'Patch01_for_ESP8266_NONOS_SDK_V1.5.2.zip', needed by '.sdk_patch_1.5.2'.  Stop.
adminpete@debian8:/mnt/qnap2/data/Projects/MicroPython/esp-open-sdk$ 
Peter Hinch
Index to my micropython libraries.

ideal2545
Posts: 12
Joined: Tue May 17, 2016 9:08 am

Re: Problem building esp-sdk

Post by ideal2545 » Tue May 17, 2016 9:55 am

same problem, i tried compiling micropython anyways since it looks like whatever its doing there at the end is a patch and not a major componenet... then again i can't get my micropython to compile, keeps complaining that a bunch of files are missing

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Problem building esp-sdk

Post by pythoncoder » Tue May 17, 2016 10:08 am

I'm seeing similar but assumed it was because the toolchain compilation had failed. FWIW I can build the Pyboard firmware without issue so the problem is ESP8266-specific (and presumably toolchain related).
Peter Hinch
Index to my micropython libraries.

slzatz
Posts: 92
Joined: Mon Feb 09, 2015 1:09 am

Re: Problem building esp-sdk

Post by slzatz » Tue May 17, 2016 11:34 am

download the tar files manually
Am not exactly an expert -- where are the tar files, what local directory should they go in, and does the Makefile need to be changed?

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Success (not sure what changed)

Post by pythoncoder » Tue May 17, 2016 2:47 pm

I've now managed to build the toolchain. This is what I did. I thought I did the same thing this morning but I may have had finger trouble. Otherwise something changed in the interim - git pull did retrieve something. Prior to compiling, in the esp-open-sdk directory, I issued (in accordance with the esp-open-sdk/README.md)

Code: Select all

make clean
git pull
git submodule sync
git submodule update --init
I then issued:

Code: Select all

make
This worked, issuing "Espressif ESP8266 SDK is installed, its libraries and headers are merged with the toolchain". I could subsequently build the firmware with (in micropython):

Code: Select all

git pull origin master
git submodule update --init
Then in esp8266:

Code: Select all

make clean
make axtls
make
Peter Hinch
Index to my micropython libraries.

Post Reply