Comments (6)
I pulled the latest commits for this repo and retried your suggestions, having cleaned up my unwise modifications, and now its working! Blue & green blinkenlitzen. :)
from std-training.
I've also tried building without esp-idf
5.1.0 activated in my shell, and having removed ~/.espressif
entirely. I get a very similar error, just in a different header file:
Using managed esp-idf repository: EspIdfRemote { repo_url: None, git_ref: Tag("v4.4.1") }
Cloning into '/Users/gordon/.espressif/esp-idf/v4.4.1'...
Note: checking out '1329b19fe494500aeb79d19b27cfd99b40c37aec'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
Checking out files: 100% (9635/9635), done.
Submodule 'components/asio/asio' (https://github.com/espressif/asio.git) registered for path 'components/asio/asio'
Submodule 'components/bootloader/subproject/components/micro-ecc/micro-ecc' (https://github.com/kmackay/micro-ecc.git) registered for path 'components/bootloader/subproject/components/micro-ecc/micro-ecc'
Submodule 'components/bt/controller/lib_esp32' (https://github.com/espressif/esp32-bt-lib.git) registered for path 'components/bt/controller/lib_esp32'
Submodule 'components/bt/controller/lib_esp32c3_family' (https://github.com/espressif/esp32c3-bt-lib.git) registered for path 'components/bt/controller/lib_esp32c3_family'
Submodule 'components/bt/host/nimble/nimble' (https://github.com/espressif/esp-nimble.git) registered for path 'components/bt/host/nimble/nimble'
Submodule 'components/cbor/tinycbor' (https://github.com/intel/tinycbor.git) registered for path 'components/cbor/tinycbor'
Submodule 'components/cmock/CMock' (https://github.com/ThrowTheSwitch/CMock.git) registered for path 'components/cmock/CMock'
Submodule 'components/coap/libcoap' (https://github.com/obgm/libcoap.git) registered for path 'components/coap/libcoap'
Submodule 'components/esp_phy/lib' (https://github.com/espressif/esp-phy-lib.git) registered for path 'components/esp_phy/lib'
Submodule 'components/esp_wifi/lib' (https://github.com/espressif/esp32-wifi-lib.git) registered for path 'components/esp_wifi/lib'
Submodule 'components/esptool_py/esptool' (https://github.com/espressif/esptool.git) registered for path 'components/esptool_py/esptool'
Submodule 'components/expat/expat' (https://github.com/libexpat/libexpat.git) registered for path 'components/expat/expat'
Submodule 'components/ieee802154/lib' (https://github.com/espressif/esp-ieee802154-lib.git) registered for path 'components/ieee802154/lib'
Submodule 'components/json/cJSON' (https://github.com/DaveGamble/cJSON.git) registered for path 'components/json/cJSON'
Submodule 'components/libsodium/libsodium' (https://github.com/jedisct1/libsodium.git) registered for path 'components/libsodium/libsodium'
Submodule 'components/lwip/lwip' (https://github.com/espressif/esp-lwip.git) registered for path 'components/lwip/lwip'
Submodule 'components/mbedtls/mbedtls' (https://github.com/espressif/mbedtls.git) registered for path 'components/mbedtls/mbedtls'
Submodule 'components/mqtt/esp-mqtt' (https://github.com/espressif/esp-mqtt.git) registered for path 'components/mqtt/esp-mqtt'
Submodule 'components/nghttp/nghttp2' (https://github.com/nghttp2/nghttp2.git) registered for path 'components/nghttp/nghttp2'
Submodule 'components/openthread/lib' (https://github.com/espressif/esp-thread-lib.git) registered for path 'components/openthread/lib'
Submodule 'components/openthread/openthread' (https://github.com/espressif/openthread.git) registered for path 'components/openthread/openthread'
Submodule 'components/protobuf-c/protobuf-c' (https://github.com/protobuf-c/protobuf-c.git) registered for path 'components/protobuf-c/protobuf-c'
Submodule 'components/spiffs/spiffs' (https://github.com/pellepl/spiffs.git) registered for path 'components/spiffs/spiffs'
Submodule 'components/tinyusb/tinyusb' (https://github.com/espressif/tinyusb.git) registered for path 'components/tinyusb/tinyusb'
Submodule 'components/unity/unity' (https://github.com/ThrowTheSwitch/Unity.git) registered for path 'components/unity/unity'
Submodule 'examples/build_system/cmake/import_lib/main/lib/tinyxml2' (https://github.com/leethomason/tinyxml2.git) registered for path 'examples/build_system/cmake/import_lib/main/lib/tinyxml2'
Submodule 'examples/peripherals/secure_element/atecc608_ecdsa/components/esp-cryptoauthlib' (https://github.com/espressif/esp-cryptoauthlib.git) registered for path 'examples/peripherals/secure_element/atecc608_ecdsa/components/esp-cryptoauthlib'
Cloning into '/Users/gordon/.espressif/esp-idf/v4.4.1/components/asio/asio'...
Cloning into '/Users/gordon/.espressif/esp-idf/v4.4.1/components/bootloader/subproject/components/micro-ecc/micro-ecc'...
Cloning into '/Users/gordon/.espressif/esp-idf/v4.4.1/components/bt/controller/lib_esp32'...
Cloning into '/Users/gordon/.espressif/esp-idf/v4.4.1/components/bt/controller/lib_esp32c3_family'...
Cloning into '/Users/gordon/.espressif/esp-idf/v4.4.1/components/bt/host/nimble/nimble'...
Cloning into '/Users/gordon/.espressif/esp-idf/v4.4.1/components/cbor/tinycbor'...
Cloning into '/Users/gordon/.espressif/esp-idf/v4.4.1/components/cmock/CMock'...
Cloning into '/Users/gordon/.espressif/esp-idf/v4.4.1/components/coap/libcoap'...
Cloning into '/Users/gordon/.espressif/esp-idf/v4.4.1/components/esp_phy/lib'...
Cloning into '/Users/gordon/.espressif/esp-idf/v4.4.1/components/esp_wifi/lib'...
Cloning into '/Users/gordon/.espressif/esp-idf/v4.4.1/components/esptool_py/esptool'...
Cloning into '/Users/gordon/.espressif/esp-idf/v4.4.1/components/expat/expat'...
Cloning into '/Users/gordon/.espressif/esp-idf/v4.4.1/components/ieee802154/lib'...
Cloning into '/Users/gordon/.espressif/esp-idf/v4.4.1/components/json/cJSON'...
Cloning into '/Users/gordon/.espressif/esp-idf/v4.4.1/components/libsodium/libsodium'...
Cloning into '/Users/gordon/.espressif/esp-idf/v4.4.1/components/lwip/lwip'...
Cloning into '/Users/gordon/.espressif/esp-idf/v4.4.1/components/mbedtls/mbedtls'...
Cloning into '/Users/gordon/.espressif/esp-idf/v4.4.1/components/mqtt/esp-mqtt'...
Cloning into '/Users/gordon/.espressif/esp-idf/v4.4.1/components/nghttp/nghttp2'...
Cloning into '/Users/gordon/.espressif/esp-idf/v4.4.1/components/openthread/lib'...
Cloning into '/Users/gordon/.espressif/esp-idf/v4.4.1/components/openthread/openthread'...
Cloning into '/Users/gordon/.espressif/esp-idf/v4.4.1/components/protobuf-c/protobuf-c'...
Cloning into '/Users/gordon/.espressif/esp-idf/v4.4.1/components/spiffs/spiffs'...
Cloning into '/Users/gordon/.espressif/esp-idf/v4.4.1/components/tinyusb/tinyusb'...
Cloning into '/Users/gordon/.espressif/esp-idf/v4.4.1/components/unity/unity'...
Cloning into '/Users/gordon/.espressif/esp-idf/v4.4.1/examples/build_system/cmake/import_lib/main/lib/tinyxml2'...
Cloning into '/Users/gordon/.espressif/esp-idf/v4.4.1/examples/peripherals/secure_element/atecc608_ecdsa/components/esp-cryptoauthlib'...
From https://github.com/espressif/asio
* branch f31694c9f1746ba189a4bcae2e34db15135ddb22 -> FETCH_HEAD
From https://github.com/kmackay/micro-ecc
* branch d037ec89546fad14b5c4d5456c2e23a71e554966 -> FETCH_HEAD
From https://github.com/espressif/esp32-bt-lib
* branch b877f7e1fc98dccfcf4dbf31f215c5cb44ec3f0d -> FETCH_HEAD
From https://github.com/espressif/esp32c3-bt-lib
* branch 98dcc9591365b5ac486a9f0b474c36bf8c4ca97b -> FETCH_HEAD
From https://github.com/espressif/esp-nimble
* branch 1dc1ec6e76b0ab3bf93cc9f1ff7a2a09141e7c61 -> FETCH_HEAD
From https://github.com/intel/tinycbor
* branch 7c349dbb6b8d76db39383b226d3ebdf59b8ab37d -> FETCH_HEAD
From https://github.com/ThrowTheSwitch/CMock
* branch eeecc49ce8af123cf8ad40efdb9673e37b56230f -> FETCH_HEAD
Submodule 'vendor/c_exception' (https://github.com/throwtheswitch/cexception.git) registered for path 'components/cmock/CMock/vendor/c_exception'
Submodule 'vendor/unity' (https://github.com/throwtheswitch/unity.git) registered for path 'components/cmock/CMock/vendor/unity'
Cloning into '/Users/gordon/.espressif/esp-idf/v4.4.1/components/cmock/CMock/vendor/c_exception'...
Cloning into '/Users/gordon/.espressif/esp-idf/v4.4.1/components/cmock/CMock/vendor/unity'...
From https://github.com/throwtheswitch/cexception
* branch 71b47be7c950f1bf5f7e5303779fa99a16224bb6 -> FETCH_HEAD
From https://github.com/throwtheswitch/unity
* branch cf949f45ca6d172a177b00da21310607b97bc7a7 -> FETCH_HEAD
From https://github.com/obgm/libcoap
* branch 3aa11612c143c9734d72022720f33e12506f7a2c -> FETCH_HEAD
Submodule 'ext/tinydtls' (https://github.com/eclipse/tinydtls.git) registered for path 'components/coap/libcoap/ext/tinydtls'
Cloning into '/Users/gordon/.espressif/esp-idf/v4.4.1/components/coap/libcoap/ext/tinydtls'...
From https://github.com/eclipse/tinydtls
* branch 59055b8a935bc53bf69d002fc089ad4bd08851b2 -> FETCH_HEAD
From https://github.com/espressif/esp-phy-lib
* branch dcbe6085e0215e2ea6a2e43b1106bdb15807f398 -> FETCH_HEAD
From https://github.com/espressif/esp32-wifi-lib
* branch 5a0d2aee49633b1a0c0374c2a01ed8c2a10e2fe4 -> FETCH_HEAD
From https://github.com/espressif/esptool
* branch 66e1f163a4f9a32041ec48b8aa7ab958831f8410 -> FETCH_HEAD
From https://github.com/libexpat/libexpat
* branch 57c7da69b78e3698e112a6b5da19d5109b8232d1 -> FETCH_HEAD
From https://github.com/espressif/esp-ieee802154-lib
* branch f7b5e8059a3bb6f321e79ac3bf2aa4d2a9b93326 -> FETCH_HEAD
From https://github.com/DaveGamble/cJSON
* branch d348621ca93571343a56862df7de4ff3bc9b5667 -> FETCH_HEAD
From https://github.com/jedisct1/libsodium
* branch 4f5e89fa84ce1d178a6765b8b46f2b6f91216677 -> FETCH_HEAD
From https://github.com/espressif/esp-lwip
* branch 2749568fe15df2003f6c3f37f0dfd44f8f01fcd6 -> FETCH_HEAD
From https://github.com/espressif/mbedtls
* branch 8b0e35f2ad477fcc2a267cf434528024b8499085 -> FETCH_HEAD
From https://github.com/espressif/esp-mqtt
* branch 89894bd0c611b1392967fe90bb49682eba858383 -> FETCH_HEAD
From https://github.com/nghttp2/nghttp2
* branch 8f7b008b158e12de0e58247afd170f127dbb6456 -> FETCH_HEAD
Submodule 'third-party/mruby' (https://github.com/mruby/mruby) registered for path 'components/nghttp/nghttp2/third-party/mruby'
Submodule 'third-party/neverbleed' (https://github.com/tatsuhiro-t/neverbleed.git) registered for path 'components/nghttp/nghttp2/third-party/neverbleed'
Cloning into '/Users/gordon/.espressif/esp-idf/v4.4.1/components/nghttp/nghttp2/third-party/mruby'...
Cloning into '/Users/gordon/.espressif/esp-idf/v4.4.1/components/nghttp/nghttp2/third-party/neverbleed'...
From https://github.com/mruby/mruby
* branch 7c91efc1ffda769a5f1a872c646c82b00698f1b8 -> FETCH_HEAD
From https://github.com/tatsuhiro-t/neverbleed
* branch b967ca054f48a36f82d8fcdd32e54ec5144f2751 -> FETCH_HEAD
From https://github.com/espressif/esp-thread-lib
* branch 9a8d34d8f698cad2c9468468b473e26a3dda51b9 -> FETCH_HEAD
From https://github.com/espressif/openthread
* branch c36c0e77a2465355bcf13bd7dc718d8c9aa6ff64 -> FETCH_HEAD
From https://github.com/protobuf-c/protobuf-c
* branch dac1a65feac4ad72f612aab99f487056fbcf5c1a -> FETCH_HEAD
From https://github.com/pellepl/spiffs
* branch f5e26c4e933189593a71c6b82cda381a7b21e41c -> FETCH_HEAD
From https://github.com/espressif/tinyusb
* branch c4badd394eda18199c0196ed0be1e2d635f0a5f6 -> FETCH_HEAD
From https://github.com/ThrowTheSwitch/Unity
* branch 7d2bf62b7e6afaf38153041a9d53c21aeeca9a25 -> FETCH_HEAD
From https://github.com/leethomason/tinyxml2
* branch 7e8e249990ec491ec15990cf95b6d871a66cf64a -> FETCH_HEAD
From https://github.com/espressif/esp-cryptoauthlib
* branch 36d0642e66ff5b1c7a291873f24c498ca6ffedef -> FETCH_HEAD
Using esp-idf v4.4.1 at '/Users/gordon/.espressif/esp-idf/v4.4.1'
Output: "/Users/gordon/dev/esp32-rust/espressif-trainings/intro/hardware-check/target/riscv32imc-esp-espidf/release/build/esp-idf-sys-d1a5f1a58ff63106/out/bindings.rs"
Bindgen builder flags: ["/Users/gordon/.cargo/registry/src/github.com-1ecc6299db9ec823/esp-idf-sys-0.31.5/src/include/esp-idf/bindings.h", "--rust-target", "1.47", "--blocklist-function", "strtold", "--blocklist-function", "_strtold_r", "--blocklist-function", "v.*printf", "--blocklist-function", "v.*scanf", "--blocklist-function", "_v.*printf_r", "--blocklist-function", "_v.*scanf_r", "--blocklist-function", "esp_log_writev", "--no-layout-tests", "--with-derive-default", "--ctypes-prefix", "c_types", "--generate", "functions,types,vars,methods,constructors,destructors", "--use-core", "--no-rustfmt-bindings", "--", "-D__bindgen", "-DHAVE_CONFIG_H", "-DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\"", "-DUNITY_INCLUDE_CONFIG_H", "-DWITH_POSIX", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/esp_ringbuf/include", "-I/Users/gordon/dev/esp32-rust/espressif-trainings/intro/hardware-check/target/riscv32imc-esp-espidf/release/build/esp-idf-sys-d1a5f1a58ff63106/out/build/config", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/newlib/platform_include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/freertos/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/freertos/include/esp_additions/freertos", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/freertos/port/riscv/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/freertos/include/esp_additions", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/esp_hw_support/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/esp_hw_support/include/soc", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/esp_hw_support/include/soc/esp32c3", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/esp_hw_support/port/esp32c3/.", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/esp_hw_support/port/esp32c3/private_include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/heap/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/log/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/lwip/include/apps", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/lwip/include/apps/sntp", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/lwip/lwip/src/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/lwip/port/esp32/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/lwip/port/esp32/include/arch", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/soc/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/soc/esp32c3/.", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/soc/esp32c3/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/hal/esp32c3/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/hal/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/hal/platform_port/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/esp_rom/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/esp_rom/include/esp32c3", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/esp_rom/esp32c3", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/esp_common/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/esp_system/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/esp_system/port/soc", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/esp_system/port/include/riscv", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/esp_system/port/public_compat", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/riscv/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/driver/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/driver/esp32c3/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/esp_pm/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/efuse/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/efuse/esp32c3/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/vfs/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/esp_wifi/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/esp_event/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/esp_netif/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/esp_eth/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/tcpip_adapter/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/esp_phy/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/esp_phy/esp32c3/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/esp_ipc/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/app_trace/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/esp_timer/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/mbedtls/port/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/mbedtls/mbedtls/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/mbedtls/esp_crt_bundle/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/app_update/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/spi_flash/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/bootloader_support/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/nvs_flash/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/pthread/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/esp_gdbstub/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/esp_gdbstub/riscv", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/esp_gdbstub/esp32c3", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/espcoredump/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/espcoredump/include/port/riscv", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/wpa_supplicant/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/wpa_supplicant/port/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/wpa_supplicant/esp_supplicant/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/ieee802154/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/console", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/asio/asio/asio/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/asio/port/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/cbor/port/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/unity/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/unity/unity/src", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/cmock/CMock/src", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/coap/port/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/coap/libcoap/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/nghttp/port/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/nghttp/nghttp2/lib/includes", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/esp-tls", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/esp-tls/esp-tls-crypto", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/esp_adc_cal/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/esp_hid/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/tcp_transport/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/esp_http_client/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/esp_http_server/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/esp_https_ota/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/esp_lcd/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/esp_lcd/interface", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/protobuf-c/protobuf-c", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/protocomm/include/common", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/protocomm/include/security", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/protocomm/include/transports", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/mdns/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/esp_local_ctrl/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/sdmmc/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/esp_serial_slave_link/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/esp_websocket_client/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/expat/expat/expat/lib", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/expat/port/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/wear_levelling/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/fatfs/diskio", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/fatfs/vfs", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/fatfs/src", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/freemodbus/common/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/idf_test/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/idf_test/include/esp32c3", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/jsmn/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/json/cJSON", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/libsodium/libsodium/src/libsodium/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/libsodium/port_include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/mqtt/esp-mqtt/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/openssl/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/spiffs/include", "-I/Users/gordon/.espressif/esp-idf/v4.4.1/components/wifi_provisioning/include", "--sysroot=/Users/gordon/.espressif/tools/riscv32-esp-elf/esp-2021r2-patch3-8.4.0/riscv32-esp-elf/bin/../riscv32-esp-elf", "-I/Users/gordon/.espressif/tools/riscv32-esp-elf/esp-2021r2-patch3-8.4.0/riscv32-esp-elf/bin/../riscv32-esp-elf/include", "-x", "c", "-DESP_IDF_COMP_BOOTLOADER_SUPPORT_ENABLED", "-DESP_IDF_COMP_IEEE802154_ENABLED", "-DESP_IDF_COMP_UNITY_ENABLED", "-DESP_IDF_COMP_ESP_PHY_ENABLED", "-DESP_IDF_COMP_WEAR_LEVELLING_ENABLED", "-DESP_IDF_COMP_FATFS_ENABLED", "-DESP_IDF_COMP_NGHTTP_ENABLED", "-DESP_IDF_COMP_VFS_ENABLED", "-DESP_IDF_COMP_PERFMON_ENABLED", "-DESP_IDF_COMP_XTENSA_ENABLED", "-DESP_IDF_COMP_ESPCOREDUMP_ENABLED", "-DESP_IDF_COMP_ESP_HW_SUPPORT_ENABLED", "-DESP_IDF_COMP_OPENTHREAD_ENABLED", "-DESP_IDF_COMP_PARTITION_TABLE_ENABLED", "-DESP_IDF_COMP_SPIFFS_ENABLED", "-DESP_IDF_COMP_ESP32C3_ENABLED", "-DESP_IDF_COMP_HAL_ENABLED", "-DESP_IDF_COMP_ESPTOOL_PY_ENABLED", "-DESP_IDF_COMP_DRIVER_ENABLED", "-DESP_IDF_COMP_EXPAT_ENABLED", "-DESP_IDF_COMP_LWIP_ENABLED", "-DESP_IDF_COMP_SOC_ENABLED", "-DESP_IDF_COMP_BOOTLOADER_ENABLED", "-DESP_IDF_COMP_ESP_SYSTEM_ENABLED", "-DESP_IDF_COMP_ESP_EVENT_ENABLED", "-DESP_IDF_COMP_ESP_COMMON_ENABLED", "-DESP_IDF_COMP_PROTOBUF_C_ENABLED", "-DESP_IDF_COMP_CBOR_ENABLED", "-DESP_IDF_COMP_CXX_ENABLED", "-DESP_IDF_COMP_FREEMODBUS_ENABLED", "-DESP_IDF_COMP_ASIO_ENABLED", "-DESP_IDF_COMP_MBEDTLS_ENABLED", "-DESP_IDF_COMP_NEWLIB_ENABLED", "-DESP_IDF_COMP_APP_UPDATE_ENABLED", "-DESP_IDF_COMP_ESP_HTTP_CLIENT_ENABLED", "-DESP_IDF_COMP_FREERTOS_ENABLED", "-DESP_IDF_COMP_TOUCH_ELEMENT_ENABLED", "-DESP_IDF_COMP_JSMN_ENABLED", "-DESP_IDF_COMP_MDNS_ENABLED", "-DESP_IDF_COMP_ESP_ADC_CAL_ENABLED", "-DESP_IDF_COMP_TCP_TRANSPORT_ENABLED", "-DESP_IDF_COMP_ESP32_ENABLED", "-DESP_IDF_COMP_PTHREAD_ENABLED", "-DESP_IDF_COMP_ESP_HTTPS_OTA_ENABLED", "-DESP_IDF_COMP_USB_ENABLED", "-DESP_IDF_COMP_PROTOCOMM_ENABLED", "-DESP_IDF_COMP_ESP_LOCAL_CTRL_ENABLED", "-DESP_IDF_COMP_ESP_PM_ENABLED", "-DESP_IDF_COMP_JSON_ENABLED", "-DESP_IDF_COMP_ESP_WEBSOCKET_CLIENT_ENABLED", "-DESP_IDF_COMP_HEAP_ENABLED", "-DESP_IDF_COMP_LINUX_ENABLED", "-DESP_IDF_COMP_SDMMC_ENABLED", "-DESP_IDF_COMP_ESP_ETH_ENABLED", "-DESP_IDF_COMP_WPA_SUPPLICANT_ENABLED", "-DESP_IDF_COMP_BT_ENABLED", "-DESP_IDF_COMP_LIBSODIUM_ENABLED", "-DESP_IDF_COMP_ESP_RINGBUF_ENABLED", "-DESP_IDF_COMP_ESP_GDBSTUB_ENABLED", "-DESP_IDF_COMP_LOG_ENABLED", "-DESP_IDF_COMP_ESP_LCD_ENABLED", "-DESP_IDF_COMP_WIFI_PROVISIONING_ENABLED", "-DESP_IDF_COMP_IDF_TEST_ENABLED", "-DESP_IDF_COMP_TCPIP_ADAPTER_ENABLED", "-DESP_IDF_COMP_CMOCK_ENABLED", "-DESP_IDF_COMP_MQTT_ENABLED", "-DESP_IDF_COMP_ESP_HID_ENABLED", "-DESP_IDF_COMP_ESP_IPC_ENABLED", "-DESP_IDF_COMP_ULP_ENABLED", "-DESP_IDF_COMP_ESP32H2_ENABLED", "-DESP_IDF_COMP_RISCV_ENABLED", "-DESP_IDF_COMP_SPI_FLASH_ENABLED", "-DESP_IDF_COMP_OPENSSL_ENABLED", "-DESP_IDF_COMP_ESP_SERIAL_SLAVE_LINK_ENABLED", "-DESP_IDF_COMP_ESP_HTTPS_SERVER_ENABLED", "-DESP_IDF_COMP_TINYUSB_ENABLED", "-DESP_IDF_COMP_ESP_ROM_ENABLED", "-DESP_IDF_COMP_ESP32S3_ENABLED", "-DESP_IDF_COMP_ESP_TIMER_ENABLED", "-DESP_IDF_COMP_ESP_TLS_ENABLED", "-DESP_IDF_COMP_COAP_ENABLED", "-DESP_IDF_COMP_EFUSE_ENABLED", "-DESP_IDF_COMP_ESP32S2_ENABLED", "-DESP_IDF_COMP_NVS_FLASH_ENABLED", "-DESP_IDF_COMP_ESP_WIFI_ENABLED", "-DESP_IDF_COMP_APP_TRACE_ENABLED", "-DESP_IDF_COMP_ESP_HTTP_SERVER_ENABLED", "-DESP_IDF_COMP_ESP_NETIF_ENABLED", "-DESP_IDF_COMP_CONSOLE_ENABLED", "-target", "riscv32"]
/Users/gordon/.espressif/esp-idf/v4.4.1/components/hal/esp32c3/include/hal/cpu_ll.h:45:5: error: invalid input constraint 'rK' in asm
/Users/gordon/.espressif/esp-idf/v4.4.1/components/hal/esp32c3/include/hal/cpu_ll.h:46:5: error: invalid input constraint 'rK' in asm
/Users/gordon/.espressif/esp-idf/v4.4.1/components/hal/esp32c3/include/hal/cpu_ll.h:59:5: error: invalid input constraint 'rK' in asm
/Users/gordon/.espressif/esp-idf/v4.4.1/components/hal/esp32c3/include/hal/cpu_ll.h:76:5: error: invalid input constraint 'rK' in asm
/Users/gordon/.espressif/esp-idf/v4.4.1/components/hal/esp32c3/include/hal/cpu_ll.h:77:5: error: invalid input constraint 'rK' in asm
/Users/gordon/.espressif/esp-idf/v4.4.1/components/hal/esp32c3/include/hal/cpu_ll.h:78:5: error: invalid input constraint 'rK' in asm
/Users/gordon/.espressif/esp-idf/v4.4.1/components/hal/esp32c3/include/hal/cpu_ll.h:79:5: error: invalid input constraint 'rK' in asm
/Users/gordon/.espressif/esp-idf/v4.4.1/components/hal/esp32c3/include/hal/cpu_ll.h:85:5: error: invalid input constraint 'rK' in asm
/Users/gordon/.espressif/esp-idf/v4.4.1/components/hal/esp32c3/include/hal/cpu_ll.h:86:5: error: invalid input constraint 'rK' in asm
/Users/gordon/.espressif/esp-idf/v4.4.1/components/hal/esp32c3/include/hal/cpu_ll.h:87:5: error: invalid input constraint 'rK' in asm
/Users/gordon/.espressif/esp-idf/v4.4.1/components/hal/esp32c3/include/hal/cpu_ll.h:108:5: error: invalid input constraint 'rK' in asm
/Users/gordon/.espressif/esp-idf/v4.4.1/components/hal/esp32c3/include/hal/cpu_ll.h:109:5: error: invalid input constraint 'rK' in asm
/Users/gordon/.espressif/esp-idf/v4.4.1/components/hal/esp32c3/include/hal/cpu_ll.h:110:5: error: invalid input constraint 'rK' in asm
/Users/gordon/.espressif/esp-idf/v4.4.1/components/hal/esp32c3/include/hal/cpu_ll.h:111:5: error: invalid input constraint 'rK' in asm
/Users/gordon/.espressif/esp-idf/v4.4.1/components/hal/esp32c3/include/hal/cpu_ll.h:115:9: error: invalid input constraint 'rK' in asm
/Users/gordon/.espressif/esp-idf/v4.4.1/components/hal/esp32c3/include/hal/cpu_ll.h:118:9: error: invalid input constraint 'rK' in asm
/Users/gordon/.espressif/esp-idf/v4.4.1/components/hal/esp32c3/include/hal/cpu_ll.h:120:5: error: invalid input constraint 'rK' in asm
/Users/gordon/.espressif/esp-idf/v4.4.1/components/hal/esp32c3/include/hal/cpu_ll.h:126:5: error: invalid input constraint 'rK' in asm
/Users/gordon/.espressif/esp-idf/v4.4.1/components/hal/esp32c3/include/hal/cpu_ll.h:127:5: error: invalid input constraint 'rK' in asm
fatal error: too many errors emitted, stopping now [-ferror-limit=]
from std-training.
Hello! For the training, we use tag v4.4.1
of esp-idf, please follow the directions in the book for a clean installation and make sure you do a cargo clean
when building with the new esp-idf installed.
from std-training.
@doxxx I ran into the same issue and managed to resolve it by doing the following:
- Following the instructions here
(the formatting confused me initially and it took me way too long to realize that everything between3.
and4.
should be treated as if it was part of3.
🤦♂️)
This netted me with a clone ofesp-idf
at thev4.4.1
tag at~/esp/esp-idf
. - In order to get the
esp-idf-sys
crate to use that directory and not~/.espressif/...
I needed toexport IDF_PATH=~/esp/esp-idf/
- In order to get
bindgen
to use the version oflibclang
installed viabrew install llvm
rather than the system one, I also need toexport LIBCLANG_PATH=/usr/local/opt/llvm/lib
.
With that done, cargo clean && cargo espflash --release --monitor /dev/tty.usbmodem14101
worked like a charm and I'm now staring at a green and blue blinkenlight.
from std-training.
@davidcornu I've tried that and now its failing with a couple of rust errors:
cannot find macro 'llvm_asm' in this scope
unknown feature 'llvm_asm'
.
from std-training.
I also get a bunch of warnings at the start:
EDIT: Nevermind, I'd forgotten that I had been trying to get VSCode and rust-analyzer to work nicely with the repo.
from std-training.
Related Issues (20)
- hardware-check build fails HOT 8
- Add linkchecker step in Book CI
- Add webflash support
- Add Wokwi VSCode support in devcontainer
- Add dependabot HOT 1
- Python3.11 on Mac compile issues for `esp-idf-sys vX.X.X` HOT 6
- Create a wokwi.com project for every exercise/solution
- Rename the repo to `std-training`
- `cargo install cargo-generate` fails in dev containers HOT 4
- Update `devcontainer.json` HOT 1
- rust_analyzer::config failed to find any projects in [AbsPathBuf("/workspace")] HOT 11
- Revisit i2c-driver example
- Update Docker instructions
- Bump esp-idf tag version to v4.4.4 HOT 3
- Runner script target doesn't want/need `flash`. HOT 2
- Flashing fails with FlashDeflateData HOT 5
- Running into error: linker `ldproxy` not found in hardware-check HOT 1
- Delete `Cargo.lock`
- "Extra" directory doesn't exist HOT 1
- Explanation about Active high/low HOT 3
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 std-training.