rickkas7 / PublishQueuePosixRK

Version of publish queue for storing events on the POSIX flash file system
MIT License
9 stars 4 forks source link

compilation issues on particle web ide #1

Closed welsh-t closed 3 years ago

welsh-t commented 3 years ago

Seems to be some issues with the dependencies in the particle web ide, unless I'm missing something. All I've done is include the library. Error codes bellow.

Processing boron_wake_publish_sleep.ino Checking library SerialBufferRK... Checking library PublishQueuePosixRK... Installing library PublishQueuePosixRK 0.0.1 to lib/PublishQueuePosixRK ... Installing library SerialBufferRK 0.0.2 to lib/SerialBufferRK ... Library SerialBufferRK 0.0.2 installed. Library PublishQueuePosixRK 0.0.1 installed. Checking library SequentialFileRK... Checking library BackgroundPublishRK... Installing library SequentialFileRK 0.0.2 to lib/SequentialFileRK ... Installing library BackgroundPublishRK 0.0.1 to lib/BackgroundPublishRK ... Library BackgroundPublishRK 0.0.1 installed. Library SequentialFileRK 0.0.2 installed. make -C ../modules/boron/user-part all make[1]: Entering directory '/firmware/modules/boron/user-part'

mkdir -p target/ make -f ../../../modules/shared/nRF52840/build_linker_script.mk PREBUILD=1 make[2]: Entering directory '/firmware/modules/boron/user-part' Creating target/platform_user_ram.ld ... make[2]: Leaving directory '/firmware/modules/boron/user-part'

make -C ../../../user make[2]: Entering directory '/firmware/user' Building cpp file: src/boron_wake_publish_sleep.cpp Invoking: ARM GCC CPP Compiler mkdir -p ../build/target/user/platform-13-msrc/ arm-none-eabi-gcc -DSTM32_DEVICE -DnRF52840 -DNRF52840_XXAA -DPLATFORM_THREADING=1 -DPLATFORM_ID=13 -DPLATFORM_NAME=boron -DUSBD_VID_SPARK=0x2B04 -DUSBD_PID_DFU=0xD00D -DUSBD_PID_CDC=0xC00D -DSPARK_PLATFORM -g3 -gdwarf-2 -Os -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DINCLUDE_PLATFORM=1 -DSOFTDEVICE_PRESENT=1 -DS140 -DPRODUCT_ID=13 -DPRODUCT_FIRMWARE_VERSION=65535 -DOPENTHREAD_PROJECT_CORE_CONFIG_FILE=\"openthread-config-project.h\" -DENABLE_FEM=1 -DNRF_802154_PROJECT_CONFIG=\"openthread-platform-config.h\" -DRAAL_SOFTDEVICE=1 -DWIZCHIP=W5500 -DUSE_STDPERIPH_DRIVER -DDFU_BUILD_ENABLE -DLFS_CONFIG=lfs_config.h -DSYSTEM_VERSION_STRING=1.5.2 -DRELEASE_BUILD -I./inc -I../wiring/inc -I../system/inc -I../third_party/miniz/miniz -I../services/inc -I../third_party/nanopb/nanopb -I../communication/inc -I../hal/inc -I../hal/shared -I../hal/src/boron -I../hal/network/lwip/cellular -I../hal/src/nRF52840 -I../hal/src/armv7 -I../hal/src/nRF52840 -I../hal/src/nRF52840/lwip -I../hal/src/nRF52840/freertos -I../hal/src/nRF52840/openthread -I../hal/src/nRF52840/mbedtls -I../hal/src/nRF52840/littlefs -I../hal -I../hal/network/api -I../hal/network/lwip -I../hal/network/lwip/posix -I../hal/network/openthread -I../hal/network/lwip/wiznet -I../hal/network/ncp -I../hal/network/ncp/at_parser -I../third_party/lwip/lwip/src/include -I../third_party/freertos/freertos/FreeRTOS/Source/include -I../third_party/nrf5_sdk/nrf5_sdk/external/freertos/portable/GCC/nrf52 -I../third_party/nrf5_sdk/nrf5_sdk/external/freertos/portable/CMSIS/nrf52 -I../third_party/openthread/openthread/include -I../third_party/openthread/openthread/src/core -I../third_party/openthread/openthread/examples/platforms -I../third_party/openthread/openthread/radio -I../third_party/openthread/openthread/radio/hal -I../third_party/openthread/openthread/radio/rsch -I../third_party/openthread/openthread/radio/rsch/raal -I../third_party/openthread/openthread/radio/rsch/raal/softdevice -I../third_party/wiznet_driver/wiznet_driver/Ethernet -I../gsm0710muxer/gsm0710muxer/include -I../platform/shared/inc -I../third_party/nrf5_sdk -I../third_party/nrf5_sdk/nrf5_sdk/components/toolchain/cmsis/include -I../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx -I../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx/drivers -I../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx/drivers/include -I../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx/hal -I../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx/mdk -I../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx/hal -I../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx/drivers/src/prs -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/util -I../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/s140/headers -I../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/s140/headers/nrf52 -I../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/common -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/fstorage -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/experimental_section_vars -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/atomic -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/crc32 -I../third_party/nrf5_sdk/nrf5_sdk/integration/nrfx/legacy -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/delay -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/log -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/log -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/log/src -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/experimental_section_vars -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/atomic -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/delay -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/queue -I../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/common -I../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/mbr/nrf52840/headers -I../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/s140 -I../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/s140/headers -I../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/s140/headers/nrf52 -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/fifo -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/atomic_fifo -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/strerror -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/fstorage -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/atomic_flags -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/usbd -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/usbd/class/cdc -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/usbd/class/cdc/acm -I../third_party/nrf5_sdk/nrf5_sdk/components/ble/common -I../third_party/nrf5_sdk/nrf5_sdk/components/ble/nrf_ble_gatt -I../third_party/nrf5_sdk/nrf5_sdk/components/ble/ble_advertising -I../third_party/nrf5_sdk/nrf5_sdk/components/nfc/t2t_lib -I../third_party/nrf5_sdk/nrf5_sdk/components/nfc/platform -I../third_party/nrf5_sdk/nrf5_sdk/components/nfc/ndef/generic/message -I../third_party/nrf5_sdk/nrf5_sdk/components/nfc/ndef/generic/record -I../third_party/nrf5_sdk/nrf5_sdk/components/nfc/ndef/lauchapp -I../third_party/nrf5_sdk/nrf5_sdk/components/nfc/ndef/text -I../third_party/nrf5_sdk/nrf5_sdk/components/nfc/ndef/uri -I../third_party/nrf5_sdk/nrf5_sdk/external/nrf_cc310/include -I../third_party/nrf5_sdk/nrf5_sdk/external/utf_converter -I../third_party/littlefs/littlefs -I../platform/MCU/nRF52840/inc -I../dynalib/inc -Isrc -I./libraries -Ilib/SequentialFileRK/src -Ilib/PublishQueuePosixRK/src -Ilib/BackgroundPublishRK/src -Ilib/SerialBufferRK/src -I. -MD -MP -MF ../build/target/user/platform-13-msrc/boron_wake_publish_sleep.o.d -ffunction-sections -fdata-sections -Wall -Wno-switch -Wno-error=deprecated-declarations -fmessage-length=0 -fno-strict-aliasing -DSPARK=1 -DPARTICLE=1 -Wundef -DSTART_DFU_FLASHER_SERIAL_SPEED=14400 -DSTART_YMODEM_FLASHER_SERIAL_SPEED=28800 -DSPARK_PLATFORM_NET=UBLOXSARA -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -DLOG_INCLUDE_SOURCE_INFO=1 -DPARTICLE_USER_MODULE -DUSER_FIRMWARE_IMAGE_SIZE=0x20000 -DUSER_FIRMWARE_IMAGE_LOCATION=0xD4000 -DMODULAR_FIRMWARE=1 -DMODULE_VERSION=6 -DMODULE_FUNCTION=5 -DMODULE_INDEX=1 -DMODULE_DEPENDENCY=4,1,1512 -DMODULE_DEPENDENCY2=0,0,0 -D_GNU_SOURCE -DLOG_MODULE_CATEGORY="\"app\"" -fno-exceptions -fno-rtti -fcheck-new -std=gnu++14 -c -o ../build/target/user/platform-13-msrc/boron_wake_publish_sleep.o src/boron_wake_publish_sleep.cpp boron_wake_publish_sleep.ino: In function 'void loop()': boron_wake_publish_sleep.ino:142:105: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'std::chrono::duration<long long int, std::ratio<1ll, 1000ll> >::rep {aka long long int}' [-Wformat=] boron_wake_publish_sleep.ino: In function 'void readUartAndPublish()': boron_wake_publish_sleep.ino:225:37: warning: format '%s' expects argument of type 'char', but argument 3 has type 'String' [-Wformat=]

Building cpp file: lib/SequentialFileRK/src/SequentialFileRK.cpp Invoking: ARM GCC CPP Compiler mkdir -p ../build/target/user/platform-13-mSequentialFileRK/src/ arm-none-eabi-gcc -DSTM32_DEVICE -DnRF52840 -DNRF52840_XXAA -DPLATFORM_THREADING=1 -DPLATFORM_ID=13 -DPLATFORM_NAME=boron -DUSBD_VID_SPARK=0x2B04 -DUSBD_PID_DFU=0xD00D -DUSBD_PID_CDC=0xC00D -DSPARK_PLATFORM -g3 -gdwarf-2 -Os -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DINCLUDE_PLATFORM=1 -DSOFTDEVICE_PRESENT=1 -DS140 -DPRODUCT_ID=13 -DPRODUCT_FIRMWARE_VERSION=65535 -DOPENTHREAD_PROJECT_CORE_CONFIG_FILE=\"openthread-config-project.h\" -DENABLE_FEM=1 -DNRF_802154_PROJECT_CONFIG=\"openthread-platform-config.h\" -DRAAL_SOFTDEVICE=1 -DWIZCHIP=W5500 -DUSE_STDPERIPH_DRIVER -DDFU_BUILD_ENABLE -DLFS_CONFIG=lfs_config.h -DSYSTEM_VERSION_STRING=1.5.2 -DRELEASE_BUILD -I./inc -I../wiring/inc -I../system/inc -I../third_party/miniz/miniz -I../services/inc -I../third_party/nanopb/nanopb -I../communication/inc -I../hal/inc -I../hal/shared -I../hal/src/boron -I../hal/network/lwip/cellular -I../hal/src/nRF52840 -I../hal/src/armv7 -I../hal/src/nRF52840 -I../hal/src/nRF52840/lwip -I../hal/src/nRF52840/freertos -I../hal/src/nRF52840/openthread -I../hal/src/nRF52840/mbedtls -I../hal/src/nRF52840/littlefs -I../hal -I../hal/network/api -I../hal/network/lwip -I../hal/network/lwip/posix -I../hal/network/openthread -I../hal/network/lwip/wiznet -I../hal/network/ncp -I../hal/network/ncp/at_parser -I../third_party/lwip/lwip/src/include -I../third_party/freertos/freertos/FreeRTOS/Source/include -I../third_party/nrf5_sdk/nrf5_sdk/external/freertos/portable/GCC/nrf52 -I../third_party/nrf5_sdk/nrf5_sdk/external/freertos/portable/CMSIS/nrf52 -I../third_party/openthread/openthread/include -I../third_party/openthread/openthread/src/core -I../third_party/openthread/openthread/examples/platforms -I../third_party/openthread/openthread/radio -I../third_party/openthread/openthread/radio/hal -I../third_party/openthread/openthread/radio/rsch -I../third_party/openthread/openthread/radio/rsch/raal -I../third_party/openthread/openthread/radio/rsch/raal/softdevice -I../third_party/wiznet_driver/wiznet_driver/Ethernet -I../gsm0710muxer/gsm0710muxer/include -I../platform/shared/inc -I../third_party/nrf5_sdk -I../third_party/nrf5_sdk/nrf5_sdk/components/toolchain/cmsis/include -I../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx -I../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx/drivers -I../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx/drivers/include -I../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx/hal -I../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx/mdk -I../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx/hal -I../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx/drivers/src/prs -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/util -I../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/s140/headers -I../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/s140/headers/nrf52 -I../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/common -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/fstorage -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/experimental_section_vars -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/atomic -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/crc32 -I../third_party/nrf5_sdk/nrf5_sdk/integration/nrfx/legacy -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/delay -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/log -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/log -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/log/src -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/experimental_section_vars -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/atomic -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/delay -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/queue -I../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/common -I../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/mbr/nrf52840/headers -I../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/s140 -I../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/s140/headers -I../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/s140/headers/nrf52 -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/fifo -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/atomic_fifo -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/strerror -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/fstorage -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/atomic_flags -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/usbd -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/usbd/class/cdc -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/usbd/class/cdc/acm -I../third_party/nrf5_sdk/nrf5_sdk/components/ble/common -I../third_party/nrf5_sdk/nrf5_sdk/components/ble/nrf_ble_gatt -I../third_party/nrf5_sdk/nrf5_sdk/components/ble/ble_advertising -I../third_party/nrf5_sdk/nrf5_sdk/components/nfc/t2t_lib -I../third_party/nrf5_sdk/nrf5_sdk/components/nfc/platform -I../third_party/nrf5_sdk/nrf5_sdk/components/nfc/ndef/generic/message -I../third_party/nrf5_sdk/nrf5_sdk/components/nfc/ndef/generic/record -I../third_party/nrf5_sdk/nrf5_sdk/components/nfc/ndef/lauchapp -I../third_party/nrf5_sdk/nrf5_sdk/components/nfc/ndef/text -I../third_party/nrf5_sdk/nrf5_sdk/components/nfc/ndef/uri -I../third_party/nrf5_sdk/nrf5_sdk/external/nrf_cc310/include -I../third_party/nrf5_sdk/nrf5_sdk/external/utf_converter -I../third_party/littlefs/littlefs -I../platform/MCU/nRF52840/inc -I../dynalib/inc -Isrc -I./libraries -Ilib/SequentialFileRK/src -Ilib/PublishQueuePosixRK/src -Ilib/BackgroundPublishRK/src -Ilib/SerialBufferRK/src -I. -MD -MP -MF ../build/target/user/platform-13-mSequentialFileRK/src/SequentialFileRK.o.d -ffunction-sections -fdata-sections -Wall -Wno-switch -Wno-error=deprecated-declarations -fmessage-length=0 -fno-strict-aliasing -DSPARK=1 -DPARTICLE=1 -Wundef -DSTART_DFU_FLASHER_SERIAL_SPEED=14400 -DSTART_YMODEM_FLASHER_SERIAL_SPEED=28800 -DSPARK_PLATFORM_NET=UBLOXSARA -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -DLOG_INCLUDE_SOURCE_INFO=1 -DPARTICLE_USER_MODULE -DUSER_FIRMWARE_IMAGE_SIZE=0x20000 -DUSER_FIRMWARE_IMAGE_LOCATION=0xD4000 -DMODULAR_FIRMWARE=1 -DMODULE_VERSION=6 -DMODULE_FUNCTION=5 -DMODULE_INDEX=1 -DMODULE_DEPENDENCY=4,1,1512 -DMODULE_DEPENDENCY2=0,0,0 -D_GNU_SOURCE -DLOG_MODULE_CATEGORY="\"app\"" -fno-exceptions -fno-rtti -fcheck-new -std=gnu++14 -c -o ../build/target/user/platform-13-mSequentialFileRK/src/SequentialFileRK.o lib/SequentialFileRK/src/SequentialFileRK.cpp In file included from /usr/local/gcc-arm-embedded/arm-none-eabi/include/dirent.h:7:0, from lib/SequentialFileRK/src/SequentialFileRK.cpp:3: /usr/local/gcc-arm-embedded/arm-none-eabi/include/sys/dirent.h:10:2: error: #error " not supported"

error " not supported"

^ lib/SequentialFileRK/src/SequentialFileRK.cpp: In member function 'bool SequentialFile::scanDir()': lib/SequentialFileRK/src/SequentialFileRK.cpp:41:5: error: 'DIR' was not declared in this scope DIR dir = opendir(dirPath); ^ lib/SequentialFileRK/src/SequentialFileRK.cpp:41:10: error: 'dir' was not declared in this scope DIR dir = opendir(dirPath); ^ lib/SequentialFileRK/src/SequentialFileRK.cpp:41:31: error: 'opendir' was not declared in this scope DIR dir = opendir(dirPath); ^ lib/SequentialFileRK/src/SequentialFileRK.cpp:49:41: error: 'readdir' was not declared in this scope struct dirent ent = readdir(dir); ^ lib/SequentialFileRK/src/SequentialFileRK.cpp:54:16: error: invalid use of incomplete type 'struct SequentialFile::scanDir()::dirent' if (ent->d_type != DT_REG) { ^ lib/SequentialFileRK/src/SequentialFileRK.cpp:49:16: note: forward declaration of 'struct SequentialFile::scanDir()::dirent' struct dirent ent = readdir(dir); ^ lib/SequentialFileRK/src/SequentialFileRK.cpp:54:28: error: 'DT_REG' was not declared in this scope if (ent->d_type != DT_REG) { ^ lib/SequentialFileRK/src/SequentialFileRK.cpp:60:23: error: invalid use of incomplete type 'struct SequentialFile::scanDir()::dirent' if (sscanf(ent->d_name, pattern, &fileNum) == 1) { ^ lib/SequentialFileRK/src/SequentialFileRK.cpp:49:16: note: forward declaration of 'struct SequentialFile::scanDir()::dirent' struct dirent ent = readdir(dir); ^ lib/SequentialFileRK/src/SequentialFileRK.cpp:61:62: error: invalid use of incomplete type 'struct SequentialFile::scanDir()::dirent' if (filenameExtension.length() == 0 || String(ent->d_name).endsWith(filenameExtension)) { ^ lib/SequentialFileRK/src/SequentialFileRK.cpp:49:16: note: forward declaration of 'struct SequentialFile::scanDir()::dirent' struct dirent ent = readdir(dir); ^ lib/SequentialFileRK/src/SequentialFileRK.cpp:63:39: error: invalid use of incomplete type 'struct SequentialFile::scanDir()::dirent' if (preScanAddHook(ent->d_name)) { ^ lib/SequentialFileRK/src/SequentialFileRK.cpp:49:16: note: forward declaration of 'struct SequentialFile::scanDir()::dirent' struct dirent ent = readdir(dir); ^ lib/SequentialFileRK/src/SequentialFileRK.cpp:67:69: error: invalid use of incomplete type 'struct SequentialFile::scanDir()::dirent' _log.trace("adding to queue %d %s", fileNum, ent->d_name); ^ lib/SequentialFileRK/src/SequentialFileRK.cpp:49:16: note: forward declaration of 'struct SequentialFile::scanDir()::dirent' struct dirent ent = readdir(dir); ^ lib/SequentialFileRK/src/SequentialFileRK.cpp:76:17: error: 'closedir' was not declared in this scope closedir(dir); ^ lib/SequentialFileRK/src/SequentialFileRK.cpp: In member function 'void SequentialFile::removeFileNum(int, bool)': lib/SequentialFileRK/src/SequentialFileRK.cpp:146:9: error: 'DIR' was not declared in this scope DIR dir = opendir(dirPath); ^ lib/SequentialFileRK/src/SequentialFileRK.cpp:146:14: error: 'dir' was not declared in this scope DIR dir = opendir(dirPath); ^ lib/SequentialFileRK/src/SequentialFileRK.cpp:146:35: error: 'opendir' was not declared in this scope DIR dir = opendir(dirPath); ^ lib/SequentialFileRK/src/SequentialFileRK.cpp:149:49: error: 'readdir' was not declared in this scope struct dirent ent = readdir(dir); ^ lib/SequentialFileRK/src/SequentialFileRK.cpp:154:24: error: invalid use of incomplete type 'struct SequentialFile::removeFileNum(int, bool)::dirent' if (ent->d_type != DT_REG) { ^ lib/SequentialFileRK/src/SequentialFileRK.cpp:149:24: note: forward declaration of 'struct SequentialFile::removeFileNum(int, bool)::dirent' struct dirent ent = readdir(dir); ^ lib/SequentialFileRK/src/SequentialFileRK.cpp:154:36: error: 'DT_REG' was not declared in this scope if (ent->d_type != DT_REG) { ^ lib/SequentialFileRK/src/SequentialFileRK.cpp:160:31: error: invalid use of incomplete type 'struct SequentialFile::removeFileNum(int, bool)::dirent' if (sscanf(ent->d_name, pattern.c_str(), &curFileNum) == 1) { ^ lib/SequentialFileRK/src/SequentialFileRK.cpp:149:24: note: forward declaration of 'struct SequentialFile::removeFileNum(int, bool)::dirent' struct dirent ent = readdir(dir); ^ lib/SequentialFileRK/src/SequentialFileRK.cpp:163:66: error: invalid use of incomplete type 'struct SequentialFile::removeFileNum(int, bool)::dirent' String path = dirPath + String("/") + ent->d_name; ^ lib/SequentialFileRK/src/SequentialFileRK.cpp:149:24: note: forward declaration of 'struct SequentialFile::removeFileNum(int, bool)::dirent' struct dirent ent = readdir(dir); ^ lib/SequentialFileRK/src/SequentialFileRK.cpp:169:25: error: 'closedir' was not declared in this scope closedir(dir); ^ lib/SequentialFileRK/src/SequentialFileRK.cpp: In member function 'void SequentialFile::removeAll(bool)': lib/SequentialFileRK/src/SequentialFileRK.cpp:180:5: error: 'DIR' was not declared in this scope DIR dir = opendir(dirPath); ^ lib/SequentialFileRK/src/SequentialFileRK.cpp:180:10: error: 'dir' was not declared in this scope DIR dir = opendir(dirPath); ^ lib/SequentialFileRK/src/SequentialFileRK.cpp:180:31: error: 'opendir' was not declared in this scope DIR dir = opendir(dirPath); ^ lib/SequentialFileRK/src/SequentialFileRK.cpp:183:45: error: 'readdir' was not declared in this scope struct dirent ent = readdir(dir); ^ lib/SequentialFileRK/src/SequentialFileRK.cpp:188:20: error: invalid use of incomplete type 'struct SequentialFile::removeAll(bool)::dirent' if (ent->d_type != DT_REG) { ^ lib/SequentialFileRK/src/SequentialFileRK.cpp:183:20: note: forward declaration of 'struct SequentialFile::removeAll(bool)::dirent' struct dirent ent = readdir(dir); ^ lib/SequentialFileRK/src/SequentialFileRK.cpp:188:32: error: 'DT_REG' was not declared in this scope if (ent->d_type != DT_REG) { ^ lib/SequentialFileRK/src/SequentialFileRK.cpp:193:54: error: invalid use of incomplete type 'struct SequentialFile::removeAll(bool)::dirent' String path = dirPath + String("/") + ent->d_name; ^ lib/SequentialFileRK/src/SequentialFileRK.cpp:183:20: note: forward declaration of 'struct SequentialFile::removeAll(bool)::dirent' struct dirent ent = readdir(dir); ^ lib/SequentialFileRK/src/SequentialFileRK.cpp:197:21: error: 'closedir' was not declared in this scope closedir(dir); ^ ../build/module.mk:286: recipe for target '../build/target/user/platform-13-mSequentialFileRK/src/SequentialFileRK.o' failed make[2]: [../build/target/user/platform-13-mSequentialFileRK/src/SequentialFileRK.o] Error 1 make[2]: Leaving directory '/firmware/user' ../../../build/recurse.mk:11: recipe for target 'user' failed make[1]: [user] Error 2 make[1]: Leaving directory '/firmware/modules/boron/user-part' ../build/recurse.mk:11: recipe for target 'modules/boron/user-part' failed make: *** [modules/boron/user-part] Error 2

welsh-t commented 3 years ago

It's only an issue with version 1.5.2 or earlier.