Discuss here different C compiler set ups, and compiling executables for the ESP8266

User avatar
By strolch
#1755 I'd like to build the c++ compiler (on ubuntu). At least enabling "additional language C++" in menu-config isn't sufficient - build fails with
Code: Select all[INFO ]  =================================================================
[INFO ]  Installing binutils for host
[INFO ]  Installing binutils for host: done in 28.77s (at 01:19)
[INFO ]  =================================================================
[INFO ]  Installing final compiler
[ERROR]    checking for the value of EOF... configure: error: computing EOF failed
[ERROR]    make[1]: *** [configure-target-libstdc++-v3] Error 1
w/o the additional language switch it works. Any hints?
User avatar
By jcmvbkbc
#1756
strolch wrote:
Code: Select all[ERROR]    checking for the value of EOF... configure: error: computing EOF failed

Looks like libstdc++ wants libc, or at least libc headers. Not sure if it's a bug or feature. Do you need libstdc++?
User avatar
By CheapB
#1796
martinayotte wrote:You need to download the libs that mamalala provided in previous post http://www.esp8266.com/viewtopic.php?f=9&t=224&start=40.
The download link is http://atelier-klippel.de/xtensa_libs.tgz, you should place them into your SDK folder.


I copied these in and I am am still getting the "/opt/Espressif/crosstool-NG/builds/xtensa-lx106-elf/lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: cannot find -lhal" error.

How exactly does the folder structure look like after the xtensa_libs.tgz has been applied? I am sure I am screwing this up.. :-(