Open rozhuk-im opened 1 year ago
Quick fix^ replace in /usr/local/esp-quick-toolchain-gcc103/xtensa-lx106-elf/xtensa-lx106-elf/include/inttypes.h:
#define PRIX64 __PRI64(X)
to
#define PRIX64 "Xll"
@rozhuk-im thanks for the reporting. i also noticed this before but patched esphome
instead. as espressif does not love ESP8266 RTOS SDK as much as they do esp-idf
, (unlikely the maintainer will fix in a timely manner) probably patch the toolchain is the only option for us.
Looks like there is some mess with include files. I have no idea how to fix this on ESPHome side and make this fix.
PS: sorry for off topic, I almost done ESPHome port for FreeBSD. Last part is compiler and tools injection into packages. If I have time this script will be run as prebuild and inject missed packages, but now it is useful too.
good to know there are other FreeBSD users who works on esphome
or "IoT" thingy. the problem of maintaining the toolchains is that, it take a long time to test all of them. I am actively using the toolchains, but some fixes have not been in my ports.
looks like this is a historical issue.
https://github.com/espressif/esp-idf/issues/52
it is deliberately disabled, but happened to work thanks to the following commit.
https://github.com/esp8266/Arduino/pull/5435
it seems to me that esphome
is not interested in ESP8266 anymore. here is an issue i opened.
Why not to add patch include/inttypes.h
to fix at least known used things?
With gcc103 got:
looks like there is no
__INT64
definition.With gcc4.8 got: