Skip to content

Fail to build ESPHome for ESP8266 on FreeBSD13 amd64 #11

@rozhuk-im

Description

@rozhuk-im

With gcc103 got:

Compiling .pioenvs/hipper-ir-gate/src/esphome/components/remote_base/samsung_protocol.cpp.o
Compiling .pioenvs/hipper-ir-gate/src/esphome/components/remote_base/toshiba_ac_protocol.cpp.o
In file included from src/esphome/core/log.h:8,
                 from src/esphome/components/remote_base/samsung_protocol.cpp:2:
src/esphome/components/remote_base/samsung_protocol.cpp: In member function 'virtual void esphome::remote_base::SamsungProtocol::dump(const esphome::remote_base::SamsungData&)':
src/esphome/components/remote_base/samsung_protocol.cpp:61:46: error: expected ')' before '__INT64'
   61 |   ESP_LOGD(TAG, "Received Samsung: data=0x%" PRIX64 ", nbits=%d", data.data, data.nbits);
      |                                              ^~~~~~
/home/rim/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/WString.h:39:76: note: in definition of macro 'FPSTR'
   39 | #define FPSTR(pstr_pointer) (reinterpret_cast<const __FlashStringHelper *>(pstr_pointer))
      |                                                                            ^~~~~~~~~~~~
src/esphome/core/log.h:67:36: note: in expansion of macro 'F'
   67 | #define ESPHOME_LOG_FORMAT(format) F(format)
      |                                    ^
src/esphome/core/log.h:92:59: note: in expansion of macro 'ESPHOME_LOG_FORMAT'
   92 |   esp_log_printf_(ESPHOME_LOG_LEVEL_DEBUG, tag, __LINE__, ESPHOME_LOG_FORMAT(format), ##__VA_ARGS__)
      |                                                           ^~~~~~~~~~~~~~~~~~
src/esphome/core/log.h:152:28: note: in expansion of macro 'esph_log_d'
  152 | #define ESP_LOGD(tag, ...) esph_log_d(tag, __VA_ARGS__)
      |                            ^~~~~~~~~~
src/esphome/components/remote_base/samsung_protocol.cpp:61:3: note: in expansion of macro 'ESP_LOGD'
   61 |   ESP_LOGD(TAG, "Received Samsung: data=0x%" PRIX64 ", nbits=%d", data.data, data.nbits);
      |   ^~~~~~~~
/home/rim/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/WString.h:40:34: note: to match this '('
   40 | #define F(string_literal) (FPSTR(PSTR(string_literal)))
      |                                  ^~~~
/home/rim/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/WString.h:39:76: note: in definition of macro 'FPSTR'
   39 | #define FPSTR(pstr_pointer) (reinterpret_cast<const __FlashStringHelper *>(pstr_pointer))
      |                                                                            ^~~~~~~~~~~~
src/esphome/core/log.h:67:36: note: in expansion of macro 'F'
   67 | #define ESPHOME_LOG_FORMAT(format) F(format)
      |                                    ^
src/esphome/core/log.h:92:59: note: in expansion of macro 'ESPHOME_LOG_FORMAT'
   92 |   esp_log_printf_(ESPHOME_LOG_LEVEL_DEBUG, tag, __LINE__, ESPHOME_LOG_FORMAT(format), ##__VA_ARGS__)
      |                                                           ^~~~~~~~~~~~~~~~~~
src/esphome/core/log.h:152:28: note: in expansion of macro 'esph_log_d'
  152 | #define ESP_LOGD(tag, ...) esph_log_d(tag, __VA_ARGS__)
      |                            ^~~~~~~~~~
src/esphome/components/remote_base/samsung_protocol.cpp:61:3: note: in expansion of macro 'ESP_LOGD'
   61 |   ESP_LOGD(TAG, "Received Samsung: data=0x%" PRIX64 ", nbits=%d", data.data, data.nbits);
      |   ^~~~~~~~
In file included from src/esphome/core/log.h:8,
                 from src/esphome/components/remote_base/toshiba_ac_protocol.cpp:2:
src/esphome/components/remote_base/toshiba_ac_protocol.cpp: In member function 'virtual void esphome::remote_base::ToshibaAcProtocol::dump(const esphome::remote_base::ToshibaAcData&)':
src/esphome/components/remote_base/toshiba_ac_protocol.cpp:108:56: error: expected ')' before '__INT64'

looks like there is no __INT64 definition.

With gcc4.8 got:

Compiling .pioenvs/hipper-ir-gate/src/esphome/components/api/api_connection.cpp.o
xtensa-lx106-elf-g++: error: unrecognized command line option '-std=gnu++17'

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions