PlatformIO Community

Code inspection fails at 96%

See the title. I have a (fairly) complex ESP8266 project (running on an ESP-01 module modified with 4MB flash), but the code inspection fails at 96%. The progress bar also drastically slows down from about 91%. However, memory analysis works perfectly, and performing code analysis on another Atmega328P project works perfectly. Building and uploading also work perfectly,

Running pio check --flags “-DDEBUG cppcheck: --platform=esp8266” (from wiki) says “Error: Failed to execute check command! Exited with code 1.”

The top lines in the Errors dialog are below. I haven’t included earlier commands, or the entirety of the second line, as after the end of what I have copied it appears to all be #define arguments. I have replaced the first part of the path (the Users part) with %userprofile% for privacy.

Error: Checking esp8266 > cppcheck (platform: espressif8266; framework: arduino; board: esp01_1m)
[dashed line here breaks formatting]
%userprofile%\.platformio\packages\tool-cppcheck\cppcheck --addon-python=%userprofile%\.platformio\penv\scripts\python.exe --error-exitcode=3 --verbose --template=“severity={severity}<&PIO&>message={message}<&PIO&>file={file}<&PIO&>line={line}<&PIO&>column={column}<&PIO&>callstack={callstack}<&PIO&>cwe={cwe}<&PIO&>id={id}” --inline-suppr --platform=unspecified --enable=warning,style,performance,portability,unusedFunction --language=c++ --std=c++11 -D blah blah blah

Can you open a CLI and execute pio check --skip-packages?

Running that works perfectly, although informs me of a few more issues than I’d like to be there…

However, putting it into check_flags doesn’t solve the issue, running it via PIO Home. platformio.ini is below. [edit: Sorry for the formatting, apparently <code> tags don’t work the way I expected]

; PlatformIO Project Configuration File
;
;   Build options: build flags, source filter
;   Upload options: custom upload port, speed and extra flags
;   Library options: dependencies, extra library storages
;   Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; `https://docs.platformio.org/page/projectconf.html`
[platformio]
default_envs = esp8266ota
[env:esp8266]
build_type = debug
platform = espressif8266
framework = arduino
monitor_speed = 115200
board = esp01_1m
board_build.ldscript = eagle.flash.4m2m.ld
board_build.flash_mode = qio
board_build.filesystem = littlefs
upload_speed = 3000000
monitor_filters = esp8266_exception_decoder, default
monitor_port = COM3
upload_protocol = esptool
upload_port = COM3
check_flags =
    --skip-packages
lib_deps = 
    https://github.com/me-no-dev/ESPAsyncWebServer
    fastled/FastLED@^3.3.3
    bblanchon/ArduinoJson@^6.17.2

[env:esp8266ota]
build_type = debug
platform = espressif8266
framework = arduino
monitor_speed = 115200
board = esp01_1m
board_build.ldscript = eagle.flash.4m2m.ld
board_build.flash_mode = qio
board_build.filesystem = littlefs
upload_speed = 3000000
monitor_filters = esp8266_exception_decoder, default
monitor_port = COM3
upload_protocol = espota
upload_port = [removed ]
check_flags =
    --skip-packages
upload_flags = 
    --auth=""
    --port=38266
lib_deps = 
    https://github.com/me-no-dev/ESPAsyncWebServer
    fastled/FastLED@^3.3.3
    bblanchon/ArduinoJson@^6.17.2</code>

Just testing - with the changed platformio.ini, I get “Error: Failed to execute check command! Exited with code 1.” Removing the check_flags option fixes it.

Mhm I don’t think you can do it check_flags, because that passes on flags to the cppcheck invocation, but you want PlatformIO itself to behave differenty with the --skip-packages option.

Does this also happen for the most basic Esp8266 projects? Does it give you an exact error line where it failed if you run pio check -v?

Running pio check -v behaves normally. From the much shorter logs from a brand new ESP-01 1M project, the error appears to be here: %userprofile%\.platformio\packages\toolchain-xtensa\xtensa-lx106-elf\include\c++\4.8.2\bits\random.h:69. The full output from the new project is as follows:

Error: Checking esp01_1m > cppcheck (platform: espressif8266; board: esp01_1m; framework: arduino)

%userprofile%\.platformio\packages\tool-cppcheck\cppcheck --addon-python=%userprofile%\penv\scripts\python.exe --error-exitcode=3 --verbose --template="severity={severity}<&PIO&>message={message}<&PIO&>file={file}<&PIO&>line={line}<&PIO&>column={column}<&PIO&>callstack={callstack}<&PIO&>cwe={cwe}<&PIO&>id={id}" --inline-suppr --platform=unspecified --enable=warning,style,performance,portability,unusedFunction --language=c++ --std=c++11 -DPLATFORMIO=50101 -DESP8266 -DARDUINO_ARCH_ESP8266 -DARDUINO_ESP8266_ESP01 -DF_CPU=80000000L -D__ets__ -DICACHE_FLASH -DARDUINO=10805 -DARDUINO_BOARD="PLATFORMIO_ESP01_1M" -DFLASHMODE_QIO -DLWIP_OPEN_SRC -DNONOSDK22x_190703=1 -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DVTABLES_IN_FLASH -D__DBL_MIN_EXP__=(-1021) -D__UINT_LEAST16_MAX__=65535 -D__ATOMIC_ACQUIRE=2 -D__FLT_MIN__=1.1754943508222875e-38F -D__UINT_LEAST8_TYPE__=unsigned char -D__INTMAX_C(c)=c ## LL -D__CHAR_BIT__=8 -D__UINT8_MAX__=255 -D__WINT_MAX__=4294967295U -D__ORDER_LITTLE_ENDIAN__=1234 -D__SIZE_MAX__=4294967295U -D__WCHAR_MAX__=65535 -D__DBL_DENORM_MIN__=double(4.9406564584124654e-324L) -D__GCC_ATOMIC_CHAR_LOCK_FREE=1 -D__FLT_EVAL_METHOD__=0 -D__GCC_ATOMIC_CHAR32_T_LOCK_FREE=1 -D__UINT_FAST64_MAX__=18446744073709551615ULL -D__SIG_ATOMIC_TYPE__=int -D__DBL_MIN_10_EXP__=(-307) -D__FINITE_MATH_ONLY__=0 -D__GNUC_PATCHLEVEL__=2 -D__UINT_FAST8_MAX__=4294967295U -D__DEC64_MAX_EXP__=385 -D__INT8_C(c)=c -D__UINT_LEAST64_MAX__=18446744073709551615ULL -D__SHRT_MAX__=32767 -D__LDBL_MAX__=1.7976931348623157e+308L -D__UINT_LEAST8_MAX__=255 -D__GCC_ATOMIC_BOOL_LOCK_FREE=1 -D__UINTMAX_TYPE__=long long unsigned int -D__DEC32_EPSILON__=1E-6DF -D__CHAR_UNSIGNED__=1 -D__UINT32_MAX__=4294967295UL -D__GXX_EXPERIMENTAL_CXX0X__=1 -D__LDBL_MAX_EXP__=1024 -D__WINT_MIN__=0U -D__SCHAR_MAX__=127 -D__WCHAR_MIN__=0 -D__INT64_C(c)=c ## LL -D__DBL_DIG__=15 -D__GCC_ATOMIC_POINTER_LOCK_FREE=1 -D__XTENSA_CALL0_ABI__=1 -D__SIZEOF_INT__=4 -D__SIZEOF_POINTER__=4 -D__GCC_ATOMIC_CHAR16_T_LOCK_FREE=1 -D__USER_LABEL_PREFIX__ -D__STDC_HOSTED__=1 -D__LDBL_HAS_INFINITY__=1 -D__XTENSA_EL__=1 -D__FLT_EPSILON__=1.1920928955078125e-7F -D__GXX_WEAK__=1 -D__LDBL_MIN__=2.2250738585072014e-308L -D__DEC32_MAX__=9.999999E96DF -D__INT32_MAX__=2147483647L -D__SIZEOF_LONG__=4 -D__UINT16_C(c)=c -D__DECIMAL_DIG__=17 -D__LDBL_HAS_QUIET_NAN__=1 -D__GNUC__=4 -D__FLT_HAS_DENORM__=1 -D__SIZEOF_LONG_DOUBLE__=8 -D__BIGGEST_ALIGNMENT__=16 -D__DBL_MAX__=double(1.7976931348623157e+308L) -D__INT_FAST32_MAX__=2147483647 -D__DBL_HAS_INFINITY__=1 -D__INT64_MAX__=9223372036854775807LL -D__DEC32_MIN_EXP__=(-94) -D__INT_FAST16_TYPE__=int -D__STRICT_ANSI__=1 -D__LDBL_HAS_DENORM__=1 -D__cplusplus=201103L -D__DEC128_MAX__=9.999999999999999999999999999999999E6144DL -D__INT_LEAST32_MAX__=2147483647L -D__DEC32_MIN__=1E-95DF -D__DEPRECATED=1 -D__DBL_MAX_EXP__=1024 -D__DEC128_EPSILON__=1E-33DL -D__PTRDIFF_MAX__=2147483647 -D__GNUG__=4 -D__LONG_LONG_MAX__=9223372036854775807LL -D__SIZEOF_SIZE_T__=4 -D__SIZEOF_WINT_T__=4 -D__GXX_ABI_VERSION=1002 -D__FLT_MIN_EXP__=(-125) -D__INT_FAST64_TYPE__=long long int -D__DBL_MIN__=double(2.2250738585072014e-308L) -D__FLT_MIN_10_EXP__=(-37) -D__DEC128_MIN__=1E-6143DL -D__REGISTER_PREFIX__ -D__UINT16_MAX__=65535 -D__DBL_HAS_DENORM__=1 -D__UINT8_TYPE__=unsigned char -D__NO_INLINE__=1 -D__FLT_MANT_DIG__=24 -D__VERSION__="4.8.2" -D__UINT64_C(c)=c ## ULL -D__XTENSA_SOFT_FLOAT__=1 -D__GCC_ATOMIC_INT_LOCK_FREE=1 -D__FLOAT_WORD_ORDER__=__ORDER_LITTLE_ENDIAN__ -D__INT32_C(c)=c ## L -D__DEC64_EPSILON__=1E-15DD -D__ORDER_PDP_ENDIAN__=3412 -D__DEC128_MIN_EXP__=(-6142) -D__INT_FAST32_TYPE__=int -D__UINT_LEAST16_TYPE__=short unsigned int -D__INT16_MAX__=32767 -D__SIZE_TYPE__=unsigned int -D__UINT64_MAX__=18446744073709551615ULL -D__INT8_TYPE__=signed char -D__ELF__=1 -D__xtensa__=1 -D__FLT_RADIX__=2 -D__INT_LEAST16_TYPE__=short int -D__LDBL_EPSILON__=2.2204460492503131e-16L -D__UINTMAX_C(c)=c ## ULL -D__SIG_ATOMIC_MAX__=2147483647 -D__GCC_ATOMIC_WCHAR_T_LOCK_FREE=1 -D__SIZEOF_PTRDIFF_T__=4 -D__DEC32_SUBNORMAL_MIN__=0.000001E-95DF -D__INT_FAST16_MAX__=2147483647 -D__UINT_FAST32_MAX__=4294967295U -D__UINT_LEAST64_TYPE__=long long unsigned int -D__FLT_HAS_QUIET_NAN__=1 -D__FLT_MAX_10_EXP__=38 -D__LONG_MAX__=2147483647L -D__DEC128_SUBNORMAL_MIN__=0.000000000000000000000000000000001E-6143DL -D__FLT_HAS_INFINITY__=1 -D__UINT_FAST16_TYPE__=unsigned int -D__DEC64_MAX__=9.999999999999999E384DD -D__CHAR16_TYPE__=short unsigned int -D__PRAGMA_REDEFINE_EXTNAME=1 -D__INT_LEAST16_MAX__=32767 -D__DEC64_MANT_DIG__=16 -D__UINT_LEAST32_MAX__=4294967295UL -D__GCC_ATOMIC_LONG_LOCK_FREE=1 -D__INT_LEAST64_TYPE__=long long int -D__INT16_TYPE__=short int -D__INT_LEAST8_TYPE__=signed char -D__DEC32_MAX_EXP__=97 -D__INT_FAST8_MAX__=2147483647 -D__INTPTR_MAX__=2147483647 -D__LDBL_MANT_DIG__=53 -D__DBL_HAS_QUIET_NAN__=1 -D__SIG_ATOMIC_MIN__=(-__SIG_ATOMIC_MAX__ - 1) -D__INTPTR_TYPE__=int -D__UINT16_TYPE__=short unsigned int -D__WCHAR_TYPE__=short unsigned int -D__SIZEOF_FLOAT__=4 -D__UINTPTR_MAX__=4294967295U -D__DEC64_MIN_EXP__=(-382) -D__INT_FAST64_MAX__=9223372036854775807LL -D__GCC_ATOMIC_TEST_AND_SET_TRUEVAL=1 -D__FLT_DIG__=6 -D__UINT_FAST64_TYPE__=long long unsigned int -D__INT_MAX__=2147483647 -D__INT64_TYPE__=long long int -D__FLT_MAX_EXP__=128 -D__DBL_MANT_DIG__=53 -D__INT_LEAST64_MAX__=9223372036854775807LL -D__DEC64_MIN__=1E-383DD -D__WINT_TYPE__=unsigned int -D__UINT_LEAST32_TYPE__=long unsigned int -D__SIZEOF_SHORT__=2 -D__LDBL_MIN_EXP__=(-1021) -D__INT_LEAST8_MAX__=127 -D__WCHAR_UNSIGNED__=1 -D__LDBL_MAX_10_EXP__=308 -D__ATOMIC_RELAXED=0 -D__DBL_EPSILON__=double(2.2204460492503131e-16L) -D__UINT8_C(c)=c -D__INT_LEAST32_TYPE__=long int -D__SIZEOF_WCHAR_T__=2 -D__UINT64_TYPE__=long long unsigned int -D__INT_FAST8_TYPE__=int -D__GNUC_STDC_INLINE__=1 -D__DBL_DECIMAL_DIG__=17 -D__DEC_EVAL_METHOD__=2 -D__XTENSA__=1 -D__ORDER_BIG_ENDIAN__=4321 -D__UINT32_C(c)=c ## UL -D__INTMAX_MAX__=9223372036854775807LL -D__BYTE_ORDER__=__ORDER_LITTLE_ENDIAN__ -D__FLT_DENORM_MIN__=1.4012984643248171e-45F -D__INT8_MAX__=127 -D__UINT_FAST32_TYPE__=unsigned int -D__CHAR32_TYPE__=long unsigned int -D__FLT_MAX__=3.4028234663852886e+38F -D__INT32_TYPE__=long int -D__SIZEOF_DOUBLE__=8 -D__INTMAX_TYPE__=long long int -D__DEC128_MAX_EXP__=6145 -D__ATOMIC_CONSUME=1 -D__GNUC_MINOR__=8 -D__UINTMAX_MAX__=18446744073709551615ULL -D__DEC32_MANT_DIG__=7 -D__DBL_MAX_10_EXP__=308 -D__LDBL_DENORM_MIN__=4.9406564584124654e-324L -D__INT16_C(c)=c -D__STDC__=1 -D__PTRDIFF_TYPE__=int -D__ATOMIC_SEQ_CST=5 -D__UINT32_TYPE__=long unsigned int -D__UINTPTR_TYPE__=unsigned int -D__DEC64_SUBNORMAL_MIN__=0.000000000000001E-383DD -D__DEC128_MANT_DIG__=34 -D__LDBL_MIN_10_EXP__=(-307) -D__SIZEOF_LONG_LONG__=8 -D__GCC_ATOMIC_LLONG_LOCK_FREE=1 -D__LDBL_DIG__=15 -D__FLT_DECIMAL_DIG__=9 -D__UINT_FAST16_MAX__=4294967295U -D__GCC_ATOMIC_SHORT_LOCK_FREE=1 -D__UINT_FAST8_TYPE__=unsigned int -D__ATOMIC_ACQ_REL=4 -D__ATOMIC_RELEASE=3 --includes-file=%userprofile%\AppData\Local\Temp\tmp4g_zi_h8 "%userprofile%\OneDrive\Documents\PlatformIO\Projects\ESP8266 Testing\src\main.cpp"
Checking %userprofile%\OneDrive\Documents\PlatformIO\Projects\ESP8266 Testing\src\main.cpp ...

Defines:PLATFORMIO=50101;ESP8266=1;ARDUINO_ARCH_ESP8266=1;ARDUINO_ESP8266_ESP01=1;F_CPU=80000000L;__ets__=1;ICACHE_FLASH=1;ARDUINO=10805;ARDUINO_BOARD="PLATFORMIO_ESP01_1M";FLASHMODE_QIO=1;LWIP_OPEN_SRC=1;NONOSDK22x_190703=1;TCP_MSS=536;LWIP_FEATURES=1;LWIP_IPV6=0;VTABLES_IN_FLASH=1;__DBL_MIN_EXP__=(-1021);__UINT_LEAST16_MAX__=65535;__ATOMIC_ACQUIRE=2;__FLT_MIN__=1.1754943508222875e-38F;__UINT_LEAST8_TYPE__=unsigned char;__INTMAX_C(c)=c ## LL;__CHAR_BIT__=8;__UINT8_MAX__=255;__WINT_MAX__=4294967295U;__ORDER_LITTLE_ENDIAN__=1234;__SIZE_MAX__=4294967295U;__WCHAR_MAX__=65535;__DBL_DENORM_MIN__=double(4.9406564584124654e-324L);__GCC_ATOMIC_CHAR_LOCK_FREE=1;__FLT_EVAL_METHOD__=0;__GCC_ATOMIC_CHAR32_T_LOCK_FREE=1;__UINT_FAST64_MAX__=18446744073709551615ULL;__SIG_ATOMIC_TYPE__=int;__DBL_MIN_10_EXP__=(-307);__FINITE_MATH_ONLY__=0;__GNUC_PATCHLEVEL__=2;__UINT_FAST8_MAX__=4294967295U;__DEC64_MAX_EXP__=385;__INT8_C(c)=c;__UINT_LEAST64_MAX__=18446744073709551615ULL;__SHRT_MAX__=32767;__LDBL_MAX__=1.7976931348623157e+308L;__UINT_LEAST8_MAX__=255;__GCC_ATOMIC_BOOL_LOCK_FREE=1;__UINTMAX_TYPE__=long long unsigned int;__DEC32_EPSILON__=1E-6DF;__CHAR_UNSIGNED__=1;__UINT32_MAX__=4294967295UL;__GXX_EXPERIMENTAL_CXX0X__=1;__LDBL_MAX_EXP__=1024;__WINT_MIN__=0U;__SCHAR_MAX__=127;__WCHAR_MIN__=0;__INT64_C(c)=c ## LL;__DBL_DIG__=15;__GCC_ATOMIC_POINTER_LOCK_FREE=1;__XTENSA_CALL0_ABI__=1;__SIZEOF_INT__=4;__SIZEOF_POINTER__=4;__GCC_ATOMIC_CHAR16_T_LOCK_FREE=1;__USER_LABEL_PREFIX__=1;__STDC_HOSTED__=1;__LDBL_HAS_INFINITY__=1;__XTENSA_EL__=1;__FLT_EPSILON__=1.1920928955078125e-7F;__GXX_WEAK__=1;__LDBL_MIN__=2.2250738585072014e-308L;__DEC32_MAX__=9.999999E96DF;__INT32_MAX__=2147483647L;__SIZEOF_LONG__=4;__UINT16_C(c)=c;__DECIMAL_DIG__=17;__LDBL_HAS_QUIET_NAN__=1;__GNUC__=4;__FLT_HAS_DENORM__=1;__SIZEOF_LONG_DOUBLE__=8;__BIGGEST_ALIGNMENT__=16;__DBL_MAX__=double(1.7976931348623157e+308L);__INT_FAST32_MAX__=2147483647;__DBL_HAS_INFINITY__=1;__INT64_MAX__=9223372036854775807LL;__DEC32_MIN_EXP__=(-94);__INT_FAST16_TYPE__=int;__STRICT_ANSI__=1;__LDBL_HAS_DENORM__=1;__cplusplus=201103L;__DEC128_MAX__=9.999999999999999999999999999999999E6144DL;__INT_LEAST32_MAX__=2147483647L;__DEC32_MIN__=1E-95DF;__DEPRECATED=1;__DBL_MAX_EXP__=1024;__DEC128_EPSILON__=1E-33DL;__PTRDIFF_MAX__=2147483647;__GNUG__=4;__LONG_LONG_MAX__=9223372036854775807LL;__SIZEOF_SIZE_T__=4;__SIZEOF_WINT_T__=4;__GXX_ABI_VERSION=1002;__FLT_MIN_EXP__=(-125);__INT_FAST64_TYPE__=long long int;__DBL_MIN__=double(2.2250738585072014e-308L);__FLT_MIN_10_EXP__=(-37);__DEC128_MIN__=1E-6143DL;__REGISTER_PREFIX__=1;__UINT16_MAX__=65535;__DBL_HAS_DENORM__=1;__UINT8_TYPE__=unsigned char;__NO_INLINE__=1;__FLT_MANT_DIG__=24;__VERSION__="4.8.2";__UINT64_C(c)=c ## ULL;__XTENSA_SOFT_FLOAT__=1;__GCC_ATOMIC_INT_LOCK_FREE=1;__FLOAT_WORD_ORDER__=__ORDER_LITTLE_ENDIAN__;__INT32_C(c)=c ## L;__DEC64_EPSILON__=1E-15DD;__ORDER_PDP_ENDIAN__=3412;__DEC128_MIN_EXP__=(-6142);__INT_FAST32_TYPE__=int;__UINT_LEAST16_TYPE__=short unsigned int;__INT16_MAX__=32767;__SIZE_TYPE__=unsigned int;__UINT64_MAX__=18446744073709551615ULL;__INT8_TYPE__=signed char;__ELF__=1;__xtensa__=1;__FLT_RADIX__=2;__INT_LEAST16_TYPE__=short int;__LDBL_EPSILON__=2.2204460492503131e-16L;__UINTMAX_C(c)=c ## ULL;__SIG_ATOMIC_MAX__=2147483647;__GCC_ATOMIC_WCHAR_T_LOCK_FREE=1;__SIZEOF_PTRDIFF_T__=4;__DEC32_SUBNORMAL_MIN__=0.000001E-95DF;__INT_FAST16_MAX__=2147483647;__UINT_FAST32_MAX__=4294967295U;__UINT_LEAST64_TYPE__=long long unsigned int;__FLT_HAS_QUIET_NAN__=1;__FLT_MAX_10_EXP__=38;__LONG_MAX__=2147483647L;__DEC128_SUBNORMAL_MIN__=0.000000000000000000000000000000001E-6143DL;__FLT_HAS_INFINITY__=1;__UINT_FAST16_TYPE__=unsigned int;__DEC64_MAX__=9.999999999999999E384DD;__CHAR16_TYPE__=short unsigned int;__PRAGMA_REDEFINE_EXTNAME=1;__INT_LEAST16_MAX__=32767;__DEC64_MANT_DIG__=16;__UINT_LEAST32_MAX__=4294967295UL;__GCC_ATOMIC_LONG_LOCK_FREE=1;__INT_LEAST64_TYPE__=long long int;__INT16_TYPE__=short int;__INT_LEAST8_TYPE__=signed char;__DEC32_MAX_EXP__=97;__INT_FAST8_MAX__=2147483647;__INTPTR_MAX__=2147483647;__LDBL_MANT_DIG__=53;__DBL_HAS_QUIET_NAN__=1;__SIG_ATOMIC_MIN__=(-__SIG_ATOMIC_MAX__ - 1);__INTPTR_TYPE__=int;__UINT16_TYPE__=short unsigned int;__WCHAR_TYPE__=short unsigned int;__SIZEOF_FLOAT__=4;__UINTPTR_MAX__=4294967295U;__DEC64_MIN_EXP__=(-382);__INT_FAST64_MAX__=9223372036854775807LL;__GCC_ATOMIC_TEST_AND_SET_TRUEVAL=1;__FLT_DIG__=6;__UINT_FAST64_TYPE__=long long unsigned int;__INT_MAX__=2147483647;__INT64_TYPE__=long long int;__FLT_MAX_EXP__=128;__DBL_MANT_DIG__=53;__INT_LEAST64_MAX__=9223372036854775807LL;__DEC64_MIN__=1E-383DD;__WINT_TYPE__=unsigned int;__UINT_LEAST32_TYPE__=long unsigned int;__SIZEOF_SHORT__=2;__LDBL_MIN_EXP__=(-1021);__INT_LEAST8_MAX__=127;__WCHAR_UNSIGNED__=1;__LDBL_MAX_10_EXP__=308;__ATOMIC_RELAXED=0;__DBL_EPSILON__=double(2.2204460492503131e-16L);__UINT8_C(c)=c;__INT_LEAST32_TYPE__=long int;__SIZEOF_WCHAR_T__=2;__UINT64_TYPE__=long long unsigned int;__INT_FAST8_TYPE__=int;__GNUC_STDC_INLINE__=1;__DBL_DECIMAL_DIG__=17;__DEC_EVAL_METHOD__=2;__XTENSA__=1;__ORDER_BIG_ENDIAN__=4321;__UINT32_C(c)=c ## UL;__INTMAX_MAX__=9223372036854775807LL;__BYTE_ORDER__=__ORDER_LITTLE_ENDIAN__;__FLT_DENORM_MIN__=1.4012984643248171e-45F;__INT8_MAX__=127;__UINT_FAST32_TYPE__=unsigned int;__CHAR32_TYPE__=long unsigned int;__FLT_MAX__=3.4028234663852886e+38F;__INT32_TYPE__=long int;__SIZEOF_DOUBLE__=8;__INTMAX_TYPE__=long long int;__DEC128_MAX_EXP__=6145;__ATOMIC_CONSUME=1;__GNUC_MINOR__=8;__UINTMAX_MAX__=18446744073709551615ULL;__DEC32_MANT_DIG__=7;__DBL_MAX_10_EXP__=308;__LDBL_DENORM_MIN__=4.9406564584124654e-324L;__INT16_C(c)=c;__STDC__=1;__PTRDIFF_TYPE__=int;__ATOMIC_SEQ_CST=5;__UINT32_TYPE__=long unsigned int;__UINTPTR_TYPE__=unsigned int;__DEC64_SUBNORMAL_MIN__=0.000000000000001E-383DD;__DEC128_MANT_DIG__=34;__LDBL_MIN_10_EXP__=(-307);__SIZEOF_LONG_LONG__=8;__GCC_ATOMIC_LLONG_LOCK_FREE=1;__LDBL_DIG__=15;__FLT_DECIMAL_DIG__=9;__UINT_FAST16_MAX__=4294967295U;__GCC_ATOMIC_SHORT_LOCK_FREE=1;__UINT_FAST8_TYPE__=unsigned int;__ATOMIC_ACQ_REL=4;__ATOMIC_RELEASE=3

Undefines:

Includes: -I%userprofile%/OneDrive/Documents/PlatformIO/Projects/ESP8266 Testing/include/ -I%userprofile%/OneDrive/Documents/PlatformIO/Projects/ESP8266 Testing/src/ -I%userprofile%/.platformio/packages/framework-arduinoespressif8266/tools/sdk/include/ -I%userprofile%/.platformio/packages/framework-arduinoespressif8266/tools/sdk/libc/xtensa-lx106-elf/include/ -I%userprofile%/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/ -I%userprofile%/.platformio/packages/framework-arduinoespressif8266/tools/sdk/lwip2/include/ -I%userprofile%/.platformio/packages/framework-arduinoespressif8266/variants/generic/ -I%userprofile%/.platformio/packages/framework-arduinoespressif8266/libraries/ArduinoOTA/ -I%userprofile%/.platformio/packages/framework-arduinoespressif8266/libraries/DNSServer/src/ -I%userprofile%/.platformio/packages/framework-arduinoespressif8266/libraries/EEPROM/ -I%userprofile%/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266AVRISP/src/ -I%userprofile%/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266HTTPClient/src/ -I%userprofile%/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266HTTPUpdateServer/src/ -I%userprofile%/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266LLMNR/ -I%userprofile%/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266NetBIOS/ -I%userprofile%/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266SSDP/ -I%userprofile%/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266SdFat/src/ -I%userprofile%/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WebServer/src/ -I%userprofile%/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ -I%userprofile%/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFiMesh/src/ -I%userprofile%/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266httpUpdate/src/ -I%userprofile%/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266mDNS/src/ -I%userprofile%/.platformio/packages/framework-arduinoespressif8266/libraries/Ethernet/src/ -I%userprofile%/.platformio/packages/framework-arduinoespressif8266/libraries/GDBStub/src/ -I%userprofile%/.platformio/packages/framework-arduinoespressif8266/libraries/Hash/src/ -I%userprofile%/.platformio/packages/framework-arduinoespressif8266/libraries/LittleFS/src/ -I%userprofile%/.platformio/packages/framework-arduinoespressif8266/libraries/SD/src/ -I%userprofile%/.platformio/packages/framework-arduinoespressif8266/libraries/SDFS/src/ -I%userprofile%/.platformio/packages/framework-arduinoespressif8266/libraries/SPI/ -I%userprofile%/.platformio/packages/framework-arduinoespressif8266/libraries/SPISlave/src/ -I%userprofile%/.platformio/packages/framework-arduinoespressif8266/libraries/Servo/src/ -I%userprofile%/.platformio/packages/framework-arduinoespressif8266/libraries/SoftwareSerial/src/ -I%userprofile%/.platformio/packages/framework-arduinoespressif8266/libraries/TFT_Touch_Shield_V2/ -I%userprofile%/.platformio/packages/framework-arduinoespressif8266/libraries/Ticker/src/ -I%userprofile%/.platformio/packages/framework-arduinoespressif8266/libraries/Wire/ -I%userprofile%/.platformio/packages/framework-arduinoespressif8266/libraries/esp8266/src/ -I%userprofile%/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/ -I%userprofile%/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/xtensa-lx106-elf/ -I%userprofile%/.platformio/packages/toolchain-xtensa/lib/gcc/xtensa-lx106-elf/4.8.2/include/ -I%userprofile%/.platformio/packages/toolchain-xtensa/lib/gcc/xtensa-lx106-elf/4.8.2/include-fixed/ -I%userprofile%/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/

Platform:Unspecified

Checking %userprofile%\OneDrive\Documents\PlatformIO\Projects\ESP8266 Testing\src\main.cpp: PLATFORMIO=50101;ESP8266=1;ARDUINO_ARCH_ESP8266=1;ARDUINO_ESP8266_ESP01=1;F_CPU=80000000L;__ets__=1;ICACHE_FLASH=1;ARDUINO=10805;ARDUINO_BOARD="PLATFORMIO_ESP01_1M";FLASHMODE_QIO=1;LWIP_OPEN_SRC=1;NONOSDK22x_190703=1;TCP_MSS=536;LWIP_FEATURES=1;LWIP_IPV6=0;VTABLES_IN_FLASH=1;__DBL_MIN_EXP__=(-1021);__UINT_LEAST16_MAX__=65535;__ATOMIC_ACQUIRE=2;__FLT_MIN__=1.1754943508222875e-38F;__UINT_LEAST8_TYPE__=unsigned char;__INTMAX_C(c)=c ## LL;__CHAR_BIT__=8;__UINT8_MAX__=255;__WINT_MAX__=4294967295U;__ORDER_LITTLE_ENDIAN__=1234;__SIZE_MAX__=4294967295U;__WCHAR_MAX__=65535;__DBL_DENORM_MIN__=double(4.9406564584124654e-324L);__GCC_ATOMIC_CHAR_LOCK_FREE=1;__FLT_EVAL_METHOD__=0;__GCC_ATOMIC_CHAR32_T_LOCK_FREE=1;__UINT_FAST64_MAX__=18446744073709551615ULL;__SIG_ATOMIC_TYPE__=int;__DBL_MIN_10_EXP__=(-307);__FINITE_MATH_ONLY__=0;__GNUC_PATCHLEVEL__=2;__UINT_FAST8_MAX__=4294967295U;__DEC64_MAX_EXP__=385;__INT8_C(c)=c;__UINT_LEAST64_MAX__=18446744073709551615ULL;__SHRT_MAX__=32767;__LDBL_MAX__=1.7976931348623157e+308L;__UINT_LEAST8_MAX__=255;__GCC_ATOMIC_BOOL_LOCK_FREE=1;__UINTMAX_TYPE__=long long unsigned int;__DEC32_EPSILON__=1E-6DF;__CHAR_UNSIGNED__=1;__UINT32_MAX__=4294967295UL;__GXX_EXPERIMENTAL_CXX0X__=1;__LDBL_MAX_EXP__=1024;__WINT_MIN__=0U;__SCHAR_MAX__=127;__WCHAR_MIN__=0;__INT64_C(c)=c ## LL;__DBL_DIG__=15;__GCC_ATOMIC_POINTER_LOCK_FREE=1;__XTENSA_CALL0_ABI__=1;__SIZEOF_INT__=4;__SIZEOF_POINTER__=4;__GCC_ATOMIC_CHAR16_T_LOCK_FREE=1;__USER_LABEL_PREFIX__=1;__STDC_HOSTED__=1;__LDBL_HAS_INFINITY__=1;__XTENSA_EL__=1;__FLT_EPSILON__=1.1920928955078125e-7F;__GXX_WEAK__=1;__LDBL_MIN__=2.2250738585072014e-308L;__DEC32_MAX__=9.999999E96DF;__INT32_MAX__=2147483647L;__SIZEOF_LONG__=4;__UINT16_C(c)=c;__DECIMAL_DIG__=17;__LDBL_HAS_QUIET_NAN__=1;__GNUC__=4;__FLT_HAS_DENORM__=1;__SIZEOF_LONG_DOUBLE__=8;__BIGGEST_ALIGNMENT__=16;__DBL_MAX__=double(1.7976931348623157e+308L);__INT_FAST32_MAX__=2147483647;__DBL_HAS_INFINITY__=1;__INT64_MAX__=9223372036854775807LL;__DEC32_MIN_EXP__=(-94);__INT_FAST16_TYPE__=int;__STRICT_ANSI__=1;__LDBL_HAS_DENORM__=1;__cplusplus=201103L;__DEC128_MAX__=9.999999999999999999999999999999999E6144DL;__INT_LEAST32_MAX__=2147483647L;__DEC32_MIN__=1E-95DF;__DEPRECATED=1;__DBL_MAX_EXP__=1024;__DEC128_EPSILON__=1E-33DL;__PTRDIFF_MAX__=2147483647;__GNUG__=4;__LONG_LONG_MAX__=9223372036854775807LL;__SIZEOF_SIZE_T__=4;__SIZEOF_WINT_T__=4;__GXX_ABI_VERSION=1002;__FLT_MIN_EXP__=(-125);__INT_FAST64_TYPE__=long long int;__DBL_MIN__=double(2.2250738585072014e-308L);__FLT_MIN_10_EXP__=(-37);__DEC128_MIN__=1E-6143DL;__REGISTER_PREFIX__=1;__UINT16_MAX__=65535;__DBL_HAS_DENORM__=1;__UINT8_TYPE__=unsigned char;__NO_INLINE__=1;__FLT_MANT_DIG__=24;__VERSION__="4.8.2";__UINT64_C(c)=c ## ULL;__XTENSA_SOFT_FLOAT__=1;__GCC_ATOMIC_INT_LOCK_FREE=1;__FLOAT_WORD_ORDER__=__ORDER_LITTLE_ENDIAN__;__INT32_C(c)=c ## L;__DEC64_EPSILON__=1E-15DD;__ORDER_PDP_ENDIAN__=3412;__DEC128_MIN_EXP__=(-6142);__INT_FAST32_TYPE__=int;__UINT_LEAST16_TYPE__=short unsigned int;__INT16_MAX__=32767;__SIZE_TYPE__=unsigned int;__UINT64_MAX__=18446744073709551615ULL;__INT8_TYPE__=signed char;__ELF__=1;__xtensa__=1;__FLT_RADIX__=2;__INT_LEAST16_TYPE__=short int;__LDBL_EPSILON__=2.2204460492503131e-16L;__UINTMAX_C(c)=c ## ULL;__SIG_ATOMIC_MAX__=2147483647;__GCC_ATOMIC_WCHAR_T_LOCK_FREE=1;__SIZEOF_PTRDIFF_T__=4;__DEC32_SUBNORMAL_MIN__=0.000001E-95DF;__INT_FAST16_MAX__=2147483647;__UINT_FAST32_MAX__=4294967295U;__UINT_LEAST64_TYPE__=long long unsigned int;__FLT_HAS_QUIET_NAN__=1;__FLT_MAX_10_EXP__=38;__LONG_MAX__=2147483647L;__DEC128_SUBNORMAL_MIN__=0.000000000000000000000000000000001E-6143DL;__FLT_HAS_INFINITY__=1;__UINT_FAST16_TYPE__=unsigned int;__DEC64_MAX__=9.999999999999999E384DD;__CHAR16_TYPE__=short unsigned int;__PRAGMA_REDEFINE_EXTNAME=1;__INT_LEAST16_MAX__=32767;__DEC64_MANT_DIG__=16;__UINT_LEAST32_MAX__=4294967295UL;__GCC_ATOMIC_LONG_LOCK_FREE=1;__INT_LEAST64_TYPE__=long long int;__INT16_TYPE__=short int;__INT_LEAST8_TYPE__=signed char;__DEC32_MAX_EXP__=97;__INT_FAST8_MAX__=2147483647;__INTPTR_MAX__=2147483647;__LDBL_MANT_DIG__=53;__DBL_HAS_QUIET_NAN__=1;__SIG_ATOMIC_MIN__=(-__SIG_ATOMIC_MAX__ - 1);__INTPTR_TYPE__=int;__UINT16_TYPE__=short unsigned int;__WCHAR_TYPE__=short unsigned int;__SIZEOF_FLOAT__=4;__UINTPTR_MAX__=4294967295U;__DEC64_MIN_EXP__=(-382);__INT_FAST64_MAX__=9223372036854775807LL;__GCC_ATOMIC_TEST_AND_SET_TRUEVAL=1;__FLT_DIG__=6;__UINT_FAST64_TYPE__=long long unsigned int;__INT_MAX__=2147483647;__INT64_TYPE__=long long int;__FLT_MAX_EXP__=128;__DBL_MANT_DIG__=53;__INT_LEAST64_MAX__=9223372036854775807LL;__DEC64_MIN__=1E-383DD;__WINT_TYPE__=unsigned int;__UINT_LEAST32_TYPE__=long unsigned int;__SIZEOF_SHORT__=2;__LDBL_MIN_EXP__=(-1021);__INT_LEAST8_MAX__=127;__WCHAR_UNSIGNED__=1;__LDBL_MAX_10_EXP__=308;__ATOMIC_RELAXED=0;__DBL_EPSILON__=double(2.2204460492503131e-16L);__UINT8_C(c)=c;__INT_LEAST32_TYPE__=long int;__SIZEOF_WCHAR_T__=2;__UINT64_TYPE__=long long unsigned int;__INT_FAST8_TYPE__=int;__GNUC_STDC_INLINE__=1;__DBL_DECIMAL_DIG__=17;__DEC_EVAL_METHOD__=2;__XTENSA__=1;__ORDER_BIG_ENDIAN__=4321;__UINT32_C(c)=c ## UL;__INTMAX_MAX__=9223372036854775807LL;__BYTE_ORDER__=__ORDER_LITTLE_ENDIAN__;__FLT_DENORM_MIN__=1.4012984643248171e-45F;__INT8_MAX__=127;__UINT_FAST32_TYPE__=unsigned int;__CHAR32_TYPE__=long unsigned int;__FLT_MAX__=3.4028234663852886e+38F;__INT32_TYPE__=long int;__SIZEOF_DOUBLE__=8;__INTMAX_TYPE__=long long int;__DEC128_MAX_EXP__=6145;__ATOMIC_CONSUME=1;__GNUC_MINOR__=8;__UINTMAX_MAX__=18446744073709551615ULL;__DEC32_MANT_DIG__=7;__DBL_MAX_10_EXP__=308;__LDBL_DENORM_MIN__=4.9406564584124654e-324L;__INT16_C(c)=c;__STDC__=1;__PTRDIFF_TYPE__=int;__ATOMIC_SEQ_CST=5;__UINT32_TYPE__=long unsigned int;__UINTPTR_TYPE__=unsigned int;__DEC64_SUBNORMAL_MIN__=0.000000000000001E-383DD;__DEC128_MANT_DIG__=34;__LDBL_MIN_10_EXP__=(-307);__SIZEOF_LONG_LONG__=8;__GCC_ATOMIC_LLONG_LOCK_FREE=1;__LDBL_DIG__=15;__FLT_DECIMAL_DIG__=9;__UINT_FAST16_MAX__=4294967295U;__GCC_ATOMIC_SHORT_LOCK_FREE=1;__UINT_FAST8_TYPE__=unsigned int;__ATOMIC_ACQ_REL=4;__ATOMIC_RELEASE=3...

Error: Found a breaking defect 'syntax error' in %userprofile%\.platformio\packages\toolchain-xtensa\xtensa-lx106-elf\include\c++\4.8.2\bits\random.h:69
Please note: check results might not be valid!
Try adding --skip-packages

"severity=error<&PIO&>message=syntax error<&PIO&>file=%userprofile%\.platformio\packages\toolchain-xtensa\xtensa-lx106-elf\include\c++\4.8.2\bits\random.h<&PIO&>line=69<&PIO&>column=5<&PIO&>callstack=[%userprofile%\.platformio\packages\toolchain-xtensa\xtensa-lx106-elf\include\c++\4.8.2\bits\random.h:69]<&PIO&>cwe=0<&PIO&>id=syntaxError"


Error: cppcheck failed to perform check! Please examine tool output in verbose mode.



========================== [FAILED] Took 1.30 seconds ==========================
Environment Tool Status Duration
------------- -------- -------- ------------
esp01_1m cppcheck FAILED 00:00:01.302
==================== 1 failed, 0 succeeded in 00:00:01.302 ====================

Ah yes that’s actually known equivalently on the ESP32, see cppcheck code inspect fails on samd boards · Issue #3951 · platformio/platformio-core · GitHub for follow-up. Until that’s fixed in cppcheck, you need to use --skip-packages.