Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Traceback (most recent call last):
- File "C:\Users\Jason\.platformio\packages\tool-esptoolpy\esptool.py", line 41, in <module>
- import esptool
- File "C:\Users\Jason\.platformio\packages\tool-esptoolpy\esptool\__init__.py", line 42, in <module>
- from esptool.bin_image import intel_hex_to_bin
- File "C:\Users\Jason\.platformio\packages\tool-esptoolpy\esptool\bin_image.py", line 16, in <module>
- from intelhex import HexRecordError, IntelHex
- ModuleNotFoundError: No module named 'intelhex'
- Compiling .pio\build\heltec_wifi_lora_32_V3\libda9\[email protected]\AsyncTCP.cpp.o
- *** [.pio\build\heltec_wifi_lora_32_V3\bootloader.bin] Error 1
- In file included from src/logger.cpp:6:
- c:\users\jason\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\include\c++\8.4.0\ctime:64:11: error: '::clock' has not been declared
- using ::clock;
- ^~~~~
- c:\users\jason\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\include\c++\8.4.0\ctime:65:11: error: '::difftime' has not been declared
- using ::difftime;
- ^~~~~~~~
- c:\users\jason\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\include\c++\8.4.0\ctime:66:11: error: '::mktime' has not been declared
- using ::mktime;
- ^~~~~~
- c:\users\jason\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\include\c++\8.4.0\ctime:67:11: error: '::time' has not been declared
- using ::time;
- ^~~~
- c:\users\jason\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\include\c++\8.4.0\ctime:68:11: error: '::asctime' has not been declared
- using ::asctime;
- ^~~~~~~
- c:\users\jason\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\include\c++\8.4.0\ctime:69:11: error: '::ctime' has not been declared
- using ::ctime;
- ^~~~~
- c:\users\jason\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\include\c++\8.4.0\ctime:70:11: error: '::gmtime' has not been declared
- using ::gmtime;
- ^~~~~~
- c:\users\jason\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\include\c++\8.4.0\ctime:71:11: error: '::localtime' has not been declared
- using ::localtime;
- ^~~~~~~~~
- c:\users\jason\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\include\c++\8.4.0\ctime:72:11: error: '::strftime' has not been declared
- using ::strftime;
- ^~~~~~~~
- src/logger.cpp: In member function 'void GatewayLogger::begin()':
- src/logger.cpp:32:18: error: 'time' was not declared in this scope
- time_t now = time(nullptr);
- ^~~~
- src/logger.cpp:32:18: note: suggested alternative: 'tone'
- time_t now = time(nullptr);
- ^~~~
- tone
- src/logger.cpp:33:21: error: 'localtime' was not declared in this scope
- struct tm* tm = localtime(&now);
- ^~~~~~~~~
- src/logger.cpp:33:21: note: suggested alternative: 'wcsftime'
- struct tm* tm = localtime(&now);
- ^~~~~~~~~
- wcsftime
- src/logger.cpp:35:61: error: invalid use of incomplete type 'struct tm'
- snprintf(prefix, sizeof(prefix), "/log_%04d%02d%02d", tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday);
- ^~
- In file included from C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Stream.h:26,
- from C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:189,
- from src/logger.h:7,
- from src/logger.cpp:3:
- C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Print.h:94:25: note: forward declaration of 'struct tm'
- size_t print(struct tm * timeinfo, const char * format = NULL);
- ^~
- src/logger.cpp:35:81: error: invalid use of incomplete type 'struct tm'
- snprintf(prefix, sizeof(prefix), "/log_%04d%02d%02d", tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday);
- ^~
- In file included from C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Stream.h:26,
- from C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:189,
- from src/logger.h:7,
- from src/logger.cpp:3:
- C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Print.h:94:25: note: forward declaration of 'struct tm'
- size_t print(struct tm * timeinfo, const char * format = NULL);
- ^~
- src/logger.cpp:35:97: error: invalid use of incomplete type 'struct tm'
- snprintf(prefix, sizeof(prefix), "/log_%04d%02d%02d", tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday);
- ^~
- In file included from C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Stream.h:26,
- from C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:189,
- from src/logger.h:7,
- from src/logger.cpp:3:
- C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Print.h:94:25: note: forward declaration of 'struct tm'
- size_t print(struct tm * timeinfo, const char * format = NULL);
- ^~
- src/logger.cpp: In member function 'void GatewayLogger::deleteOldestLogFile()':
- src/logger.cpp:85:27: error: variable 'tm tm' has initializer but incomplete type
- struct tm tm = {0};
- ^~
- src/logger.cpp:89:35: error: 'mktime' was not declared in this scope
- time_t fileTime = mktime(&tm);
- ^~~~~~
- src/logger.cpp:89:35: note: suggested alternative: 'mktemp'
- time_t fileTime = mktime(&tm);
- ^~~~~~
- mktemp
- src/logger.cpp: In member function 'void GatewayLogger::flushIfNeeded()':
- src/logger.cpp:115:18: error: 'time' was not declared in this scope
- time_t now = time(nullptr);
- ^~~~
- src/logger.cpp:115:18: note: suggested alternative: 'tone'
- time_t now = time(nullptr);
- ^~~~
- tone
- src/logger.cpp:120:25: error: 'localtime' was not declared in this scope
- struct tm* tm = localtime(&now);
- ^~~~~~~~~
- src/logger.cpp:120:25: note: suggested alternative: 'wcsftime'
- struct tm* tm = localtime(&now);
- ^~~~~~~~~
- wcsftime
- src/logger.cpp:122:65: error: invalid use of incomplete type 'struct tm'
- snprintf(prefix, sizeof(prefix), "/log_%04d%02d%02d", tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday);
- ^~
- In file included from C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Stream.h:26,
- from C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:189,
- from src/logger.h:7,
- from src/logger.cpp:3:
- C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Print.h:94:25: note: forward declaration of 'struct tm'
- size_t print(struct tm * timeinfo, const char * format = NULL);
- ^~
- src/logger.cpp:122:85: error: invalid use of incomplete type 'struct tm'
- snprintf(prefix, sizeof(prefix), "/log_%04d%02d%02d", tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday);
- ^~
- In file included from C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Stream.h:26,
- from C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:189,
- from src/logger.h:7,
- from src/logger.cpp:3:
- C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Print.h:94:25: note: forward declaration of 'struct tm'
- size_t print(struct tm * timeinfo, const char * format = NULL);
- ^~
- src/logger.cpp:122:101: error: invalid use of incomplete type 'struct tm'
- snprintf(prefix, sizeof(prefix), "/log_%04d%02d%02d", tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday);
- ^~
- In file included from C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Stream.h:26,
- from C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:189,
- from src/logger.h:7,
- from src/logger.cpp:3:
- C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Print.h:94:25: note: forward declaration of 'struct tm'
- size_t print(struct tm * timeinfo, const char * format = NULL);
- ^~
- src/logger.cpp: In member function 'void GatewayLogger::flush()':
- src/logger.cpp:185:25: error: 'localtime' was not declared in this scope
- struct tm* tm = localtime(&e.tv.tv_sec);
- ^~~~~~~~~
- src/logger.cpp:185:25: note: suggested alternative: 'wcsftime'
- struct tm* tm = localtime(&e.tv.tv_sec);
- ^~~~~~~~~
- wcsftime
- src/logger.cpp:187:15: error: invalid use of incomplete type 'struct tm'
- tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday,
- ^~
- In file included from C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Stream.h:26,
- from C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:189,
- from src/logger.h:7,
- from src/logger.cpp:3:
- C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Print.h:94:25: note: forward declaration of 'struct tm'
- size_t print(struct tm * timeinfo, const char * format = NULL);
- ^~
- src/logger.cpp:187:35: error: invalid use of incomplete type 'struct tm'
- tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday,
- ^~
- In file included from C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Stream.h:26,
- from C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:189,
- from src/logger.h:7,
- from src/logger.cpp:3:
- C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Print.h:94:25: note: forward declaration of 'struct tm'
- size_t print(struct tm * timeinfo, const char * format = NULL);
- ^~
- src/logger.cpp:187:51: error: invalid use of incomplete type 'struct tm'
- tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday,
- ^~
- In file included from C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Stream.h:26,
- from C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:189,
- from src/logger.h:7,
- from src/logger.cpp:3:
- C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Print.h:94:25: note: forward declaration of 'struct tm'
- size_t print(struct tm * timeinfo, const char * format = NULL);
- ^~
- src/logger.cpp:188:15: error: invalid use of incomplete type 'struct tm'
- tm->tm_hour, tm->tm_min, tm->tm_sec,
- ^~
- In file included from C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Stream.h:26,
- from C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:189,
- from src/logger.h:7,
- from src/logger.cpp:3:
- C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Print.h:94:25: note: forward declaration of 'struct tm'
- size_t print(struct tm * timeinfo, const char * format = NULL);
- ^~
- src/logger.cpp:188:28: error: invalid use of incomplete type 'struct tm'
- tm->tm_hour, tm->tm_min, tm->tm_sec,
- ^~
- In file included from C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Stream.h:26,
- from C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:189,
- from src/logger.h:7,
- from src/logger.cpp:3:
- C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Print.h:94:25: note: forward declaration of 'struct tm'
- size_t print(struct tm * timeinfo, const char * format = NULL);
- ^~
- src/logger.cpp:188:40: error: invalid use of incomplete type 'struct tm'
- tm->tm_hour, tm->tm_min, tm->tm_sec,
- ^~
- In file included from C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Stream.h:26,
- from C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:189,
- from src/logger.h:7,
- from src/logger.cpp:3:
- C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Print.h:94:25: note: forward declaration of 'struct tm'
- size_t print(struct tm * timeinfo, const char * format = NULL);
- ^~
- src/logger.cpp: In member function 'String GatewayLogger::currentLogFileName()':
- src/logger.cpp:219:18: error: 'time' was not declared in this scope
- time_t now = time(nullptr);
- ^~~~
- src/logger.cpp:219:18: note: suggested alternative: 'tone'
- time_t now = time(nullptr);
- ^~~~
- tone
- src/logger.cpp:220:21: error: 'localtime' was not declared in this scope
- struct tm* tm = localtime(&now);
- ^~~~~~~~~
- src/logger.cpp:220:21: note: suggested alternative: 'wcsftime'
- struct tm* tm = localtime(&now);
- ^~~~~~~~~
- wcsftime
- src/logger.cpp:223:67: error: invalid use of incomplete type 'struct tm'
- snprintf(fname, sizeof(fname), "/log_%04d%02d%02d.txt", tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday);
- ^~
- In file included from C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Stream.h:26,
- from C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:189,
- from src/logger.h:7,
- from src/logger.cpp:3:
- C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Print.h:94:25: note: forward declaration of 'struct tm'
- size_t print(struct tm * timeinfo, const char * format = NULL);
- ^~
- src/logger.cpp:223:87: error: invalid use of incomplete type 'struct tm'
- snprintf(fname, sizeof(fname), "/log_%04d%02d%02d.txt", tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday);
- ^~
- In file included from C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Stream.h:26,
- from C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:189,
- from src/logger.h:7,
- from src/logger.cpp:3:
- C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Print.h:94:25: note: forward declaration of 'struct tm'
- size_t print(struct tm * timeinfo, const char * format = NULL);
- ^~
- src/logger.cpp:223:103: error: invalid use of incomplete type 'struct tm'
- snprintf(fname, sizeof(fname), "/log_%04d%02d%02d.txt", tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday);
- ^~
- In file included from C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Stream.h:26,
- from C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:189,
- from src/logger.h:7,
- from src/logger.cpp:3:
- C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Print.h:94:25: note: forward declaration of 'struct tm'
- size_t print(struct tm * timeinfo, const char * format = NULL);
- ^~
- src/logger.cpp:225:70: error: invalid use of incomplete type 'struct tm'
- snprintf(fname, sizeof(fname), "/log_%04d%02d%02d_%u.txt", tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, logChunk);
- ^~
- In file included from C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Stream.h:26,
- from C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:189,
- from src/logger.h:7,
- from src/logger.cpp:3:
- C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Print.h:94:25: note: forward declaration of 'struct tm'
- size_t print(struct tm * timeinfo, const char * format = NULL);
- ^~
- src/logger.cpp:225:90: error: invalid use of incomplete type 'struct tm'
- snprintf(fname, sizeof(fname), "/log_%04d%02d%02d_%u.txt", tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, logChunk);
- ^~
- In file included from C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Stream.h:26,
- from C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:189,
- from src/logger.h:7,
- from src/logger.cpp:3:
- C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Print.h:94:25: note: forward declaration of 'struct tm'
- size_t print(struct tm * timeinfo, const char * format = NULL);
- ^~
- src/logger.cpp:225:106: error: invalid use of incomplete type 'struct tm'
- snprintf(fname, sizeof(fname), "/log_%04d%02d%02d_%u.txt", tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, logChunk);
- ^~
- In file included from C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Stream.h:26,
- from C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:189,
- from src/logger.h:7,
- from src/logger.cpp:3:
- C:/Users/Jason/.platformio/packages/framework-arduinoespressif32/cores/esp32/Print.h:94:25: note: forward declaration of 'struct tm'
- size_t print(struct tm * timeinfo, const char * format = NULL);
- ^~
- src/logger.cpp: In member function 'void GatewayLogger::removeOldLogs()':
- src/logger.cpp:312:18: error: 'time' was not declared in this scope
- time_t now = time(nullptr);
- ^~~~
- src/logger.cpp:312:18: note: suggested alternative: 'tone'
- time_t now = time(nullptr);
- ^~~~
- tone
- src/logger.cpp:323:27: error: variable 'tm tm' has initializer but incomplete type
- struct tm tm = {0};
- ^~
- src/logger.cpp:327:35: error: 'mktime' was not declared in this scope
- time_t fileTime = mktime(&tm);
- ^~~~~~
- src/logger.cpp:327:35: note: suggested alternative: 'mktemp'
- time_t fileTime = mktime(&tm);
- ^~~~~~
- mktemp
- *** [.pio\build\heltec_wifi_lora_32_V3\src\logger.cpp.o] Error 1
- In file included from src/shared.h:5,
- from src/mqtt.cpp:5:
- .pio/libdeps/heltec_wifi_lora_32_V3/CircularBuffer/CircularBuffer.h:1:102: note: #pragma message: WARNING: please change import directive from CircularBuffer.h to CircularBuffer.hpp
- #pragma message("WARNING: please change import directive from CircularBuffer.h to CircularBuffer.hpp")
- ^
- In file included from src/main.cpp:40:
- .pio/libdeps/heltec_wifi_lora_32_V3/CircularBuffer/CircularBuffer.h:1:102: note: #pragma message: WARNING: please change import directive from CircularBuffer.h to CircularBuffer.hpp
- #pragma message("WARNING: please change import directive from CircularBuffer.h to CircularBuffer.hpp")
- ^
- ============================================== [FAILED] Took 4.94 seconds ==============================================
- * The terminal process "C:\Users\Jason\.platformio\penv\Scripts\platformio.exe 'run'" terminated with exit code: 1.
- * Terminal will be reused by tasks, press any key to close it.
Advertisement
Add Comment
Please, Sign In to add comment