u-blox / XPLR-HPG-software

Apache License 2.0
13 stars 2 forks source link

C++ project fails to compile due to use of protected keywords as variable names #8

Closed fng97 closed 1 year ago

fng97 commented 1 year ago

Hiya!

I'm incorporating hpglib in a C++ ESP-IDF project and part of the library fails to build. The files, xplr_com_types.h and xplr_nvs.h, name a member variable, operator, and a parameter, namespace, respectively. These are both reserved C++ keywords.

Environment:

Reproduction:

I have pushed an example that can be used to reproduce this error to this branch of a fork. To reproduce the issue:

  1. Clone the fork and change to the example-failing-build-cpp branch.
  2. cd to the XPLR-HPG-SW directory.
  3. Configure the project with idf.py menuconfig.
  4. Build the project with cmake --build build or idf.py build.

This is what I'm getting back:

Expand terminal output: ``` root@d5b552aa6e72:/workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW# idf.py menuconfig Executing action: menuconfig Running cmake in directory /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/build Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32 -DCCACHE_ENABLE=1 /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW"... -- -----------Package Info--------- -- XPLR_HPG_SW_PATH is /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW -- XPLR_HPG_EXAMPLE_SELECTED: hpg_cell_mqtt_correction_certs -- Loading source files... -- Loaded from: examples/cellular/02_hpg_cell_mqtt_correction_certs -- Found Git: /usr/bin/git (found version "2.25.1") -- Component directory /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/ubxlib does not contain a CMakeLists.txt file. No component will be added -- ccache will be used for faster recompilation -- The C compiler identification is GNU 8.4.0 -- The CXX compiler identification is GNU 8.4.0 -- The ASM compiler identification is GNU -- Found assembler: /opt/esp/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /opt/esp/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /opt/esp/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Building ESP-IDF components for target esp32 -- -----------Board Info--------- -- IDF_TARGET = esp32 -- Board DIR = -- ---------Board Info End--------- -- -----------Project Info--------- -- Building Component: hpglib -- -----------Project Info--------- -- Building Component: xplr_mqtt -- -----------Project Info--------- -- Building Component: xplr_wifi_starter -- -----------Project Info--------- -- Building Component: xplr_ztp -- -----------Project Info--------- -- Building Component: xplr_ztp_json_parser -- Project sdkconfig file /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/sdkconfig Loading defaults file /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/sdkconfig.defaults... -- Found Python3: /opt/esp/python_env/idf4.4_py3.8_env/bin/python3.8 (found version "3.8.10") found components: Interpreter -- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS -- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS - Success -- App "hpg_cell_mqtt_correction_certs" version: b779fd3-dirty -- Adding linker script /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/build/esp-idf/esp_system/ld/memory.ld -- Adding linker script /opt/esp/idf/components/esp_system/ld/esp32/sections.ld.in -- Adding linker script /opt/esp/idf/components/esp_rom/esp32/ld/esp32.rom.ld -- Adding linker script /opt/esp/idf/components/esp_rom/esp32/ld/esp32.rom.api.ld -- Adding linker script /opt/esp/idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld -- Adding linker script /opt/esp/idf/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld -- Adding linker script /opt/esp/idf/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld -- Adding linker script /opt/esp/idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld -- Adding linker script /opt/esp/idf/components/esp_rom/esp32/ld/esp32.rom.newlib-time.ld -- Adding linker script /opt/esp/idf/components/soc/esp32/ld/esp32.peripherals.ld -- -----------Board Info--------- -- IDF_TARGET = esp32 -- Board DIR = xplr-hpg2-c214 -- ---------Board Info End--------- -- -----------Project Info--------- -- Building Component: hpglib -- -----------Project Info End----- -- -----------Project Info--------- -- Building Example: HPG_CELL_MQTT_CORRECTION_CERTS -- -----------Project Info End----- -- -----------Project Info--------- -- Building Component: xplr_ztp_json_parser -- xplr_ztp_json_parser: build finished -- -----------Project Info End----- -- -----------Project Info--------- -- Building Component: xplr_mqtt -- xplr_mqtt Component: build finished -- -----------Project Info End----- -- -----------Project Info--------- -- Building Component: xplr_wifi_starter -- xplr_wifi_starter: build finished -- -----------Project Info End----- -- -----------Project Info--------- -- Building Component: xplr_ztp -- xplr_ztp: build finished -- -----------Project Info End----- -- Components: app_trace app_update asio boards bootloader bootloader_support bt cbor cmock coap console cxx driver efuse esp-tls esp32 esp_adc_cal esp_common esp_eth esp_event esp_gdbstub esp_hid esp_http_client esp_http_server esp_https_ota esp_https_server esp_hw_support esp_ipc esp_lcd esp_local_ctrl esp_netif esp_phy esp_pm esp_ringbuf esp_rom esp_serial_slave_link esp_system esp_timer esp_websocket_client esp_wifi espcoredump esptool_py expat fatfs freemodbus freertos hal heap hpglib idf_test ieee802154 jsmn json libsodium log lwip main mbedtls mdns mqtt newlib nghttp nvs_flash openssl openthread partition_table perfmon protobuf-c protocomm pthread sdmmc soc spi_flash spiffs tcp_transport tcpip_adapter tinyusb ubxlib ulp unity usb vfs wear_levelling wifi_provisioning wpa_supplicant xplr_mqtt xplr_wifi_starter xplr_ztp xplr_ztp_json_parser xtensa -- Component paths: /opt/esp/idf/components/app_trace /opt/esp/idf/components/app_update /opt/esp/idf/components/asio /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/boards /opt/esp/idf/components/bootloader /opt/esp/idf/components/bootloader_support /opt/esp/idf/components/bt /opt/esp/idf/components/cbor /opt/esp/idf/components/cmock /opt/esp/idf/components/coap /opt/esp/idf/components/console /opt/esp/idf/components/cxx /opt/esp/idf/components/driver /opt/esp/idf/components/efuse /opt/esp/idf/components/esp-tls /opt/esp/idf/components/esp32 /opt/esp/idf/components/esp_adc_cal /opt/esp/idf/components/esp_common /opt/esp/idf/components/esp_eth /opt/esp/idf/components/esp_event /opt/esp/idf/components/esp_gdbstub /opt/esp/idf/components/esp_hid /opt/esp/idf/components/esp_http_client /opt/esp/idf/components/esp_http_server /opt/esp/idf/components/esp_https_ota /opt/esp/idf/components/esp_https_server /opt/esp/idf/components/esp_hw_support /opt/esp/idf/components/esp_ipc /opt/esp/idf/components/esp_lcd /opt/esp/idf/components/esp_local_ctrl /opt/esp/idf/components/esp_netif /opt/esp/idf/components/esp_phy /opt/esp/idf/components/esp_pm /opt/esp/idf/components/esp_ringbuf /opt/esp/idf/components/esp_rom /opt/esp/idf/components/esp_serial_slave_link /opt/esp/idf/components/esp_system /opt/esp/idf/components/esp_timer /opt/esp/idf/components/esp_websocket_client /opt/esp/idf/components/esp_wifi /opt/esp/idf/components/espcoredump /opt/esp/idf/components/esptool_py /opt/esp/idf/components/expat /opt/esp/idf/components/fatfs /opt/esp/idf/components/freemodbus /opt/esp/idf/components/freertos /opt/esp/idf/components/hal /opt/esp/idf/components/heap /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/hpglib /opt/esp/idf/components/idf_test /opt/esp/idf/components/ieee802154 /opt/esp/idf/components/jsmn /opt/esp/idf/components/json /opt/esp/idf/components/libsodium /opt/esp/idf/components/log /opt/esp/idf/components/lwip /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/examples/cellular/02_hpg_cell_mqtt_correction_certs/main /opt/esp/idf/components/mbedtls /opt/esp/idf/components/mdns /opt/esp/idf/components/mqtt /opt/esp/idf/components/newlib /opt/esp/idf/components/nghttp /opt/esp/idf/components/nvs_flash /opt/esp/idf/components/openssl /opt/esp/idf/components/openthread /opt/esp/idf/components/partition_table /opt/esp/idf/components/perfmon /opt/esp/idf/components/protobuf-c /opt/esp/idf/components/protocomm /opt/esp/idf/components/pthread /opt/esp/idf/components/sdmmc /opt/esp/idf/components/soc /opt/esp/idf/components/spi_flash /opt/esp/idf/components/spiffs /opt/esp/idf/components/tcp_transport /opt/esp/idf/components/tcpip_adapter /opt/esp/idf/components/tinyusb /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/ubxlib/port/platform/esp-idf/mcu/esp32/components/ubxlib /opt/esp/idf/components/ulp /opt/esp/idf/components/unity /opt/esp/idf/components/usb /opt/esp/idf/components/vfs /opt/esp/idf/components/wear_levelling /opt/esp/idf/components/wifi_provisioning /opt/esp/idf/components/wpa_supplicant /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/xplr_mqtt /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/xplr_wifi_starter /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/xplr_ztp /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/xplr_ztp_json_parser /opt/esp/idf/components/xtensa -- Building project: hpg_cell_mqtt_correction_certs -- -----------Package Info End--------- -- Configuring done (2.1s) -- Generating done (0.3s) -- Build files have been written to: /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/build Running ninja in directory /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/build Executing "ninja menuconfig"... [0/1] cd /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/build && /opt/esp/python_env/idf4.4_py3.8_env/bin/python /opt/esp/idf/tools/k.../build/config.env --env IDF_TARGET=esp32 --env IDF_ENV_FPGA= --output config /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/sdkconfig Loading defaults file /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/sdkconfig.defaults... TERM environment variable is set to "xterm-256color" Loaded configuration '/workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/sdkconfig' No changes to save (for '/workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/sdkconfig') Loading defaults file /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/sdkconfig.defaults... root@d5b552aa6e72:/workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW# cmake --build build/ [0/1] Re-running CMake... -- -----------Package Info--------- -- XPLR_HPG_SW_PATH is /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW -- XPLR_HPG_EXAMPLE_SELECTED: hpg_cell_mqtt_correction_certs -- Loading hpg_cell_mqtt_correction_certs source files... -- Loaded from: examples/cellular/02_hpg_cell_mqtt_correction_certs -- Component directory /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/ubxlib does not contain a CMakeLists.txt file. No component will be added -- ccache will be used for faster recompilation -- Building ESP-IDF components for target esp32 -- -----------Board Info--------- -- IDF_TARGET = esp32 -- Board DIR = -- ---------Board Info End--------- -- -----------Project Info--------- -- Building Component: hpglib -- -----------Project Info--------- -- Building Component: xplr_mqtt -- -----------Project Info--------- -- Building Component: xplr_wifi_starter -- -----------Project Info--------- -- Building Component: xplr_ztp -- -----------Project Info--------- -- Building Component: xplr_ztp_json_parser -- Project sdkconfig file /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/sdkconfig Loading defaults file /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/sdkconfig.defaults... -- App "hpg_cell_mqtt_correction_certs" version: b779fd3-dirty -- Adding linker script /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/build/esp-idf/esp_system/ld/memory.ld -- Adding linker script /opt/esp/idf/components/esp_system/ld/esp32/sections.ld.in -- Adding linker script /opt/esp/idf/components/esp_rom/esp32/ld/esp32.rom.ld -- Adding linker script /opt/esp/idf/components/esp_rom/esp32/ld/esp32.rom.api.ld -- Adding linker script /opt/esp/idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld -- Adding linker script /opt/esp/idf/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld -- Adding linker script /opt/esp/idf/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld -- Adding linker script /opt/esp/idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld -- Adding linker script /opt/esp/idf/components/esp_rom/esp32/ld/esp32.rom.newlib-time.ld -- Adding linker script /opt/esp/idf/components/soc/esp32/ld/esp32.peripherals.ld -- -----------Board Info--------- -- IDF_TARGET = esp32 -- Board DIR = xplr-hpg2-c214 -- ---------Board Info End--------- -- -----------Project Info--------- -- Building Component: hpglib -- -----------Project Info End----- -- -----------Project Info--------- -- Building Example: HPG_CELL_MQTT_CORRECTION_CERTS -- -----------Project Info End----- -- -----------Project Info--------- -- Building Component: xplr_ztp_json_parser -- xplr_ztp_json_parser: build finished -- -----------Project Info End----- -- -----------Project Info--------- -- Building Component: xplr_mqtt -- xplr_mqtt Component: build finished -- -----------Project Info End----- -- -----------Project Info--------- -- Building Component: xplr_wifi_starter -- xplr_wifi_starter: build finished -- -----------Project Info End----- -- -----------Project Info--------- -- Building Component: xplr_ztp -- xplr_ztp: build finished -- -----------Project Info End----- -- Components: app_trace app_update asio boards bootloader bootloader_support bt cbor cmock coap console cxx driver efuse esp-tls esp32 esp_adc_cal esp_common esp_eth esp_event esp_gdbstub esp_hid esp_http_client esp_http_server esp_https_ota esp_https_server esp_hw_support esp_ipc esp_lcd esp_local_ctrl esp_netif esp_phy esp_pm esp_ringbuf esp_rom esp_serial_slave_link esp_system esp_timer esp_websocket_client esp_wifi espcoredump esptool_py expat fatfs freemodbus freertos hal heap hpglib idf_test ieee802154 jsmn json libsodium log lwip main mbedtls mdns mqtt newlib nghttp nvs_flash openssl openthread partition_table perfmon protobuf-c protocomm pthread sdmmc soc spi_flash spiffs tcp_transport tcpip_adapter tinyusb ubxlib ulp unity usb vfs wear_levelling wifi_provisioning wpa_supplicant xplr_mqtt xplr_wifi_starter xplr_ztp xplr_ztp_json_parser xtensa -- Component paths: /opt/esp/idf/components/app_trace /opt/esp/idf/components/app_update /opt/esp/idf/components/asio /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/boards /opt/esp/idf/components/bootloader /opt/esp/idf/components/bootloader_support /opt/esp/idf/components/bt /opt/esp/idf/components/cbor /opt/esp/idf/components/cmock /opt/esp/idf/components/coap /opt/esp/idf/components/console /opt/esp/idf/components/cxx /opt/esp/idf/components/driver /opt/esp/idf/components/efuse /opt/esp/idf/components/esp-tls /opt/esp/idf/components/esp32 /opt/esp/idf/components/esp_adc_cal /opt/esp/idf/components/esp_common /opt/esp/idf/components/esp_eth /opt/esp/idf/components/esp_event /opt/esp/idf/components/esp_gdbstub /opt/esp/idf/components/esp_hid /opt/esp/idf/components/esp_http_client /opt/esp/idf/components/esp_http_server /opt/esp/idf/components/esp_https_ota /opt/esp/idf/components/esp_https_server /opt/esp/idf/components/esp_hw_support /opt/esp/idf/components/esp_ipc /opt/esp/idf/components/esp_lcd /opt/esp/idf/components/esp_local_ctrl /opt/esp/idf/components/esp_netif /opt/esp/idf/components/esp_phy /opt/esp/idf/components/esp_pm /opt/esp/idf/components/esp_ringbuf /opt/esp/idf/components/esp_rom /opt/esp/idf/components/esp_serial_slave_link /opt/esp/idf/components/esp_system /opt/esp/idf/components/esp_timer /opt/esp/idf/components/esp_websocket_client /opt/esp/idf/components/esp_wifi /opt/esp/idf/components/espcoredump /opt/esp/idf/components/esptool_py /opt/esp/idf/components/expat /opt/esp/idf/components/fatfs /opt/esp/idf/components/freemodbus /opt/esp/idf/components/freertos /opt/esp/idf/components/hal /opt/esp/idf/components/heap /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/hpglib /opt/esp/idf/components/idf_test /opt/esp/idf/components/ieee802154 /opt/esp/idf/components/jsmn /opt/esp/idf/components/json /opt/esp/idf/components/libsodium /opt/esp/idf/components/log /opt/esp/idf/components/lwip /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/examples/cellular/02_hpg_cell_mqtt_correction_certs/main /opt/esp/idf/components/mbedtls /opt/esp/idf/components/mdns /opt/esp/idf/components/mqtt /opt/esp/idf/components/newlib /opt/esp/idf/components/nghttp /opt/esp/idf/components/nvs_flash /opt/esp/idf/components/openssl /opt/esp/idf/components/openthread /opt/esp/idf/components/partition_table /opt/esp/idf/components/perfmon /opt/esp/idf/components/protobuf-c /opt/esp/idf/components/protocomm /opt/esp/idf/components/pthread /opt/esp/idf/components/sdmmc /opt/esp/idf/components/soc /opt/esp/idf/components/spi_flash /opt/esp/idf/components/spiffs /opt/esp/idf/components/tcp_transport /opt/esp/idf/components/tcpip_adapter /opt/esp/idf/components/tinyusb /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/ubxlib/port/platform/esp-idf/mcu/esp32/components/ubxlib /opt/esp/idf/components/ulp /opt/esp/idf/components/unity /opt/esp/idf/components/usb /opt/esp/idf/components/vfs /opt/esp/idf/components/wear_levelling /opt/esp/idf/components/wifi_provisioning /opt/esp/idf/components/wpa_supplicant /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/xplr_mqtt /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/xplr_wifi_starter /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/xplr_ztp /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/xplr_ztp_json_parser /opt/esp/idf/components/xtensa -- Building project: hpg_cell_mqtt_correction_certs -- -----------Package Info End--------- -- Configuring done (1.7s) -- Generating done (0.3s) -- Build files have been written to: /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/build [27/1211] Generating ../../partition_table/partition-table.bin Partition table binary generated. Contents: ******************************************************************************* # ESP-IDF Partition Table # Name, Type, SubType, Offset, Size, Flags nvs,data,nvs,0x9000,24K, phy_init,data,phy,0xf000,4K, factory,app,factory,0x10000,3M, ******************************************************************************* [755/1211] Performing configure step for 'bootloader' -- Found Git: /usr/bin/git (found version "2.25.1") -- The C compiler identification is GNU 8.4.0 -- The CXX compiler identification is GNU 8.4.0 -- The ASM compiler identification is GNU -- Found assembler: /opt/esp/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /opt/esp/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /opt/esp/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Building ESP-IDF components for target esp32 -- Project sdkconfig file /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/sdkconfig -- Adding linker script /opt/esp/idf/components/soc/esp32/ld/esp32.peripherals.ld -- Adding linker script /opt/esp/idf/components/esp_rom/esp32/ld/esp32.rom.ld -- Adding linker script /opt/esp/idf/components/esp_rom/esp32/ld/esp32.rom.api.ld -- Adding linker script /opt/esp/idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld -- Adding linker script /opt/esp/idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld -- Adding linker script /opt/esp/idf/components/bootloader/subproject/main/ld/esp32/bootloader.ld -- Adding linker script /opt/esp/idf/components/bootloader/subproject/main/ld/esp32/bootloader.rom.ld -- Components: bootloader bootloader_support efuse esp32 esp_common esp_hw_support esp_rom esp_system esptool_py freertos hal log main micro-ecc newlib partition_table soc spi_flash xtensa -- Component paths: /opt/esp/idf/components/bootloader /opt/esp/idf/components/bootloader_support /opt/esp/idf/components/efuse /opt/esp/idf/components/esp32 /opt/esp/idf/components/esp_common /opt/esp/idf/components/esp_hw_support /opt/esp/idf/components/esp_rom /opt/esp/idf/components/esp_system /opt/esp/idf/components/esptool_py /opt/esp/idf/components/freertos /opt/esp/idf/components/hal /opt/esp/idf/components/log /opt/esp/idf/components/bootloader/subproject/main /opt/esp/idf/components/bootloader/subproject/components/micro-ecc /opt/esp/idf/components/newlib /opt/esp/idf/components/partition_table /opt/esp/idf/components/soc /opt/esp/idf/components/spi_flash /opt/esp/idf/components/xtensa -- Configuring done (2.1s) -- Generating done (0.0s) -- Build files have been written to: /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/build/bootloader [1175/1211] Performing build step for 'bootloader' [1/97] Generating project_elf_src_esp32.c [2/97] Building C object CMakeFiles/bootloader.elf.dir/project_elf_src_esp32.c.obj [3/97] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/mpu_hal.c.obj [4/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/soc_include_legacy_warn.c.obj [5/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/lldesc.c.obj [6/97] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/cpu_hal.c.obj [7/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/dac_periph.c.obj [8/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/adc_periph.c.obj [9/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/gpio_periph.c.obj [10/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/i2c_periph.c.obj [11/97] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/wdt_hal_iram.c.obj [12/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/i2s_periph.c.obj [13/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/interrupts.c.obj [14/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/mcpwm_periph.c.obj [15/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/ledc_periph.c.obj [16/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/lcd_periph.c.obj [17/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/rmt_periph.c.obj [18/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/pcnt_periph.c.obj [19/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/rtc_io_periph.c.obj [20/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/sdio_slave_periph.c.obj [21/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/sdmmc_periph.c.obj [22/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/sigmadelta_periph.c.obj [23/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/spi_periph.c.obj [24/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/timer_periph.c.obj [25/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/touch_sensor_periph.c.obj [26/97] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/uart_periph.c.obj [27/97] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_clk.c.obj [28/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_clock_init.c.obj [29/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_common.c.obj [30/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_common_loader.c.obj [31/97] Building C object esp-idf/spi_flash/CMakeFiles/__idf_spi_flash.dir/esp32/spi_flash_rom_patch.c.obj [32/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_mem.c.obj [33/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_random.c.obj [34/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_random_esp32.c.obj [35/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_flash.c.obj [36/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/secure_boot.c.obj [37/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_encrypt.c.obj [38/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_utility.c.obj [39/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_partitions.c.obj [40/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_qio_mode.c.obj [41/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_efuse_esp32.c.obj [42/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_init.c.obj [43/97] Building C object esp-idf/micro-ecc/CMakeFiles/__idf_micro-ecc.dir/uECC_verify_antifault.c.obj [44/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp_image_format.c.obj [45/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_console_loader.c.obj [46/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_flash_config_esp32.c.obj [47/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_clock_loader.c.obj [48/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32/bootloader_soc.c.obj [49/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_panic.c.obj [50/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_console.c.obj [51/97] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32/esp_efuse_fields.c.obj [52/97] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32/esp_efuse_table.c.obj [53/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32/bootloader_sha.c.obj [54/97] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_fields.c.obj [55/97] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32/esp_efuse_utility.c.obj [56/97] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32/bootloader_esp32.c.obj [57/97] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_api.c.obj [58/97] Building C object esp-idf/esp_system/CMakeFiles/__idf_esp_system.dir/esp_err.c.obj [59/97] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_api_key_esp32.c.obj [60/97] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_utility.c.obj [61/97] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/compare_set.c.obj [62/97] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/cpu_util.c.obj [63/97] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_clk_init.c.obj [64/97] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_pm.c.obj [65/97] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_wdt.c.obj [66/97] Building C object esp-idf/xtensa/CMakeFiles/__idf_xtensa.dir/eri.c.obj [67/97] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_init.c.obj [68/97] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_sleep.c.obj [69/97] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/chip_info.c.obj [70/97] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_time.c.obj [71/97] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_crc.c.obj [72/97] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_sys.c.obj [73/97] Building C object esp-idf/xtensa/CMakeFiles/__idf_xtensa.dir/xt_trax.c.obj [74/97] Building C object esp-idf/esp_common/CMakeFiles/__idf_esp_common.dir/src/esp_err_to_name.c.obj [75/97] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_tjpgd.c.obj [76/97] Building ASM object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_longjmp.S.obj [77/97] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_uart.c.obj [78/97] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/bootloader_start.c.obj [79/97] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log.c.obj [80/97] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log_buffers.c.obj [81/97] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log_noos.c.obj [82/97] Linking C static library esp-idf/log/liblog.a [83/97] Linking C static library esp-idf/esp_rom/libesp_rom.a [84/97] Linking C static library esp-idf/esp_common/libesp_common.a [85/97] Linking C static library esp-idf/xtensa/libxtensa.a [86/97] Linking C static library esp-idf/esp_hw_support/libesp_hw_support.a [87/97] Linking C static library esp-idf/esp_system/libesp_system.a [88/97] Linking C static library esp-idf/efuse/libefuse.a [89/97] Linking C static library esp-idf/bootloader_support/libbootloader_support.a [90/97] Linking C static library esp-idf/spi_flash/libspi_flash.a [91/97] Linking C static library esp-idf/micro-ecc/libmicro-ecc.a [92/97] Linking C static library esp-idf/soc/libsoc.a [93/97] Linking C static library esp-idf/hal/libhal.a [94/97] Linking C static library esp-idf/main/libmain.a [95/97] Linking C executable bootloader.elf [96/97] Generating binary image from built executable esptool.py v3.3.2-dev Creating esp32 image... Merged 1 ELF section Successfully created esp32 image. Generated /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/build/bootloader/bootloader.bin [97/97] cd /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/build/bootloader/esp-idf/esptool_py && python /opt/esp/idf/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x1000 /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/build/bootloader/bootloader.bin Bootloader binary size 0x6330 bytes. 0xcd0 bytes (11%) free. [1205/1211] Building CXX object esp-idf/main/CMakeFiles/__idf_main.dir/hpg_cell_mqtt_correction_certs.cpp.obj FAILED: esp-idf/main/CMakeFiles/__idf_main.dir/hpg_cell_mqtt_correction_certs.cpp.obj ccache /opt/esp/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ -DHAVE_CONFIG_H -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -DUNITY_INCLUDE_CONFIG_H -DU_CFG_ENABLE_LOGGING=0 -DWITH_POSIX -I/workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/build/config -I/workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/examples/cellular/02_hpg_cell_mqtt_correction_certs/main -I/opt/esp/idf/components/newlib/platform_include -I/opt/esp/idf/components/freertos/include -I/opt/esp/idf/components/freertos/include/esp_additions/freertos -I/opt/esp/idf/components/freertos/port/xtensa/include -I/opt/esp/idf/components/freertos/include/esp_additions -I/opt/esp/idf/components/esp_hw_support/include -I/opt/esp/idf/components/esp_hw_support/include/soc -I/opt/esp/idf/components/esp_hw_support/include/soc/esp32 -I/opt/esp/idf/components/esp_hw_support/port/esp32/. -I/opt/esp/idf/components/esp_hw_support/port/esp32/private_include -I/opt/esp/idf/components/heap/include -I/opt/esp/idf/components/log/include -I/opt/esp/idf/components/lwip/include/apps -I/opt/esp/idf/components/lwip/include/apps/sntp -I/opt/esp/idf/components/lwip/lwip/src/include -I/opt/esp/idf/components/lwip/port/esp32/include -I/opt/esp/idf/components/lwip/port/esp32/include/arch -I/opt/esp/idf/components/soc/include -I/opt/esp/idf/components/soc/esp32/. -I/opt/esp/idf/components/soc/esp32/include -I/opt/esp/idf/components/hal/esp32/include -I/opt/esp/idf/components/hal/include -I/opt/esp/idf/components/hal/platform_port/include -I/opt/esp/idf/components/esp_rom/include -I/opt/esp/idf/components/esp_rom/include/esp32 -I/opt/esp/idf/components/esp_rom/esp32 -I/opt/esp/idf/components/esp_common/include -I/opt/esp/idf/components/esp_system/include -I/opt/esp/idf/components/esp_system/port/soc -I/opt/esp/idf/components/esp_system/port/public_compat -I/opt/esp/idf/components/esp32/include -I/opt/esp/idf/components/xtensa/include -I/opt/esp/idf/components/xtensa/esp32/include -I/opt/esp/idf/components/driver/include -I/opt/esp/idf/components/driver/esp32/include -I/opt/esp/idf/components/esp_pm/include -I/opt/esp/idf/components/esp_ringbuf/include -I/opt/esp/idf/components/efuse/include -I/opt/esp/idf/components/efuse/esp32/include -I/opt/esp/idf/components/vfs/include -I/opt/esp/idf/components/esp_wifi/include -I/opt/esp/idf/components/esp_event/include -I/opt/esp/idf/components/esp_netif/include -I/opt/esp/idf/components/esp_eth/include -I/opt/esp/idf/components/tcpip_adapter/include -I/opt/esp/idf/components/esp_phy/include -I/opt/esp/idf/components/esp_phy/esp32/include -I/opt/esp/idf/components/esp_ipc/include -I/opt/esp/idf/components/app_trace/include -I/opt/esp/idf/components/esp_timer/include -I/opt/esp/idf/components/mbedtls/port/include -I/opt/esp/idf/components/mbedtls/mbedtls/include -I/opt/esp/idf/components/mbedtls/esp_crt_bundle/include -I/opt/esp/idf/components/app_update/include -I/opt/esp/idf/components/spi_flash/include -I/opt/esp/idf/components/bootloader_support/include -I/opt/esp/idf/components/nvs_flash/include -I/opt/esp/idf/components/pthread/include -I/opt/esp/idf/components/esp_gdbstub/include -I/opt/esp/idf/components/esp_gdbstub/xtensa -I/opt/esp/idf/components/esp_gdbstub/esp32 -I/opt/esp/idf/components/espcoredump/include -I/opt/esp/idf/components/espcoredump/include/port/xtensa -I/opt/esp/idf/components/wpa_supplicant/include -I/opt/esp/idf/components/wpa_supplicant/port/include -I/opt/esp/idf/components/wpa_supplicant/esp_supplicant/include -I/opt/esp/idf/components/ieee802154/include -I/opt/esp/idf/components/console -I/opt/esp/idf/components/asio/asio/asio/include -I/opt/esp/idf/components/asio/port/include -I/opt/esp/idf/components/cbor/port/include -I/opt/esp/idf/components/unity/include -I/opt/esp/idf/components/unity/unity/src -I/opt/esp/idf/components/cmock/CMock/src -I/opt/esp/idf/components/coap/port/include -I/opt/esp/idf/components/coap/libcoap/include -I/opt/esp/idf/components/nghttp/port/include -I/opt/esp/idf/components/nghttp/nghttp2/lib/includes -I/opt/esp/idf/components/esp-tls -I/opt/esp/idf/components/esp-tls/esp-tls-crypto -I/opt/esp/idf/components/esp_adc_cal/include -I/opt/esp/idf/components/esp_hid/include -I/opt/esp/idf/components/tcp_transport/include -I/opt/esp/idf/components/esp_http_client/include -I/opt/esp/idf/components/esp_http_server/include -I/opt/esp/idf/components/esp_https_ota/include -I/opt/esp/idf/components/esp_https_server/include -I/opt/esp/idf/components/esp_lcd/include -I/opt/esp/idf/components/esp_lcd/interface -I/opt/esp/idf/components/protobuf-c/protobuf-c -I/opt/esp/idf/components/protocomm/include/common -I/opt/esp/idf/components/protocomm/include/security -I/opt/esp/idf/components/protocomm/include/transports -I/opt/esp/idf/components/mdns/include -I/opt/esp/idf/components/esp_local_ctrl/include -I/opt/esp/idf/components/sdmmc/include -I/opt/esp/idf/components/esp_serial_slave_link/include -I/opt/esp/idf/components/esp_websocket_client/include -I/opt/esp/idf/components/expat/expat/expat/lib -I/opt/esp/idf/components/expat/port/include -I/opt/esp/idf/components/wear_levelling/include -I/opt/esp/idf/components/fatfs/diskio -I/opt/esp/idf/components/fatfs/vfs -I/opt/esp/idf/components/fatfs/src -I/opt/esp/idf/components/freemodbus/common/include -I/opt/esp/idf/components/idf_test/include -I/opt/esp/idf/components/idf_test/include/esp32 -I/opt/esp/idf/components/jsmn/include -I/opt/esp/idf/components/json/cJSON -I/opt/esp/idf/components/libsodium/libsodium/src/libsodium/include -I/opt/esp/idf/components/libsodium/port_include -I/opt/esp/idf/components/mqtt/esp-mqtt/include -I/opt/esp/idf/components/openssl/include -I/opt/esp/idf/components/perfmon/include -I/opt/esp/idf/components/spiffs/include -I/opt/esp/idf/components/ulp/include -I/opt/esp/idf/components/wifi_provisioning/include -I/workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/boards/xplr-hpg2-c214 -I/workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/ubxlib/common/at_client/api -I/workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/ubxlib/common/error/api -I/workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/ubxlib/common/assert/api -I/workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/ubxlib/common/location/api -I/workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/ubxlib/common/mqtt_client/api -I/workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/ubxlib/common/http_client/api -I/workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/ubxlib/common/security/api -I/workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/ubxlib/common/sock/api -I/workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/ubxlib/common/ubx_protocol/api -I/workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/ubxlib/common/spartn/api -I/workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/ubxlib/common/utils/api -I/workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/ubxlib/port/platform/common/debug_utils/api -I/workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/ubxlib -I/workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/ubxlib/cfg -I/workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/ubxlib/common/type/api -I/workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/ubxlib/port/api -I/workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/ubxlib/common/network/api -I/workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/ubxlib/common/device/api -I/workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/ubxlib/common/short_range/api -I/workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/ubxlib/ble/api -I/workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/ubxlib/wifi/api -I/workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/ubxlib/cell/api -I/workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/ubxlib/gnss/api -I/workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/ubxlib/port/platform/esp-idf -I/workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/ubxlib/port/platform/esp-idf/mcu/esp32/cfg -I/workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/ubxlib/port/clib -I/workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/ubxlib/port/platform/common/mbedtls -I/workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/hpglib/src/common -I/workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/hpglib/src/nvs_service -I/workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/hpglib/src/com_service -I/workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/hpglib/src/mqttClient_service -I/workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/hpglib/src/httpClient_service -I/workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/hpglib/src/thingstream_service -I/workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/hpglib/src/location_service/location_service_helpers -I/workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/hpglib/src/location_service/gnss_service -I/workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/hpglib/src/location_service/lband_service -I/workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/xplr_ztp_json_parser/include -I/workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/xplr_mqtt/include -I/workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/xplr_wifi_starter/include -I/workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/xplr_ztp/include -mlongcalls -Wno-frame-address -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Og -fmacro-prefix-map=/workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW=. -fmacro-prefix-map=/opt/esp/idf=IDF -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -std=gnu++11 -fno-exceptions -fno-rtti -D_GNU_SOURCE -DIDF_VER=\"v4.4.2\" -DESP_PLATFORM -D_POSIX_READER_WRITER_LOCKS -MD -MT esp-idf/main/CMakeFiles/__idf_main.dir/hpg_cell_mqtt_correction_certs.cpp.obj -MF esp-idf/main/CMakeFiles/__idf_main.dir/hpg_cell_mqtt_correction_certs.cpp.obj.d -o esp-idf/main/CMakeFiles/__idf_main.dir/hpg_cell_mqtt_correction_certs.cpp.obj -c /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/examples/cellular/02_hpg_cell_mqtt_correction_certs/main/hpg_cell_mqtt_correction_certs.cpp In file included from /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/boards/xplr-hpg2-c214/./../../../components/hpglib/src/com_service/xplr_com.h:26, from /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/examples/cellular/02_hpg_cell_mqtt_correction_certs/main/hpg_cell_mqtt_correction_certs.cpp:50: /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/boards/xplr-hpg2-c214/./../../../components/hpglib/src/com_service/xplr_com_types.h:97:33: error: expected type-specifier before '[' token char operator[32]; /**< Network operator name. */ ^ In file included from /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/boards/xplr-hpg2-c214/./../../../components/hpglib/src/mqttClient_service/xplr_mqtt_client_types.h:27, from /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/boards/xplr-hpg2-c214/./../../../components/hpglib/src/mqttClient_service/xplr_mqtt_client.h:26, from /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/examples/cellular/02_hpg_cell_mqtt_correction_certs/main/hpg_cell_mqtt_correction_certs.cpp:51: /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/components/boards/xplr-hpg2-c214/./../../../components/hpglib/src/mqttClient_service/./../../../../components/hpglib/src/nvs_service/xplr_nvs.h:72:57: error: expected ',' or '...' before 'namespace' xplrNvs_error_t xplrNvsInit(xplrNvs_t* nvs, const char* namespace); ^~~~~~~~~ /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/examples/cellular/02_hpg_cell_mqtt_correction_certs/main/hpg_cell_mqtt_correction_certs.cpp: In function 'void configCellMqttSettings(xplrCell_mqtt_client_t*)': /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/examples/cellular/02_hpg_cell_mqtt_correction_certs/main/hpg_cell_mqtt_correction_certs.cpp:491:28: error: cannot convert 'uMqttQos_t' to 'uCellMqttQos_t' in assignment client->settings.qos = U_MQTT_QOS_AT_MOST_ONCE; ^~~~~~~~~~~~~~~~~~~~~~~ /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/examples/cellular/02_hpg_cell_mqtt_correction_certs/main/hpg_cell_mqtt_correction_certs.cpp: In function 'void timerInit()': /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/examples/cellular/02_hpg_cell_mqtt_correction_certs/main/hpg_cell_mqtt_correction_certs.cpp:530:5: warning: missing initializer for member 'timer_config_t::alarm_en' [-Wmissing-field-initializers] }; ^ /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/examples/cellular/02_hpg_cell_mqtt_correction_certs/main/hpg_cell_mqtt_correction_certs.cpp:530:5: warning: missing initializer for member 'timer_config_t::counter_en' [-Wmissing-field-initializers] /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/examples/cellular/02_hpg_cell_mqtt_correction_certs/main/hpg_cell_mqtt_correction_certs.cpp:530:5: warning: missing initializer for member 'timer_config_t::intr_type' [-Wmissing-field-initializers] /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/examples/cellular/02_hpg_cell_mqtt_correction_certs/main/hpg_cell_mqtt_correction_certs.cpp:530:5: warning: missing initializer for member 'timer_config_t::counter_dir' [-Wmissing-field-initializers] /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/examples/cellular/02_hpg_cell_mqtt_correction_certs/main/hpg_cell_mqtt_correction_certs.cpp:530:5: warning: missing initializer for member 'timer_config_t::auto_reload' [-Wmissing-field-initializers] /workspaces/tmp/XPLR-HPG-software/XPLR-HPG-SW/examples/cellular/02_hpg_cell_mqtt_correction_certs/main/hpg_cell_mqtt_correction_certs.cpp:530:5: error: designator order for field 'timer_config_t::counter_dir' does not match declaration order in 'timer_config_t' ninja: build stopped: subcommand failed. ```

Fix:

https://github.com/TendedLtd/XPLR-HPG-software/commit/6fcb6cb9237794e7b815713c57c0766a25dd2d44 fixes this by renaming the variables and https://github.com/TendedLtd/XPLR-HPG-software/commit/fb25c293957cd6ccf217dd9bff2d3f0a9434de97 fixes some C++ errors in hpg_cell_mqtt_correction_certs.cpp to prove that the fix works. The changes in prove-fb25c29-fixes-#8 allow the project to be built successfully.

Let me know if this is a valid issue. I have opened #9 in case you are accepting PRs.

aangeletos commented 1 year ago

Hello Francisco,
glad to hear that you are working with our repo. Unfortunately we are not testing the repo against C++ builds but your feedback is welcome.
We are going to release a new version of the repo with some additional features like ntrip client support, dead reckoning, sd logging, MQTT Thingstream update for cellular and more. The update version will be public next week and is highly recommended to try it.
As soon as the updated version (v1.0) of the repo is up we will create a branch with your proposed changes to ease your migration to it.
I hope that works for you.

Best, Alex

fng97 commented 1 year ago

Hello Francisco, glad to hear that you are working with our repo. Unfortunately we are not testing the repo against C++ builds but your feedback is welcome. We are going to release a new version of the repo with some additional features like ntrip client support, dead reckoning, sd logging, MQTT Thingstream update for cellular and more. The update version will be public next week and is highly recommended to try it.As soon as the updated version (v1.0) of the repo is up we will create a branch with your proposed changes to ease your migration to it. I hope that works for you.

Best, Alex

Hiya Alex. Looking forward to trying it all. Thanks for the update!

aangeletos commented 1 year ago

Hello @fng97,
V1.0 of xplr-hpg is up, introducing more features to the kits. You can have a look at the release notes if you want. A branch with related renamings to forbidden C++ keywords was also created that may be of interest for you.

V1.0 of the software brings some changes regarding the functionality of the location_service module but we tried to keep it as simple as possible for the end user. If you find any difficulties migrating to the latest version please let me know and we will support you :) Please feel free to close the issue if you are happy the created branch.

Best, Alex

fng97 commented 1 year ago

Hello @fng97, V1.0 of xplr-hpg is up, introducing more features to the kits. You can have a look at the release notes if you want. A branch with related renamings to forbidden C++ keywords was also created that may be of interest for you.

V1.0 of the software brings some changes regarding the functionality of the location_service module but we tried to keep it as simple as possible for the end user. If you find any difficulties migrating to the latest version please let me know and we will support you :) Please feel free to close the issue if you are happy the created branch.

Best, Alex

Hiya Alex. Very exciting! I'll be trying out NTRIP and SD card logging today!

Thanks for adding a branch with those changes. Just to clarify, will that branch be merged or is the intention that my submodule should track the commit in that branch?

aangeletos commented 1 year ago

Hey Francisco, Renamings will be merged at some point (in next release) but we did that just for your convenience and to try out the latest version of the repo :)

Feedback regarding new features or requests for new features is always welcome!

fng97 commented 1 year ago

Hey Francisco, Renamings will be merged at some point (in next release) but we did that just for your convenience and to try out the latest version of the repo :)

Great, thank you! I'll track that branch for now :)

Should this issue remain open until it is merged or would you prefer it be closed now?

Feedback regarding new features or requests for new features is always welcome!

Thank you! I will reach out if anything comes up

aangeletos commented 1 year ago

If no other changes are needed for your C++ needs then please close the issue. I will make sure to keep the renamed variables for the next release :)

fng97 commented 1 year ago

If no other changes are needed for your C++ needs then please close the issue. I will make sure to keep the renamed variables for the next release :)

Sure thing. I'll test this and then close the issue.