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

User avatar
By OpenThings
#1461 Now,I am using a new installed Ubuntukylin14.04,make "at" got error as following:

CC user/at_baseCmd.c
In file included from /usr/include/string.h:25:0,
from /opt/Espressif/ESP8266_SDK/include/osapi.h:8,
from user/at_baseCmd.c:1:
/usr/include/features.h:374:25: fatal error: sys/cdefs.h: No such file or directory
# include <sys/cdefs.h>
^
compilation terminated.
====================
but yesterday using a old Ubuntukylin14.04,just OK.
who can help me? thanks advance.
User avatar
By OpenThings
#1463
OpenThings wrote:Now,I am using a new installed Ubuntukylin14.04,make "at" got error as following:

CC user/at_baseCmd.c
In file included from /usr/include/string.h:25:0,
from /opt/Espressif/ESP8266_SDK/include/osapi.h:8,
from user/at_baseCmd.c:1:
/usr/include/features.h:374:25: fatal error: sys/cdefs.h: No such file or directory
# include <sys/cdefs.h>
^
compilation terminated.
====================
but yesterday using a old Ubuntukylin14.04,just OK.
who can help me? thanks advance.


have to install libc6-dev-i386 to get the correct headers.
now It's OK.
User avatar
By igrr
#1465
OpenThings wrote:have to install libc6-dev-i386 to get the correct headers.
now It's OK.

I would rather suggest you use headers supplied in the VM. There's a file in the VM called lx106_linux_redist.tgz, extract it somewhere on your linux box (you will get "RC-2010.1-linux" folder).
Then add the following include directory to the makefile: <your path to>/RC-2010.1-linux/lx106/xtensa-elf/include.
User avatar
By mobyfab
#1689 Hey guys,

I just made a mingw64 version of the compiler, using Espressif SDK's newlib and the gcc/binutils patches from ct-ng. No gdb yet.

I don't have the hardware to test it yet but it compiles and links with the SDK's binaries.
Let me know if you want the procedure to make it (it's a bit tedious, all manual).

https://drive.google.com/folderview?id= ... WlsNUZpX0E