Comments (11)
--- stderr
Error: Cannot derive default PIO platform, MCU and frameworks for target 'x86_64-unknown-linux-gnu'
Noticed the above ^^^ (emphasis mine)?
You are building the esp-idf-sys
for the wrong target. There is no way to build esp-idf-sys
for Linux. Only for Espressif chips.
Which brings the question: are you building the rust-esp32-std-hello
binary crate, and following the instructions? Because the rust-esp32-std-hello
crate does have a .cargo/config.toml
file, where the correct Rust target is already specified?
Or are you trying to just build esp-idf-sys
separately from rust-esp32-std-hello
? That's possible, but you have to specify a bunch of command line parameters, like a correct --target
as well as -Zbuild-std=...
. If you are doing this, I don't see the purpose? As discussed - please try to work incrementally - build the rust-esp32-std-hello
crate first. It will also build esp-idf-sys
.
from esp-idf-sys.
from esp-idf-sys.
Did you switch to cargo nightly first, as described in the rust-esp32-std-hello README.md file?
Did it say something during the build process? Like 'invalid target'?
It looks as if it is not picking up the target from here.
from esp-idf-sys.
I had an old PlatformIO setup (now deleted) which created a bad target device (esp32-c3-devkitm-1) which the build process did not like. So I removed the .platformio directory, and did a cargo clean.
Running cargo build ran through a lot of stuff successfully, but then failed - generating a log of 130KB, so I reran cargo build so as just to get the error step log, and it says:-
cargo build
Compiling esp-idf-sys v0.16.4
error: failed to run custom build command for esp-idf-sys v0.16.4
Caused by:
process didn't exit successfully: /home/david/git/rust-esp32-std-hello/target/debug/build/esp-idf-sys-54b8f62162d113ff/build-script-build
(exit status: 1)
--- stdout
Found compatible PlatformIO Core 5.1.1 -> /home/david/.platformio/penv/bin/platformio
cargo:rerun-if-changed=./patches/master_missing_xtensa_atomics_fix.diff
cargo:rerun-if-changed=./patches/missing_xtensa_atomics_fix.diff
cargo:rerun-if-changed=./patches/esp32c3_atomics_emul.diff
cargo:rerun-if-changed=./patches/master_restore_link_fragments_for_pio.diff
cargo:rerun-if-changed=./patches/pthread_destructor_fix.diff
Warning! Ignore unknown configuration option patches
in section [env]
Processing debug (board: esp32-c3-devkitm-1; platform: espressif32; framework: espidf)
Verbose mode can be enabled via -v, --verbose
option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32-c3-devkitm-1.html
PLATFORM: Espressif 32 (3.3.1) > Espressif ESP32-C3-DevKitM-1
HARDWARE: ESP32C3 160MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
- framework-espidf 3.40300.0 (4.3.0)
- tool-cmake 3.16.4
- tool-esptoolpy 1.30100.210531 (3.1.0)
- tool-ninja 1.7.1
- toolchain-riscv-esp 1.80400.0 (8.4.0)
Reading CMake configuration...
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 0 compatible libraries
Scanning dependencies...
No dependencies
Building in debug mode
Retrieving maximum program size .pio/build/debug/firmware.elf
Checking size .pio/build/debug/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [ ] 3.2% (used 10552 bytes from 327680 bytes)
Flash: [= ] 15.0% (used 156798 bytes from 1048576 bytes)
========================= [SUCCESS] Took 6.00 seconds =========================
Environment Status Duration
debug SUCCESS 00:00:06.001
========================= 1 succeeded in 00:00:06.001 =========================
cargo:CARGO_PIO_LINK_ARGS=--cargo-pio-link-linker=/home/david/.platformio/packages/toolchain-riscv-esp/bin/riscv32-esp-elf-gcc --cargo-pio-link-remove-duplicate-libs -L/home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf -L/home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug -L/home/david/.platformio/packages/framework-espidf/components/esp_wifi/lib/esp32c3 -L/home/david/.platformio/packages/framework-espidf/components/esp_rom/esp32c3/ld -L/home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/esp32c3 -L/home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/esp32c3/ld -L/home/david/.platformio/packages/framework-espidf/components/esp32c3/ld -Wl,--start-group /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/esp_pm/libesp_pm.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/asio/libasio.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/cbor/libcbor.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/unity/libunity.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/cmock/libcmock.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/coap/libcoap.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/console/libconsole.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/esp_adc_cal/libesp_adc_cal.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/esp_hid/libesp_hid.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/protobuf-c/libprotobuf-c.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/protocomm/libprotocomm.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/mdns/libmdns.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/esp_local_ctrl/libesp_local_ctrl.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/esp_websocket_client/libesp_websocket_client.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/expat/libexpat.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/wear_levelling/libwear_levelling.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/fatfs/libfatfs.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/freemodbus/libfreemodbus.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/jsmn/libjsmn.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/json/libjson.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/libsodium/liblibsodium.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/mqtt/libmqtt.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/openssl/libopenssl.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/spiffs/libspiffs.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/wifi_provisioning/libwifi_provisioning.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/app_trace/libapp_trace.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/app_update/libapp_update.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/bootloader_support/libbootloader_support.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/cxx/libcxx.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/driver/libdriver.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/efuse/libefuse.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/esp-tls/libesp-tls.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/esp32c3/libesp32c3.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/esp_common/libesp_common.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/esp_eth/libesp_eth.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/esp_event/libesp_event.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/esp_gdbstub/libesp_gdbstub.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/esp_http_client/libesp_http_client.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/esp_http_server/libesp_http_server.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/esp_https_ota/libesp_https_ota.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/esp_hw_support/libesp_hw_support.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/esp_ipc/libesp_ipc.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/esp_netif/libesp_netif.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/esp_ringbuf/libesp_ringbuf.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/esp_rom/libesp_rom.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/esp_serial_slave_link/libesp_serial_slave_link.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/esp_system/libesp_system.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/esp_timer/libesp_timer.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/esp_wifi/libesp_wifi.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/espcoredump/libespcoredump.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/freertos/libfreertos.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/hal/libhal.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/heap/libheap.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/log/liblog.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/lwip/liblwip.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/mbedtls/libmbedtls.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/newlib/libnewlib.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/nghttp/libnghttp.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/nvs_flash/libnvs_flash.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/pthread/libpthread.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/riscv/libriscv.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/sdmmc/libsdmmc.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/soc/libsoc.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/spi_flash/libspi_flash.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/tcp_transport/libtcp_transport.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/tcpip_adapter/libtcpip_adapter.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/vfs/libvfs.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/wpa_supplicant/libwpa_supplicant.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/mbedtls/mbedtls/library/libmbedcrypto.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/mbedtls/mbedtls/library/libmbedtls.a /home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf/mbedtls/mbedtls/library/libmbedx509.a -lcoexist -lcore -lespnow -lmesh -lnet80211 -lpp -lsmartconfig -lwapi -lphy -lm -lgcc -lstdc++ -lgcov -lc -Wl,--end-group -T esp32c3_out.ld -u esp_app_desc -u pthread_include_pthread_impl -u pthread_include_pthread_cond_impl -u pthread_include_pthread_local_storage_impl -u start_app -T esp32c3.rom.ld -T esp32c3.rom.api.ld -T esp32c3.rom.libgcc.ld -T esp32c3.rom.newlib.ld -T esp32c3.rom.version.ld -T esp32c3.rom.eco3.ld -u vfs_include_syscalls_impl -T esp32c3.project.ld -T esp32c3.peripherals.ld -u call_user_start_cpu0 -u app_main -u newlib_include_heap_impl -u newlib_include_syscalls_impl -u newlib_include_pthread_impl -u __cxa_guard_dummy -u __cxx_fatal_exception --specs=nosys.specs -Wl,--Map=/home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/esp-idf.map -Wl,--cref -Wl,--gc-sections -Wl,--undefined=riscv_handle_illegal_instruction -Wl,--undefined=uxTopUsedPriority -Wl,--wrap=mbedtls_mpi_exp_mod -fno-lto -fno-rtti -march=rv32imc -nostartfiles -Og -g2 -ggdb2
cargo:CARGO_PIO_C_INCLUDE_ARGS=-I/home/david/.platformio/packages/framework-espidf/components/esp_pm/include -I/home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/config -I/home/david/.platformio/packages/framework-espidf/components/newlib/platform_include -I/home/david/.platformio/packages/framework-espidf/components/freertos/include -I/home/david/.platformio/packages/framework-espidf/components/freertos/port/riscv/include -I/home/david/.platformio/packages/framework-espidf/components/esp_hw_support/include -I/home/david/.platformio/packages/framework-espidf/components/esp_hw_support/port/esp32c3/. -I/home/david/.platformio/packages/framework-espidf/components/esp_hw_support/port/esp32c3/private_include -I/home/david/.platformio/packages/framework-espidf/components/heap/include -I/home/david/.platformio/packages/framework-espidf/components/log/include -I/home/david/.platformio/packages/framework-espidf/components/lwip/include/apps -I/home/david/.platformio/packages/framework-espidf/components/lwip/include/apps/sntp -I/home/david/.platformio/packages/framework-espidf/components/lwip/lwip/src/include -I/home/david/.platformio/packages/framework-espidf/components/lwip/port/esp32/include -I/home/david/.platformio/packages/framework-espidf/components/lwip/port/esp32/include/arch -I/home/david/.platformio/packages/framework-espidf/components/soc/include -I/home/david/.platformio/packages/framework-espidf/components/soc/esp32c3/. -I/home/david/.platformio/packages/framework-espidf/components/soc/esp32c3/include -I/home/david/.platformio/packages/framework-espidf/components/hal/esp32c3/include -I/home/david/.platformio/packages/framework-espidf/components/hal/include -I/home/david/.platformio/packages/framework-espidf/components/esp_rom/include -I/home/david/.platformio/packages/framework-espidf/components/esp_rom/esp32c3 -I/home/david/.platformio/packages/framework-espidf/components/esp_common/include -I/home/david/.platformio/packages/framework-espidf/components/esp_system/include -I/home/david/.platformio/packages/framework-espidf/components/esp32c3/include -I/home/david/.platformio/packages/framework-espidf/components/driver/include -I/home/david/.platformio/packages/framework-espidf/components/driver/esp32c3/include -I/home/david/.platformio/packages/framework-espidf/components/esp_ringbuf/include -I/home/david/.platformio/packages/framework-espidf/components/efuse/include -I/home/david/.platformio/packages/framework-espidf/components/efuse/esp32c3/include -I/home/david/.platformio/packages/framework-espidf/components/riscv/include -I/home/david/.platformio/packages/framework-espidf/components/espcoredump/include -I/home/david/.platformio/packages/framework-espidf/components/esp_timer/include -I/home/david/.platformio/packages/framework-espidf/components/esp_ipc/include -I/home/david/.platformio/packages/framework-espidf/components/vfs/include -I/home/david/.platformio/packages/framework-espidf/components/esp_wifi/include -I/home/david/.platformio/packages/framework-espidf/components/esp_wifi/esp32c3/include -I/home/david/.platformio/packages/framework-espidf/components/esp_event/include -I/home/david/.platformio/packages/framework-espidf/components/esp_netif/include -I/home/david/.platformio/packages/framework-espidf/components/esp_eth/include -I/home/david/.platformio/packages/framework-espidf/components/tcpip_adapter/include -I/home/david/.platformio/packages/framework-espidf/components/mbedtls/port/include -I/home/david/.platformio/packages/framework-espidf/components/mbedtls/mbedtls/include -I/home/david/.platformio/packages/framework-espidf/components/mbedtls/esp_crt_bundle/include -I/home/david/.platformio/packages/framework-espidf/components/app_update/include -I/home/david/.platformio/packages/framework-espidf/components/spi_flash/include -I/home/david/.platformio/packages/framework-espidf/components/bootloader_support/include -I/home/david/.platformio/packages/framework-espidf/components/nvs_flash/include -I/home/david/.platformio/packages/framework-espidf/components/pthread/include -I/home/david/.platformio/packages/framework-espidf/components/esp_gdbstub/include -I/home/david/.platformio/packages/framework-espidf/components/esp_gdbstub/riscv -I/home/david/.platformio/packages/framework-espidf/components/esp_gdbstub/esp32c3 -I/home/david/.platformio/packages/framework-espidf/components/wpa_supplicant/include -I/home/david/.platformio/packages/framework-espidf/components/wpa_supplicant/port/include -I/home/david/.platformio/packages/framework-espidf/components/wpa_supplicant/include/esp_supplicant -I/home/david/.platformio/packages/framework-espidf/components/app_trace/include -I/home/david/.platformio/packages/framework-espidf/components/asio/asio/asio/include -I/home/david/.platformio/packages/framework-espidf/components/asio/port/include -I/home/david/.platformio/packages/framework-espidf/components/cbor/port/include -I/home/david/.platformio/packages/framework-espidf/components/unity/include -I/home/david/.platformio/packages/framework-espidf/components/unity/unity/src -I/home/david/.platformio/packages/framework-espidf/components/cmock/CMock/src -I/home/david/.platformio/packages/framework-espidf/components/coap/port/include -I/home/david/.platformio/packages/framework-espidf/components/coap/port/include/coap -I/home/david/.platformio/packages/framework-espidf/components/coap/libcoap/include -I/home/david/.platformio/packages/framework-espidf/components/coap/libcoap/include/coap2 -I/home/david/.platformio/packages/framework-espidf/components/console -I/home/david/.platformio/packages/framework-espidf/components/nghttp/port/include -I/home/david/.platformio/packages/framework-espidf/components/nghttp/nghttp2/lib/includes -I/home/david/.platformio/packages/framework-espidf/components/esp-tls -I/home/david/.platformio/packages/framework-espidf/components/esp-tls/esp-tls-crypto -I/home/david/.platformio/packages/framework-espidf/components/esp_adc_cal/include -I/home/david/.platformio/packages/framework-espidf/components/esp_hid/include -I/home/david/.platformio/packages/framework-espidf/components/tcp_transport/include -I/home/david/.platformio/packages/framework-espidf/components/esp_http_client/include -I/home/david/.platformio/packages/framework-espidf/components/esp_http_server/include -I/home/david/.platformio/packages/framework-espidf/components/esp_https_ota/include -I/home/david/.platformio/packages/framework-espidf/components/protobuf-c/protobuf-c -I/home/david/.platformio/packages/framework-espidf/components/protocomm/include/common -I/home/david/.platformio/packages/framework-espidf/components/protocomm/include/security -I/home/david/.platformio/packages/framework-espidf/components/protocomm/include/transports -I/home/david/.platformio/packages/framework-espidf/components/mdns/include -I/home/david/.platformio/packages/framework-espidf/components/esp_local_ctrl/include -I/home/david/.platformio/packages/framework-espidf/components/sdmmc/include -I/home/david/.platformio/packages/framework-espidf/components/esp_serial_slave_link/include -I/home/david/.platformio/packages/framework-espidf/components/esp_websocket_client/include -I/home/david/.platformio/packages/framework-espidf/components/expat/expat/expat/lib -I/home/david/.platformio/packages/framework-espidf/components/expat/port/include -I/home/david/.platformio/packages/framework-espidf/components/wear_levelling/include -I/home/david/.platformio/packages/framework-espidf/components/fatfs/diskio -I/home/david/.platformio/packages/framework-espidf/components/fatfs/vfs -I/home/david/.platformio/packages/framework-espidf/components/fatfs/src -I/home/david/.platformio/packages/framework-espidf/components/freemodbus/common/include -I/home/david/.platformio/packages/framework-espidf/components/idf_test/include -I/home/david/.platformio/packages/framework-espidf/components/idf_test/include/esp32c3 -I/home/david/.platformio/packages/framework-espidf/components/jsmn/include -I/home/david/.platformio/packages/framework-espidf/components/json/cJSON -I/home/david/.platformio/packages/framework-espidf/components/libsodium/libsodium/src/libsodium/include -I/home/david/.platformio/packages/framework-espidf/components/libsodium/port_include -I/home/david/.platformio/packages/framework-espidf/components/mqtt/esp-mqtt/include -I/home/david/.platformio/packages/framework-espidf/components/openssl/include -I/home/david/.platformio/packages/framework-espidf/components/spiffs/include -I/home/david/.platformio/packages/framework-espidf/components/wifi_provisioning/include
cargo:rustc-cfg=esp32c3
cargo:MCU=esp32c3
cargo:rerun-if-changed=src/include/esp-idf/bindings.h
--- stderr
Bindgen builder factory flags: ["--rust-target", "1.40", "--no-layout-tests", "--with-derive-default", "--generate", "functions,types,vars,methods,constructors,destructors", "--use-core", "--no-rustfmt-bindings", "--", "-D__bindgen", "--sysroot=/home/david/.platformio/packages/toolchain-riscv-esp/bin/../riscv32-esp-elf", "-I/home/david/.platformio/packages/toolchain-riscv-esp/bin/../riscv32-esp-elf/include", "-x", "c", "-I/home/david/.platformio/packages/framework-espidf/components/esp_pm/include", "-I/home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/config", "-I/home/david/.platformio/packages/framework-espidf/components/newlib/platform_include", "-I/home/david/.platformio/packages/framework-espidf/components/freertos/include", "-I/home/david/.platformio/packages/framework-espidf/components/freertos/port/riscv/include", "-I/home/david/.platformio/packages/framework-espidf/components/esp_hw_support/include", "-I/home/david/.platformio/packages/framework-espidf/components/esp_hw_support/port/esp32c3/.", "-I/home/david/.platformio/packages/framework-espidf/components/esp_hw_support/port/esp32c3/private_include", "-I/home/david/.platformio/packages/framework-espidf/components/heap/include", "-I/home/david/.platformio/packages/framework-espidf/components/log/include", "-I/home/david/.platformio/packages/framework-espidf/components/lwip/include/apps", "-I/home/david/.platformio/packages/framework-espidf/components/lwip/include/apps/sntp", "-I/home/david/.platformio/packages/framework-espidf/components/lwip/lwip/src/include", "-I/home/david/.platformio/packages/framework-espidf/components/lwip/port/esp32/include", "-I/home/david/.platformio/packages/framework-espidf/components/lwip/port/esp32/include/arch", "-I/home/david/.platformio/packages/framework-espidf/components/soc/include", "-I/home/david/.platformio/packages/framework-espidf/components/soc/esp32c3/.", "-I/home/david/.platformio/packages/framework-espidf/components/soc/esp32c3/include", "-I/home/david/.platformio/packages/framework-espidf/components/hal/esp32c3/include", "-I/home/david/.platformio/packages/framework-espidf/components/hal/include", "-I/home/david/.platformio/packages/framework-espidf/components/esp_rom/include", "-I/home/david/.platformio/packages/framework-espidf/components/esp_rom/esp32c3", "-I/home/david/.platformio/packages/framework-espidf/components/esp_common/include", "-I/home/david/.platformio/packages/framework-espidf/components/esp_system/include", "-I/home/david/.platformio/packages/framework-espidf/components/esp32c3/include", "-I/home/david/.platformio/packages/framework-espidf/components/driver/include", "-I/home/david/.platformio/packages/framework-espidf/components/driver/esp32c3/include", "-I/home/david/.platformio/packages/framework-espidf/components/esp_ringbuf/include", "-I/home/david/.platformio/packages/framework-espidf/components/efuse/include", "-I/home/david/.platformio/packages/framework-espidf/components/efuse/esp32c3/include", "-I/home/david/.platformio/packages/framework-espidf/components/riscv/include", "-I/home/david/.platformio/packages/framework-espidf/components/espcoredump/include", "-I/home/david/.platformio/packages/framework-espidf/components/esp_timer/include", "-I/home/david/.platformio/packages/framework-espidf/components/esp_ipc/include", "-I/home/david/.platformio/packages/framework-espidf/components/vfs/include", "-I/home/david/.platformio/packages/framework-espidf/components/esp_wifi/include", "-I/home/david/.platformio/packages/framework-espidf/components/esp_wifi/esp32c3/include", "-I/home/david/.platformio/packages/framework-espidf/components/esp_event/include", "-I/home/david/.platformio/packages/framework-espidf/components/esp_netif/include", "-I/home/david/.platformio/packages/framework-espidf/components/esp_eth/include", "-I/home/david/.platformio/packages/framework-espidf/components/tcpip_adapter/include", "-I/home/david/.platformio/packages/framework-espidf/components/mbedtls/port/include", "-I/home/david/.platformio/packages/framework-espidf/components/mbedtls/mbedtls/include", "-I/home/david/.platformio/packages/framework-espidf/components/mbedtls/esp_crt_bundle/include", "-I/home/david/.platformio/packages/framework-espidf/components/app_update/include", "-I/home/david/.platformio/packages/framework-espidf/components/spi_flash/include", "-I/home/david/.platformio/packages/framework-espidf/components/bootloader_support/include", "-I/home/david/.platformio/packages/framework-espidf/components/nvs_flash/include", "-I/home/david/.platformio/packages/framework-espidf/components/pthread/include", "-I/home/david/.platformio/packages/framework-espidf/components/esp_gdbstub/include", "-I/home/david/.platformio/packages/framework-espidf/components/esp_gdbstub/riscv", "-I/home/david/.platformio/packages/framework-espidf/components/esp_gdbstub/esp32c3", "-I/home/david/.platformio/packages/framework-espidf/components/wpa_supplicant/include", "-I/home/david/.platformio/packages/framework-espidf/components/wpa_supplicant/port/include", "-I/home/david/.platformio/packages/framework-espidf/components/wpa_supplicant/include/esp_supplicant", "-I/home/david/.platformio/packages/framework-espidf/components/app_trace/include", "-I/home/david/.platformio/packages/framework-espidf/components/asio/asio/asio/include", "-I/home/david/.platformio/packages/framework-espidf/components/asio/port/include", "-I/home/david/.platformio/packages/framework-espidf/components/cbor/port/include", "-I/home/david/.platformio/packages/framework-espidf/components/unity/include", "-I/home/david/.platformio/packages/framework-espidf/components/unity/unity/src", "-I/home/david/.platformio/packages/framework-espidf/components/cmock/CMock/src", "-I/home/david/.platformio/packages/framework-espidf/components/coap/port/include", "-I/home/david/.platformio/packages/framework-espidf/components/coap/port/include/coap", "-I/home/david/.platformio/packages/framework-espidf/components/coap/libcoap/include", "-I/home/david/.platformio/packages/framework-espidf/components/coap/libcoap/include/coap2", "-I/home/david/.platformio/packages/framework-espidf/components/console", "-I/home/david/.platformio/packages/framework-espidf/components/nghttp/port/include", "-I/home/david/.platformio/packages/framework-espidf/components/nghttp/nghttp2/lib/includes", "-I/home/david/.platformio/packages/framework-espidf/components/esp-tls", "-I/home/david/.platformio/packages/framework-espidf/components/esp-tls/esp-tls-crypto", "-I/home/david/.platformio/packages/framework-espidf/components/esp_adc_cal/include", "-I/home/david/.platformio/packages/framework-espidf/components/esp_hid/include", "-I/home/david/.platformio/packages/framework-espidf/components/tcp_transport/include", "-I/home/david/.platformio/packages/framework-espidf/components/esp_http_client/include", "-I/home/david/.platformio/packages/framework-espidf/components/esp_http_server/include", "-I/home/david/.platformio/packages/framework-espidf/components/esp_https_ota/include", "-I/home/david/.platformio/packages/framework-espidf/components/protobuf-c/protobuf-c", "-I/home/david/.platformio/packages/framework-espidf/components/protocomm/include/common", "-I/home/david/.platformio/packages/framework-espidf/components/protocomm/include/security", "-I/home/david/.platformio/packages/framework-espidf/components/protocomm/include/transports", "-I/home/david/.platformio/packages/framework-espidf/components/mdns/include", "-I/home/david/.platformio/packages/framework-espidf/components/esp_local_ctrl/include", "-I/home/david/.platformio/packages/framework-espidf/components/sdmmc/include", "-I/home/david/.platformio/packages/framework-espidf/components/esp_serial_slave_link/include", "-I/home/david/.platformio/packages/framework-espidf/components/esp_websocket_client/include", "-I/home/david/.platformio/packages/framework-espidf/components/expat/expat/expat/lib", "-I/home/david/.platformio/packages/framework-espidf/components/expat/port/include", "-I/home/david/.platformio/packages/framework-espidf/components/wear_levelling/include", "-I/home/david/.platformio/packages/framework-espidf/components/fatfs/diskio", "-I/home/david/.platformio/packages/framework-espidf/components/fatfs/vfs", "-I/home/david/.platformio/packages/framework-espidf/components/fatfs/src", "-I/home/david/.platformio/packages/framework-espidf/components/freemodbus/common/include", "-I/home/david/.platformio/packages/framework-espidf/components/idf_test/include", "-I/home/david/.platformio/packages/framework-espidf/components/idf_test/include/esp32c3", "-I/home/david/.platformio/packages/framework-espidf/components/jsmn/include", "-I/home/david/.platformio/packages/framework-espidf/components/json/cJSON", "-I/home/david/.platformio/packages/framework-espidf/components/libsodium/libsodium/src/libsodium/include", "-I/home/david/.platformio/packages/framework-espidf/components/libsodium/port_include", "-I/home/david/.platformio/packages/framework-espidf/components/mqtt/esp-mqtt/include", "-I/home/david/.platformio/packages/framework-espidf/components/openssl/include", "-I/home/david/.platformio/packages/framework-espidf/components/spiffs/include", "-I/home/david/.platformio/packages/framework-espidf/components/wifi_provisioning/include"]
Output: "/home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/bindings.rs"
Bindgen builder flags: ["src/include/esp-idf/bindings.h", "--rust-target", "1.40", "--blacklist-function", "strtold", "--blacklist-function", "_strtold_r", "--no-layout-tests", "--with-derive-default", "--ctypes-prefix", "c_types", "--generate", "functions,types,vars,methods,constructors,destructors", "--use-core", "--no-rustfmt-bindings", "--", "-D__bindgen", "--sysroot=/home/david/.platformio/packages/toolchain-riscv-esp/bin/../riscv32-esp-elf", "-I/home/david/.platformio/packages/toolchain-riscv-esp/bin/../riscv32-esp-elf/include", "-x", "c", "-I/home/david/.platformio/packages/framework-espidf/components/esp_pm/include", "-I/home/david/git/rust-esp32-std-hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-6d8190040417f69f/out/esp-idf/.pio/build/debug/config", "-I/home/david/.platformio/packages/framework-espidf/components/newlib/platform_include", "-I/home/david/.platformio/packages/framework-espidf/components/freertos/include", "-I/home/david/.platformio/packages/framework-espidf/components/freertos/port/riscv/include", "-I/home/david/.platformio/packages/framework-espidf/components/esp_hw_support/include", "-I/home/david/.platformio/packages/framework-espidf/components/esp_hw_support/port/esp32c3/.", "-I/home/david/.platformio/packages/framework-espidf/components/esp_hw_support/port/esp32c3/private_include", "-I/home/david/.platformio/packages/framework-espidf/components/heap/include", "-I/home/david/.platformio/packages/framework-espidf/components/log/include", "-I/home/david/.platformio/packages/framework-espidf/components/lwip/include/apps", "-I/home/david/.platformio/packages/framework-espidf/components/lwip/include/apps/sntp", "-I/home/david/.platformio/packages/framework-espidf/components/lwip/lwip/src/include", "-I/home/david/.platformio/packages/framework-espidf/components/lwip/port/esp32/include", "-I/home/david/.platformio/packages/framework-espidf/components/lwip/port/esp32/include/arch", "-I/home/david/.platformio/packages/framework-espidf/components/soc/include", "-I/home/david/.platformio/packages/framework-espidf/components/soc/esp32c3/.", "-I/home/david/.platformio/packages/framework-espidf/components/soc/esp32c3/include", "-I/home/david/.platformio/packages/framework-espidf/components/hal/esp32c3/include", "-I/home/david/.platformio/packages/framework-espidf/components/hal/include", "-I/home/david/.platformio/packages/framework-espidf/components/esp_rom/include", "-I/home/david/.platformio/packages/framework-espidf/components/esp_rom/esp32c3", "-I/home/david/.platformio/packages/framework-espidf/components/esp_common/include", "-I/home/david/.platformio/packages/framework-espidf/components/esp_system/include", "-I/home/david/.platformio/packages/framework-espidf/components/esp32c3/include", "-I/home/david/.platformio/packages/framework-espidf/components/driver/include", "-I/home/david/.platformio/packages/framework-espidf/components/driver/esp32c3/include", "-I/home/david/.platformio/packages/framework-espidf/components/esp_ringbuf/include", "-I/home/david/.platformio/packages/framework-espidf/components/efuse/include", "-I/home/david/.platformio/packages/framework-espidf/components/efuse/esp32c3/include", "-I/home/david/.platformio/packages/framework-espidf/components/riscv/include", "-I/home/david/.platformio/packages/framework-espidf/components/espcoredump/include", "-I/home/david/.platformio/packages/framework-espidf/components/esp_timer/include", "-I/home/david/.platformio/packages/framework-espidf/components/esp_ipc/include", "-I/home/david/.platformio/packages/framework-espidf/components/vfs/include", "-I/home/david/.platformio/packages/framework-espidf/components/esp_wifi/include", "-I/home/david/.platformio/packages/framework-espidf/components/esp_wifi/esp32c3/include", "-I/home/david/.platformio/packages/framework-espidf/components/esp_event/include", "-I/home/david/.platformio/packages/framework-espidf/components/esp_netif/include", "-I/home/david/.platformio/packages/framework-espidf/components/esp_eth/include", "-I/home/david/.platformio/packages/framework-espidf/components/tcpip_adapter/include", "-I/home/david/.platformio/packages/framework-espidf/components/mbedtls/port/include", "-I/home/david/.platformio/packages/framework-espidf/components/mbedtls/mbedtls/include", "-I/home/david/.platformio/packages/framework-espidf/components/mbedtls/esp_crt_bundle/include", "-I/home/david/.platformio/packages/framework-espidf/components/app_update/include", "-I/home/david/.platformio/packages/framework-espidf/components/spi_flash/include", "-I/home/david/.platformio/packages/framework-espidf/components/bootloader_support/include", "-I/home/david/.platformio/packages/framework-espidf/components/nvs_flash/include", "-I/home/david/.platformio/packages/framework-espidf/components/pthread/include", "-I/home/david/.platformio/packages/framework-espidf/components/esp_gdbstub/include", "-I/home/david/.platformio/packages/framework-espidf/components/esp_gdbstub/riscv", "-I/home/david/.platformio/packages/framework-espidf/components/esp_gdbstub/esp32c3", "-I/home/david/.platformio/packages/framework-espidf/components/wpa_supplicant/include", "-I/home/david/.platformio/packages/framework-espidf/components/wpa_supplicant/port/include", "-I/home/david/.platformio/packages/framework-espidf/components/wpa_supplicant/include/esp_supplicant", "-I/home/david/.platformio/packages/framework-espidf/components/app_trace/include", "-I/home/david/.platformio/packages/framework-espidf/components/asio/asio/asio/include", "-I/home/david/.platformio/packages/framework-espidf/components/asio/port/include", "-I/home/david/.platformio/packages/framework-espidf/components/cbor/port/include", "-I/home/david/.platformio/packages/framework-espidf/components/unity/include", "-I/home/david/.platformio/packages/framework-espidf/components/unity/unity/src", "-I/home/david/.platformio/packages/framework-espidf/components/cmock/CMock/src", "-I/home/david/.platformio/packages/framework-espidf/components/coap/port/include", "-I/home/david/.platformio/packages/framework-espidf/components/coap/port/include/coap", "-I/home/david/.platformio/packages/framework-espidf/components/coap/libcoap/include", "-I/home/david/.platformio/packages/framework-espidf/components/coap/libcoap/include/coap2", "-I/home/david/.platformio/packages/framework-espidf/components/console", "-I/home/david/.platformio/packages/framework-espidf/components/nghttp/port/include", "-I/home/david/.platformio/packages/framework-espidf/components/nghttp/nghttp2/lib/includes", "-I/home/david/.platformio/packages/framework-espidf/components/esp-tls", "-I/home/david/.platformio/packages/framework-espidf/components/esp-tls/esp-tls-crypto", "-I/home/david/.platformio/packages/framework-espidf/components/esp_adc_cal/include", "-I/home/david/.platformio/packages/framework-espidf/components/esp_hid/include", "-I/home/david/.platformio/packages/framework-espidf/components/tcp_transport/include", "-I/home/david/.platformio/packages/framework-espidf/components/esp_http_client/include", "-I/home/david/.platformio/packages/framework-espidf/components/esp_http_server/include", "-I/home/david/.platformio/packages/framework-espidf/components/esp_https_ota/include", "-I/home/david/.platformio/packages/framework-espidf/components/protobuf-c/protobuf-c", "-I/home/david/.platformio/packages/framework-espidf/components/protocomm/include/common", "-I/home/david/.platformio/packages/framework-espidf/components/protocomm/include/security", "-I/home/david/.platformio/packages/framework-espidf/components/protocomm/include/transports", "-I/home/david/.platformio/packages/framework-espidf/components/mdns/include", "-I/home/david/.platformio/packages/framework-espidf/components/esp_local_ctrl/include", "-I/home/david/.platformio/packages/framework-espidf/components/sdmmc/include", "-I/home/david/.platformio/packages/framework-espidf/components/esp_serial_slave_link/include", "-I/home/david/.platformio/packages/framework-espidf/components/esp_websocket_client/include", "-I/home/david/.platformio/packages/framework-espidf/components/expat/expat/expat/lib", "-I/home/david/.platformio/packages/framework-espidf/components/expat/port/include", "-I/home/david/.platformio/packages/framework-espidf/components/wear_levelling/include", "-I/home/david/.platformio/packages/framework-espidf/components/fatfs/diskio", "-I/home/david/.platformio/packages/framework-espidf/components/fatfs/vfs", "-I/home/david/.platformio/packages/framework-espidf/components/fatfs/src", "-I/home/david/.platformio/packages/framework-espidf/components/freemodbus/common/include", "-I/home/david/.platformio/packages/framework-espidf/components/idf_test/include", "-I/home/david/.platformio/packages/framework-espidf/components/idf_test/include/esp32c3", "-I/home/david/.platformio/packages/framework-espidf/components/jsmn/include", "-I/home/david/.platformio/packages/framework-espidf/components/json/cJSON", "-I/home/david/.platformio/packages/framework-espidf/components/libsodium/libsodium/src/libsodium/include", "-I/home/david/.platformio/packages/framework-espidf/components/libsodium/port_include", "-I/home/david/.platformio/packages/framework-espidf/components/mqtt/esp-mqtt/include", "-I/home/david/.platformio/packages/framework-espidf/components/openssl/include", "-I/home/david/.platformio/packages/framework-espidf/components/spiffs/include", "-I/home/david/.platformio/packages/framework-espidf/components/wifi_provisioning/include", "-target", "riscv32"]
/home/david/.platformio/packages/framework-espidf/components/esp_system/include/esp_system.h:19:10: fatal error: 'stdbool.h' file not found
/home/david/.platformio/packages/framework-espidf/components/esp_system/include/esp_system.h:19:10: fatal error: 'stdbool.h' file not found, err: true
Error: Failed to generate bindings
I have the full 130KB log of the complete build if needed.
from esp-idf-sys.
When I try to build a project with esp-idf-sys 0.16.4 I get the following error:
Compiling esp-idf-sys v0.16.4
error: failed to run custom build command foresp-idf-sys v0.16.4
Caused by:
process didn't exit successfully:/home/david/src/ESP32/AcrRust/target/debug/build/esp-idf-sys-2326459d2b7cd194/build-script-build
(exit status: 1)
--- stdout
Found compatible PlatformIO Core 5.1.1 -> /home/david/.platformio/penv/bin/platformio--- stderr
Error: Cannot derive default PIO platform, MCU and frameworks for target 'x86_64-unknown-linux-gnu'This is on a linux (Debian) system, amd64
How did you solve this??
from esp-idf-sys.
I deleted .platformio from my home directory, did a cargo clean, and then a cargo build. I had an old PlatformIO configuration lying around after deleting PlatformIO from my system as it clashed with other extensions of VSCode.
from esp-idf-sys.
Can you uninstall any clang you might have on your system which is installed with e.g. a package manager and then make sure that you have the Espressif provided clang on your path?
from esp-idf-sys.
By clang do you mean gcc or llvm? If you mean gcc then Debian won't let me, if you mean llvm then my scala-native development environment will be broken.
from esp-idf-sys.
By clang I mean clang - the c/c++ compiler toolchain based on llvm.
from esp-idf-sys.
clang is a command line executable, as well as a library (libclang.so) which can be produced when you are compiling the LLVM toolchain. The thing is, bindgen is using the libclang.so to generate the unsafe bindings to ESP-IDF APIs as part of compiling the esp-idf-sys
crate.
Now, in theory, bindgen should just take the first libclang.so it finds on the $PATH (it has a complicated algorithm to detect the library which comes from another crate that it is using). Unfortunately we noticed that even if you put the clang compiled from Espressif as first on your $PATH
, bindgen still has the habit of picking up other instances of the clang library, especially if you have an additional clang instance installed using the OS system packager. So in the worst case - yes - you might have to uninstall the system clang. Now, if the problem comes from the LLVM that your Scala environment is using (no idea how that is setup though - if LLVM is just statically linked into scalac, you should not have that issue! rustc is built like that - it is using LLVM itself, but in a statically linked way, as far as I'm aware), then yes - you might have to even temporarily remove the native scala environment or at least make sure it is not on your $PATH
.
What we found as a workaround that might not require uninstalling other clangs is this command line:
LIBCLANG_PATH=$HOME/xtensa-esp32-elf-clang/lib cargo build
. You might try that first.
from esp-idf-sys.
OK I fixed it.
In https://github.com/espressif/rust-esp32-example/blob/main/docs/rust-on-xtensa-installation-x86_64-unknown-linux-gnu.md it does not which directory you should run the commands in. I like to download TARs into a Download/TARs file, so I moved there. Unfortunately the extraction put three directories in the wrong place. The commands (at least the tar xvf ... ones) MUST be run in your HOME directory. I had assumed that the unpacked files were installed by the subsequent commands, but that would appear not to be the case.
However even after doing this, I still get the stdbool.h problem, but now that the above is fixed using:-
LIBCLANG_PATH=$HOME/xtensa-esp32-elf-clang/lib cargo build
fixes that and it builds cleanly - Hooray!
from esp-idf-sys.
Related Issues (20)
- Failing to add mdns remote component HOT 4
- How to allocate a vector or array in PSRAM HOT 4
- backtrace (of rust code) is incomplete on esp32c6 HOT 17
- Integration with `bevy_ecs` - linker failure `pthread_setcancelstate is not implemented` HOT 5
- Do Rust Native Queues and Mutexes Properly Suspend Tasks HOT 3
- Misaligned struct pointer from esp camera HOT 22
- could not identify the root crate and `ESP_IDF_SYS_ROOT_CRATE` not specified HOT 2
- Time for `espidf_time32`? HOT 4
- Trying to set CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE=1 not working HOT 2
- esp-idf-sys HOT 1
- esp-idf-sys build started fail on arm mac os HOT 20
- Unable to build on Mac M1 HOT 1
- ...no 'IDF_PYTHON_ENV_PATH' item,Debian 12, std mode, esp-idf-template, idf master HOT 4
- Windows path length message is wrong. HOT 1
- tskNO_AFFINITY missing with esp-idf v5.2.1 HOT 1
- Using custom components introduces a requirement of specifying all components HOT 7
- failed to run custom build command for `esp-idf-sys v0.34.1` HOT 1
- Wrapper for RTC Slow memory HOT 2
- Implementing tinyusb callbacks in rust HOT 1
- Use of mixed i2c legacy and new apis HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp-idf-sys.