Closed ferdytao closed 6 months ago
How exactly are you compiling? What's your build system, do you use the VM I provided?
In general you can follow these steps:
https://github.com/technyon/coffeetimer
Select minspiffs as the partitioning scheme.
Thanks for your reply, I'm actually compiling for esp32c3 using your VM, I changed all the references to riscv compiler. The previous error was resolved, now I got this error when launching ninja
This is an example:
[6/334] Building CXX object CMakeFiles/nuki_hub.dir/Network.cpp.o
FAILED: CMakeFiles/nuki_hub.dir/Network.cpp.o
/home/nuki/.arduino15/packages/esp32/tools/riscv32-esp-elf-gcc/esp-2021r2-patch5-8.4.0/bin/riscv32-esp-elf-g++ -DHAVE_CONFIG_H "-DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\"" -DUNITY_INCLUDE_CONFIG_H -DWITH_POSIX -D_GNU_SOURCE "-DIDF_VER=\"v4.4.6-dirty\"" -DESP_PLATFORM -D_POSIX_READER_WRITER_LOCKS -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/newlib/platform_include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/freertos/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/freertos/include/esp_additions/freertos -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/freertos/port/riscv/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/freertos/include/esp_additions -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp_hw_support/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp_hw_support/include/soc -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp_hw_support/include/soc/esp32c3 -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp_hw_support/port/esp32c3 -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp_hw_support/port/esp32c3/private_include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/heap/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/log/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/lwip/include/apps -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/lwip/include/apps/sntp -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/lwip/lwip/src/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/lwip/port/esp32/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/lwip/port/esp32/include/arch -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/soc/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/soc/esp32c3 -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/soc/esp32c3/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/hal/esp32c3/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/hal/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/hal/platform_port/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp_rom/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp_rom/include/esp32c3 -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp_rom/esp32c3 -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp_common/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp_system/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp_system/port/soc -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp_system/port/include/riscv -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp_system/port/public_compat -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/riscv/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/driver/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/driver/esp32c3/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp_pm/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp_ringbuf/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/efuse/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/efuse/esp32c3/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/vfs/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp_wifi/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp_event/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp_netif/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp_eth/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/tcpip_adapter/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp_phy/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp_phy/esp32c3/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp_ipc/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/app_trace/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp_timer/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/mbedtls/port/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/mbedtls/mbedtls/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/mbedtls/esp_crt_bundle/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/app_update/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/spi_flash/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/bootloader_support/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/nvs_flash/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/pthread/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp_gdbstub/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp_gdbstub/riscv -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp_gdbstub/esp32c3 -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/espcoredump/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/espcoredump/include/port/riscv -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/wpa_supplicant/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/wpa_supplicant/port/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/wpa_supplicant/esp_supplicant/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/ieee802154/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/console -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/asio/asio/asio/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/asio/port/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/bt/common/osi/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/bt/include/esp32c3/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/bt/common/api/include/api -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/bt/common/btc/profile/esp/blufi/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/bt/common/btc/profile/esp/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/bt/host/bluedroid/api/include/api -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/bt/esp_ble_mesh/mesh_common/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/bt/esp_ble_mesh/mesh_common/tinycrypt/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/bt/esp_ble_mesh/mesh_core -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/bt/esp_ble_mesh/mesh_core/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/bt/esp_ble_mesh/mesh_core/storage -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/bt/esp_ble_mesh/btc/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/bt/esp_ble_mesh/mesh_models/common/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/bt/esp_ble_mesh/mesh_models/client/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/bt/esp_ble_mesh/mesh_models/server/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/bt/esp_ble_mesh/api/core/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/bt/esp_ble_mesh/api/models/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/bt/esp_ble_mesh/api -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/cbor/port/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/unity/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/unity/unity/src -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/cmock/CMock/src -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/coap/port/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/coap/libcoap/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/nghttp/port/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/nghttp/nghttp2/lib/includes -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp-tls -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp-tls/esp-tls-crypto -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp_adc_cal/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp_hid/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/tcp_transport/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp_http_client/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp_http_server/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp_https_ota/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp_https_server/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp_lcd/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp_lcd/interface -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/protobuf-c/protobuf-c -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/protocomm/include/common -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/protocomm/include/security -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/protocomm/include/transports -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/mdns/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp_local_ctrl/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/sdmmc/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp_serial_slave_link/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp_websocket_client/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/expat/expat/expat/lib -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/expat/port/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/wear_levelling/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/fatfs/diskio -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/fatfs/vfs -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/fatfs/src -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/freemodbus/freemodbus/common/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/idf_test/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/idf_test/include/esp32c3 -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/jsmn/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/json/cJSON -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/libsodium/libsodium/src/libsodium/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/libsodium/port_include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/mqtt/esp-mqtt/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/openssl/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/spiffs/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/wifi_provisioning/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/rmaker_common/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp_diagnostics/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/rtc_store/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp_insights/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/json_parser/upstream/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/json_parser/upstream -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/json_generator/upstream -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp_schedule/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/espressif__esp_secure_cert_mgr/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp_rainmaker/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/gpio_button/button/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/qrcode/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/ws2812_led -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp_littlefs/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp-dl/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp-dl/include/tool -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp-dl/include/typedef -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp-dl/include/image -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp-dl/include/math -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp-dl/include/nn -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp-dl/include/layer -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp-dl/include/detect -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp-dl/include/model_zoo -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp32-camera/driver/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/esp32-camera/conversions/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/espressif__esp-dsp/modules/dotprod/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/espressif__esp-dsp/modules/support/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/espressif__esp-dsp/modules/support/mem/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/espressif__esp-dsp/modules/windows/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/espressif__esp-dsp/modules/windows/hann/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/espressif__esp-dsp/modules/windows/blackman/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/espressif__esp-dsp/modules/windows/blackman_harris/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/espressif__esp-dsp/modules/windows/blackman_nuttall/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/espressif__esp-dsp/modules/windows/nuttall/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/espressif__esp-dsp/modules/windows/flat_top/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/espressif__esp-dsp/modules/iir/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/espressif__esp-dsp/modules/fir/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/espressif__esp-dsp/modules/math/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/espressif__esp-dsp/modules/math/add/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/espressif__esp-dsp/modules/math/sub/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/espressif__esp-dsp/modules/math/mul/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/espressif__esp-dsp/modules/math/addc/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/espressif__esp-dsp/modules/math/mulc/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/espressif__esp-dsp/modules/math/sqrt/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/espressif__esp-dsp/modules/matrix/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/espressif__esp-dsp/modules/fft/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/espressif__esp-dsp/modules/dct/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/espressif__esp-dsp/modules/conv/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/espressif__esp-dsp/modules/common/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/espressif__esp-dsp/modules/kalman/ekf/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/espressif__esp-dsp/modules/kalman/ekf_imu13states/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/include/fb_gfx/include -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/tools/sdk/esp32c3/qio_qspi/include -march=rv32imc -ffunction-sections -fdata-sections -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-sign-compare -ggdb -Wno-error=format= -nostartfiles -Wno-format -freorder-blocks -Wwrite-strings -fstack-protector -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -std=gnu++11 -fexceptions -fno-rtti -MMD -c -w -Os -DF_CPU=160000000L -DARDUINO=108019 -DARDUINO_ESP32C3_DEV -DARDUINO_ARCH_ESP32 "-DARDUINO_BOARD=\"ESP32C3_DEV\"" "-DARDUINO_VARIANT=\"esp32c3\"" -DARDUINO_PARTITION_default -DESP32 -DCORE_DEBUG_LEVEL=0 -DARDUINO_USB_MODE=1 -DARDUINO_USB_CDC_ON_BOOT=0 @/home/nuki/projects/nuki_hub/build-c3/build_opt.h @/home/nuki/projects/nuki_hub/build-c3/file_opts -DARDUHAL_LOG_LEVEL=ARDUHAL_LOG_LEVEL_NONE -DARDUINO_ARCH_ESP32 -DARDUINO_ESP32_ESP32C3_MENU_CDCONBOOT_DEFAULT -DARDUINO_ESP32_ESP32C3_MENU_CPUFREQ_160 -DARDUINO_ESP32_ESP32C3_MENU_DEBUGLEVEL_NONE -DARDUINO_ESP32_ESP32C3_MENU_ERASEFLASH_NONE -DARDUINO_ESP32_ESP32C3_MENU_FLASHFREQ_80 -DARDUINO_ESP32_ESP32C3_MENU_FLASHMODE_QIO -DARDUINO_ESP32_ESP32C3_MENU_FLASHSIZE_4M -DARDUINO_ESP32_ESP32C3_MENU_JTAGADAPTER_DEFAULT -DARDUINO_ESP32_ESP32C3_MENU_PARTITIONSCHEME_DEFAULT -DARDUINO_ESP32_ESP32C3_MENU_UPLOADSPEED_921600 -DCONFIG_NIMBLE_CPP_LOG_LEVEL=0 -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_NONE -DESP32 -DESP_PLATFORM -DTLS_CA_MAX_SIZE=2200 -DTLS_CERT_MAX_SIZE=1500 -DTLS_KEY_MAX_SIZE=1800 -I/home/nuki/projects/nuki_hub/nuki_hub -I/home/nuki/projects/nuki_hub/PRIVATE -I/home/nuki/projects/nuki_hub/lib/Crc16 -I/home/nuki/projects/nuki_hub/lib/NimBLE-Arduino/src -I/home/nuki/projects/nuki_hub/lib/BleScanner/src -I/home/nuki/projects/nuki_hub/lib/nuki_ble/src -I/home/nuki/projects/nuki_hub/lib/WiFiManager -I/home/nuki/projects/nuki_hub/lib/WebServer/src -I/home/nuki/projects/nuki_hub/lib/Ethernet/src -I/home/nuki/projects/nuki_hub/lib/MqttLogger/src -I/home/nuki/projects/nuki_hub/lib/espMqttClient/src -I/home/nuki/projects/nuki_hub/lib/AsyncTCP/src -I/home/nuki/projects/nuki_hub/lib/ArduinoJson/src -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/cores/esp32 -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/variants/esp32c3 -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/libraries/BLE/src -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/libraries/WiFi/src -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/libraries/WiFiClientSecure/src -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/libraries/HTTPClient/src -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/libraries/DNSServer/src -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/libraries/Update/src -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/libraries/Preferences/src -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/libraries/Ethernet/src -I/home/nuki/.arduino15/packages/esp32/hardware/esp32/2.0.14/libraries/SPI/src -O3 -DNDEBUG -MD -MT CMakeFiles/nuki_hub.dir/Network.cpp.o -MF CMakeFiles/nuki_hub.dir/Network.cpp.o.d /home/nuki/projects/nuki_hub/Network.cpp -o CMakeFiles/nuki_hub.dir/Network.cpp.o
In file included from /home/nuki/projects/nuki_hub/Network.cpp:2:
/home/nuki/projects/nuki_hub/PreferencesKeys.h:102:18: error: 'const String DebugPreferences::redact(int) const' cannot be overloaded with 'const String DebugPreferences::redact(int) const'
const String redact(const int i) const
^~~~~~
In file included from /home/nuki/projects/nuki_hub/Network.cpp:2:
/home/nuki/projects/nuki_hub/PreferencesKeys.h:61:18: note: previous declaration 'const String DebugPreferences::redact(int) const'
const String redact(const int i) const;
^~~~~~
In file included from /home/nuki/projects/nuki_hub/Network.cpp:2:
/home/nuki/projects/nuki_hub/PreferencesKeys.h: In member function 'const void DebugPreferences::appendPreferenceInt32(Preferences*, String&, const char*, const char*)':
/home/nuki/projects/nuki_hub/PreferencesKeys.h:151:67: error: call of overloaded 'redact(int32_t)' is ambiguous
s.concat(isRedacted(key) ? redact(preferences->getInt(key)) : String(preferences->getInt(key)));
^
In file included from /home/nuki/projects/nuki_hub/Network.cpp:2:
/home/nuki/projects/nuki_hub/PreferencesKeys.h:61:18: note: candidate: 'const String DebugPreferences::redact(int) const'
const String redact(const int i) const;
^~~~~~
In file included from /home/nuki/projects/nuki_hub/Network.cpp:2:
/home/nuki/projects/nuki_hub/PreferencesKeys.h:106:18: note: candidate: 'const String DebugPreferences::redact(uint) const'
const String redact(const uint i) const
^~~~~~
/home/nuki/projects/nuki_hub/PreferencesKeys.h:110:18: note: candidate: 'const String DebugPreferences::redact(int64_t) const'
const String redact(const int64_t i) const
^~~~~~
/home/nuki/projects/nuki_hub/PreferencesKeys.h:114:18: note: candidate: 'const String DebugPreferences::redact(uint64_t) const'
const String redact(const uint64_t i) const
^~~~~~
/home/nuki/projects/nuki_hub/PreferencesKeys.h: In member function 'const void DebugPreferences::appendPreferenceUInt32(Preferences*, String&, const char*, const char*)':
/home/nuki/projects/nuki_hub/PreferencesKeys.h:158:68: error: call of overloaded 'redact(uint32_t)' is ambiguous
s.concat(isRedacted(key) ? redact(preferences->getUInt(key)) : String(preferences->getUInt(key)));
^
In file included from /home/nuki/projects/nuki_hub/Network.cpp:2:
/home/nuki/projects/nuki_hub/PreferencesKeys.h:61:18: note: candidate: 'const String DebugPreferences::redact(int) const'
const String redact(const int i) const;
^~~~~~
In file included from /home/nuki/projects/nuki_hub/Network.cpp:2:
/home/nuki/projects/nuki_hub/PreferencesKeys.h:106:18: note: candidate: 'const String DebugPreferences::redact(uint) const'
const String redact(const uint i) const
^~~~~~
/home/nuki/projects/nuki_hub/PreferencesKeys.h:110:18: note: candidate: 'const String DebugPreferences::redact(int64_t) const'
const String redact(const int64_t i) const
^~~~~~
/home/nuki/projects/nuki_hub/PreferencesKeys.h:114:18: note: candidate: 'const String DebugPreferences::redact(uint64_t) const'
const String redact(const uint64_t i) const
^~~~~~
ninja: build stopped: subcommand failed.
It seems the risc-v compiler can's manage the method overloads. Taking a guess, maybe try to make them more specific (see code below).
Why are you using a different compiler in the first place, any specific requirements you have?
Another thing, the c3 is a single core chip. You'll have to rebuild your own "Arduino core for ESP32" built for one CPU core only, otherwise your binary will crash.
--
const String redact(const String s) const
{
return s == "" ? "" : "***";
}
const String redact(const int32_t i) const
{
return i == 0 ? "" : "***";
}
const String redact(const uint32_t i) const
{
return i == 0 ? "" : "***";
}
const String redact(const int64_t i) const
{
return i == 0 ? "" : "***";
}
const String redact(const uint64_t i) const
{
return i == 0 ? "" : "***";
}
Ok thanks for the tips, I'm not using a different compiler, just following the instructions on Github cmake .. -G Ninja
and ninja
to compile it.
I will try to find the instruction how to rebuild the Arduino core for my esp32c3 board. I'm not a programmer so I'm studying step by step all things are going to happen.
I'm trying to compile from source but I always got this error:
I can't understand how to solve this error, tried to revert back to the original CMakeLists.txt but was the same error