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

User avatar
By infiniteparameter
#42720 I just downloaded the esp-open-sdk and I'm attempting to "make STANDALONE=y", but I get a few errors:

make -C crosstool-NG -f ../Makefile _toolchain
make[1]: Entering directory '/root/Downloads/ESP8266/esp-open-sdk/crosstool-NG'
./ct-ng xtensa-lx106-elf
make[2]: Entering directory '/root/Downloads/ESP8266/esp-open-sdk/crosstool-NG'
CONF config/config.in

*** Error during writing of the configuration.

/root/Downloads/ESP8266/esp-open-sdk/crosstool-NG/lib/ct-ng.1.20.0/samples/samples.mk:136: recipe for target 'xtensa-lx106-elf' failed
make[2]: *** [xtensa-lx106-elf] Error 1
make[2]: Leaving directory '/root/Downloads/ESP8266/esp-open-sdk/crosstool-NG'
../Makefile:111: recipe for target '_toolchain' failed
make[1]: *** [_toolchain] Error 2
make[1]: Leaving directory '/root/Downloads/ESP8266/esp-open-sdk/crosstool-NG'
Makefile:108: recipe for target '/root/Downloads/ESP8266/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc' failed
make: *** [/root/Downloads/ESP8266/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc] Error 2


I've looked at the line references at 136 and 111 in the relevant files, but I'm not sure what how to interpret it. The tutorials I've been following say to download the sdk and the initial make should work right away. Maybe it's an issue with my Linux Kali distro?
User avatar
By infiniteparameter
#42760 I followed the pfalcon github page instructions, and I'm running on a Debian machine - no virtualbox. The command I used for the tools was:

sudo apt-get install make unrar autoconf automake libtool gcc g++ gperf \
flex bison texinfo gawk ncurses-dev libexpat-dev python python-serial sed \
git unzip

also, libtool-bin.

This instruction is said to be necessary for Ubuntu 14.04, and doesn't specify certain tools for Debian

EDIT: I'm experimenting with alternative tutorials, and I'm currently working through the toolchain building instructions on https://github.com/esp8266/esp8266-wiki/wiki/Toolchain. The problem now is at this command:

dpkg -i esptool_0.0.2-1_i386.deb

It's telling me that I use amd64, while this command uses i386. Is there a way I can find a similar file with the correct architecture? Or do I need to edit a file somewhere?

EDIT: This was resolved, using:
dpkg --add-architecture:i386

and also:

apt-get -f install

but I'm not yet sure of the utility of the latter command.

Onward!