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

User avatar
By NopItTwice
#56553 I am currently following this guide to install the toolchain: https://github.com/esp8266/esp8266-wiki/wiki/Toolchain

It's a total pain in the ass, as it has apparently not been tested for x64 systems.
Now I've reached a point where I can't figure out the problem on my own.

The second-last point tells me to install "esptool_0.0.2-1_i386.deb".
But the installation fails saying "package architecture (i386) does not match system (amd64)".
And there doesn't seem to be a x64 package available: https://github.com/esp8266/esp8266-wiki/tree/master/deb

Is espressif not supporting x64 systems? (Why is there a x64 Debian section then?)
Is there a guide to set up the toolchain that has actually been tested?

I'm on Debian 8 (Jessie) x64 btw.
User avatar
By poloking
#56585 if you want to follow the guide precisely, you have a couple options:
1. compile the code yourself - I don't imagine it should be that difficult (search google for a generic compilation guide)
2. use a multiarch solution to allow you to install 32bit on 64bit OS

Of the two options personally I would choose number 1. However my recommendation would be to use the python tool which is the next step in your install guide. https://github.com/themadinventor/esptool that same tool has the ability to build ELF into binary ".bin" blobs. Obviously then you will have to make sure that you are passing the right commands instead of just copying and pasting.