Skip to content

Instantly share code, notes, and snippets.

@myoung34
Created May 27, 2020 14:38
Show Gist options
  • Save myoung34/b65792c76fa40b03b19a73876d4cf649 to your computer and use it in GitHub Desktop.
Save myoung34/b65792c76fa40b03b19a73876d4cf649 to your computer and use it in GitHub Desktop.
In file included from /root/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/Arduino.h:259:0,
from src/esphome/core/esphal.h:3,
from src/esphome/core/helpers.h:9,
from src/esphome/components/api/util.h:3,
from src/esphome/components/api/api_message.h:4,
from src/esphome.h:2,
from src/main.cpp:3:
/root/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/pgmspace.h:16:51: error: __c causes a section type conflict with __c
#define PSTR(s) (__extension__({static const char __c[] PROGMEM = (s); &__c[0];}))
^
/root/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/WString.h:38:76: note: in definition of macro 'FPSTR'
#define FPSTR(pstr_pointer) (reinterpret_cast<const __FlashStringHelper *>(pstr_pointer))
^
/root/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/WString.h:39:34: note: in expansion of macro 'PSTR'
#define F(string_literal) (FPSTR(PSTR(string_literal)))
^
src/esphome/core/log.h:69:3: note: in expansion of macro 'F'
F(ESPHOME_LOG_COLOR_##letter "[" #letter "][%s:%03u]: " format ESPHOME_LOG_RESET_COLOR), tag, __LINE__
^
src/esphome/core/log.h:95:49: note: in expansion of macro 'ESPHOME_LOG_FORMAT'
esp_log_printf_(ESPHOME_LOG_LEVEL_DEBUG, tag, ESPHOME_LOG_FORMAT(tag, D, format), ##__VA_ARGS__)
^
src/esphome/core/log.h:157:28: note: in expansion of macro 'esph_log_d'
#define ESP_LOGD(tag, ...) esph_log_d(tag, __VA_ARGS__)
Compiling .pioenvs/matrix/libc3b/AsyncMqttClient_ID346/AsyncMqttClient/Packets/PubRecPacket.cpp.o
^
src/my_matrixled_display.h:60:7: note: in expansion of macro 'ESP_LOGD'
ESP_LOGD("MatrixLedDisplay", "%4i |%s|", row, text);
^
/root/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/pgmspace.h:16:51: note: '__c' was declared here
#define PSTR(s) (__extension__({static const char __c[] PROGMEM = (s); &__c[0];}))
^
/root/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/WString.h:38:76: note: in definition of macro 'FPSTR'
#define FPSTR(pstr_pointer) (reinterpret_cast<const __FlashStringHelper *>(pstr_pointer))
^
/root/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/WString.h:39:34: note: in expansion of macro 'PSTR'
#define F(string_literal) (FPSTR(PSTR(string_literal)))
^
src/esphome/core/log.h:69:3: note: in expansion of macro 'F'
F(ESPHOME_LOG_COLOR_##letter "[" #letter "][%s:%03u]: " format ESPHOME_LOG_RESET_COLOR), tag, __LINE__
^
src/esphome/core/log.h:95:49: note: in expansion of macro 'ESPHOME_LOG_FORMAT'
esp_log_printf_(ESPHOME_LOG_LEVEL_DEBUG, tag, ESPHOME_LOG_FORMAT(tag, D, format), ##__VA_ARGS__)
^
src/esphome/core/log.h:157:28: note: in expansion of macro 'esph_log_d'
#define ESP_LOGD(tag, ...) esph_log_d(tag, __VA_ARGS__)
^
src/main.cpp:556:11: note: in expansion of macro 'ESP_LOGD'
ESP_LOGD("main", "Displaying \"%s\"", text);
^
*** [.pioenvs/matrix/src/main.cpp.o] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment