espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.87k stars 7.32k forks source link

cargo generate esp-rs/esp-idf-template cargo not building default project (IDFGH-10890) #12092

Closed olaoni closed 1 year ago

olaoni commented 1 year ago

Answers checklist.

IDF version.

v4.4.5

Operating System used.

Linux

How did you build your project?

Command line with Make

If you are using Windows, please specify command line type.

None

Development Kit.

ESP32C3-DEV KIT

Power Supply used.

USB

What is the expected behavior?

I expect the project to build.

What is the actual behavior?

It fails

Steps to reproduce.

Installed git and python3 Step 1: rustup toolchain install nightly --component rust-src

Step 2: rustup target add riscv32imc-unknown-none-elf

Step 3: cargo install espup

Step 4: espup install

Step 5: cat $HOME/export-esp.sh >> ~/.bashrc source ~/.bashrc

Step 6: cargo install ldproxy

Step 7: cargo install cargo-generate

Step 8: cargo generate esp-rs/esp-idf-template cargo

Debug Logs.

onio@ecclesiastes:~/esp$ cargo build
error: could not find `Cargo.toml` in `/home/onio/esp` or any parent directory
onio@ecclesiastes:~/esp$ cd hello
onio@ecclesiastes:~/esp/hello$ 
onio@ecclesiastes:~/esp/hello$ 
onio@ecclesiastes:~/esp/hello$ cargo build
    Updating crates.io index
  Downloaded thiserror v1.0.47
  Downloaded thiserror-impl v1.0.47
  Downloaded anyhow v1.0.75
  Downloaded 3 crates (77.8 KB) in 2.65s
   Compiling compiler_builtins v0.1.100
   Compiling core v0.0.0 (/home/onio/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core)
   Compiling libc v0.2.147
   Compiling proc-macro2 v1.0.66
   Compiling cc v1.0.79
   Compiling unicode-ident v1.0.11
   Compiling memchr v2.5.0
   Compiling std v0.0.0 (/home/onio/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std)
   Compiling quote v1.0.33
   Compiling serde_derive v1.0.183
   Compiling serde v1.0.183
   Compiling cfg-if v1.0.0
   Compiling unwind v0.0.0 (/home/onio/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/unwind)
   Compiling syn v2.0.29
   Compiling fnv v1.0.7
   Compiling aho-corasick v1.0.4
   Compiling regex-syntax v0.7.4
   Compiling regex-automata v0.3.6
   Compiling bitflags v1.3.2
   Compiling syn v1.0.109
   Compiling rustc-std-workspace-core v1.99.0 (/home/onio/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/rustc-std-workspace-core)
   Compiling alloc v0.0.0 (/home/onio/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc)
   Compiling adler v1.0.2
   Compiling rustc-demangle v0.1.23
   Compiling rustc-std-workspace-alloc v1.99.0 (/home/onio/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/rustc-std-workspace-alloc)
   Compiling panic_abort v0.0.0 (/home/onio/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/panic_abort)
   Compiling gimli v0.27.3
   Compiling hashbrown v0.14.0
   Compiling miniz_oxide v0.7.1
   Compiling std_detect v0.1.5 (/home/onio/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/stdarch/crates/std_detect)
   Compiling object v0.31.1
   Compiling panic_unwind v0.0.0 (/home/onio/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/panic_unwind)
   Compiling glob v0.3.1
   Compiling regex v1.9.3
   Compiling clang-sys v1.6.1
   Compiling log v0.4.20
   Compiling rustversion v1.0.14
   Compiling once_cell v1.18.0
   Compiling semver v1.0.18
   Compiling addr2line v0.20.0
   Compiling lazy_static v1.4.0
   Compiling bstr v1.6.0
   Compiling same-file v1.0.6
   Compiling serde_json v1.0.105
   Compiling rustix v0.38.8
   Compiling thiserror v1.0.47
   Compiling static_assertions v1.1.0
   Compiling minimal-lexical v0.2.1
   Compiling nix v0.26.2
   Compiling nom v7.1.3
   Compiling walkdir v2.3.3
   Compiling globset v0.4.13
   Compiling proc_macro v0.0.0 (/home/onio/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/proc_macro)
   Compiling thread_local v1.1.7
   Compiling thiserror-impl v1.0.47
   Compiling libloading v0.7.4
   Compiling cvt v0.1.2
   Compiling itoa v1.0.9
   Compiling bitflags v2.4.0
   Compiling anyhow v1.0.75
   Compiling bindgen v0.63.0
   Compiling either v1.9.0
   Compiling heck v0.4.1
   Compiling linux-raw-sys v0.4.5
   Compiling ryu v1.0.15
   Compiling which v4.4.0
   Compiling strum_macros v0.24.3
   Compiling fs_at v0.1.8
   Compiling ignore v0.4.20
   Compiling cexpr v0.6.0
   Compiling cc v1.0.82
   Compiling shlex v1.1.0
   Compiling normpath v1.1.1
   Compiling rustc-hash v1.1.0
   Compiling lazycell v1.3.0
   Compiling peeking_take_while v0.1.2
   Compiling fastrand v2.0.0
   Compiling tempfile v3.7.1
   Compiling cmake v0.1.50
   Compiling remove_dir_all v0.8.2
   Compiling strum v0.24.1
   Compiling globwalk v0.8.1
   Compiling filetime v0.2.22
   Compiling home v0.5.5
   Compiling camino v1.1.6
   Compiling cargo-platform v0.1.3
   Compiling envy v0.4.2
   Compiling autocfg v1.1.0
   Compiling cargo_metadata v0.15.4
   Compiling ident_case v1.0.1
   Compiling darling_core v0.20.3
   Compiling num-traits v0.2.16
   Compiling embuild v0.31.2
   Compiling rustc_version v0.4.0
   Compiling nb v1.1.0
   Compiling heapless v0.7.16
   Compiling darling_macro v0.20.3
   Compiling byteorder v1.4.3
   Compiling unicode-xid v0.2.4
   Compiling iana-time-zone v0.1.57
   Compiling darling v0.20.3
   Compiling const_format_proc_macros v0.2.31
   Compiling enumset_derive v0.8.1
   Compiling chrono v0.4.26
   Compiling esp-idf-sys v0.33.1
   Compiling hash32 v0.2.1
   Compiling stable_deref_trait v1.2.0
   Compiling version_check v0.9.4
   Compiling build-time v0.1.3
   Compiling uncased v0.9.9
   Compiling enumset v1.1.2
   Compiling esp-idf-hal v0.41.2
   Compiling const_format v0.2.31
   Compiling nb v0.1.3
   Compiling embedded-hal v1.0.0-alpha.10
   Compiling void v1.0.2
   Compiling atomic-waker v1.1.1
   Compiling embedded-hal-nb v1.0.0-alpha.2
   Compiling embedded-hal v0.2.7
   Compiling esp-idf-svc v0.46.2
   Compiling embedded-can v0.4.1
   Compiling embedded-io v0.4.0
   Compiling no-std-net v0.5.0
   Compiling embedded-svc v0.25.3
   Compiling hello v0.1.0 (/home/onio/esp/hello)
   Compiling embassy-futures v0.1.0
error: linking with `ldproxy` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/home/onio/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/onio/.rustup/toolchains/esp/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin:/home/onio/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin:/home/onio/.rustup/toolchains/esp/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin:/home/onio/.rustup/toolchains/esp/xtensa-esp32s2-elf/esp-12.2.0_20230208/xtensa-esp32s2-elf/bin:/home/onio/.rustup/toolchains/esp/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin:/home/onio/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin:/home/onio/.rustup/toolchains/esp/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin:/home/onio/.rustup/toolchains/esp/xtensa-esp32s2-elf/esp-12.2.0_20230208/xtensa-esp32s2-elf/bin:/home/onio/.rustup/toolchains/esp/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin:/home/onio/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin:/home/onio/.rustup/toolchains/esp/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin:/home/onio/.rustup/toolchains/esp/xtensa-esp32s2-elf/esp-12.2.0_20230208/xtensa-esp32s2-elf/bin:/home/onio/.cargo/bin:/home/onio/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin" VSLANG="1033" "ldproxy" "/tmp/rustcOSEsc7/symbols.o" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/hello-2eb2eb706f9fe7cd.1eui8h2wg9o2mth.rcgu.o" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/hello-2eb2eb706f9fe7cd.3adj507s5escho6g.rcgu.o" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/hello-2eb2eb706f9fe7cd.u266hhhq2qfqlem.rcgu.o" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/hello-2eb2eb706f9fe7cd.2lu10lrdegjsshwi.rcgu.o" "-Wl,--as-needed" "-L" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps" "-L" "/home/onio/esp/hello/target/debug/deps" "-L" "/home/onio/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/riscv32imc-esp-espidf/lib" "-Wl,-Bstatic" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/libesp_idf_svc-bc05c35ab00fda8b.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/libembassy_futures-f7dd82298186fbc5.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/libuncased-de77d97417b3ec87.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/libesp_idf_hal-f76ab0d41d28f7ac.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/libembedded_hal_nb-ee06efca3845b333.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/libembedded_can-326addeb96403108.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/libembedded_hal-bbd0eaf2e5a53971.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/libvoid-36a91ef52750fe44.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/libnb-80eb68081c822115.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/libnb-791199dce07c3a1a.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/libembedded_hal-ed325657e4a477cb.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/libembedded_svc-eb1bd33bd55b5b88.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/libheapless-f22d150579e68cb8.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/libstable_deref_trait-3b887819b6c7552f.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/libhash32-61442cfe127d3b5f.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/libbyteorder-8c011b7affe06cae.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/libatomic_waker-b1be9e60272ed6f1.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/libserde-47f15d6698a5abd7.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/libembedded_io-df3e2021baf337a2.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/libanyhow-d2dd84ee941f3559.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/libenumset-e5e943aaf2d15bc9.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/liblog-94117a3fda69dd06.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/libesp_idf_sys-971a1df37e96dfde.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/liblibc-b8a73d8869323a06.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/libconst_format-ca949fc0e4d7e5d1.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/libstd-971673d0a50e0849.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/libpanic_abort-cde03758e01c6cdd.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/libobject-5e5b894b662d93ce.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/libmemchr-e66bb0f9f793ffdd.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/libaddr2line-19cc370aa6844394.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/libgimli-fd18ca5f170e86f1.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/librustc_demangle-3cedbfa14cf01cb1.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/libstd_detect-7ff0b0c29b020205.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/libhashbrown-31900a6fa03e155d.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/librustc_std_workspace_alloc-6c85de8b6bae4cd0.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/libminiz_oxide-224d29122c29f8c5.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/libadler-464c8385e15ffae9.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/libunwind-96c126da7f02ac2b.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/libcfg_if-07f1e0c24ddd17b6.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/liblibc-f8ae45c5c1c8cd59.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/liballoc-4bde61870cf6f1fe.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/librustc_std_workspace_core-b65eab02ee7e3c85.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/libcore-8c870f6832d2ba7c.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/libcompiler_builtins-ba1e4951020dca8d.rlib" "-Wl,-Bdynamic" "-Wl,-z,noexecstack" "-L" "/home/onio/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/riscv32imc-esp-espidf/lib" "-o" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/hello-2eb2eb706f9fe7cd" "-Wl,--gc-sections" "-no-pie" "--ldproxy-linker" "/home/onio/esp/hello/.embuild/espressif/tools/riscv32-esp-elf/esp-2021r2-patch5-8.4.0/riscv32-esp-elf/bin/riscv32-esp-elf-gcc" "--ldproxy-cwd" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-db3d53c596bb828c/out/build" "-march=rv32imc" "-ffunction-sections" "-fdata-sections" "-mabi=ilp32" "-mcmodel=medany" "-nostartfiles" "-march=rv32imc" "--specs=nosys.specs" "esp-idf/esp_ringbuf/libesp_ringbuf.a" "esp-idf/efuse/libefuse.a" "esp-idf/esp_ipc/libesp_ipc.a" "esp-idf/driver/libdriver.a" "esp-idf/esp_pm/libesp_pm.a" "esp-idf/mbedtls/libmbedtls.a" "esp-idf/app_update/libapp_update.a" "esp-idf/bootloader_support/libbootloader_support.a" "esp-idf/spi_flash/libspi_flash.a" "esp-idf/nvs_flash/libnvs_flash.a" "esp-idf/pthread/libpthread.a" "esp-idf/esp_gdbstub/libesp_gdbstub.a" "esp-idf/espcoredump/libespcoredump.a" "esp-idf/esp_phy/libesp_phy.a" "esp-idf/esp_system/libesp_system.a" "esp-idf/esp_rom/libesp_rom.a" "esp-idf/hal/libhal.a" "esp-idf/vfs/libvfs.a" "esp-idf/esp_eth/libesp_eth.a" "esp-idf/tcpip_adapter/libtcpip_adapter.a" "esp-idf/esp_netif/libesp_netif.a" "esp-idf/esp_event/libesp_event.a" "esp-idf/wpa_supplicant/libwpa_supplicant.a" "esp-idf/esp_wifi/libesp_wifi.a" "esp-idf/console/libconsole.a" "esp-idf/lwip/liblwip.a" "esp-idf/log/liblog.a" "esp-idf/heap/libheap.a" "esp-idf/soc/libsoc.a" "esp-idf/esp_hw_support/libesp_hw_support.a" "esp-idf/riscv/libriscv.a" "esp-idf/esp_common/libesp_common.a" "esp-idf/esp_timer/libesp_timer.a" "esp-idf/freertos/libfreertos.a" "esp-idf/newlib/libnewlib.a" "esp-idf/cxx/libcxx.a" "esp-idf/app_trace/libapp_trace.a" "esp-idf/asio/libasio.a" "esp-idf/cbor/libcbor.a" "esp-idf/unity/libunity.a" "esp-idf/cmock/libcmock.a" "esp-idf/coap/libcoap.a" "esp-idf/nghttp/libnghttp.a" "esp-idf/esp-tls/libesp-tls.a" "esp-idf/esp_adc_cal/libesp_adc_cal.a" "esp-idf/esp_hid/libesp_hid.a" "esp-idf/tcp_transport/libtcp_transport.a" "esp-idf/esp_http_client/libesp_http_client.a" "esp-idf/esp_http_server/libesp_http_server.a" "esp-idf/esp_https_ota/libesp_https_ota.a" "esp-idf/esp_lcd/libesp_lcd.a" "esp-idf/protobuf-c/libprotobuf-c.a" "esp-idf/protocomm/libprotocomm.a" "esp-idf/mdns/libmdns.a" "esp-idf/esp_local_ctrl/libesp_local_ctrl.a" "esp-idf/sdmmc/libsdmmc.a" "esp-idf/esp_serial_slave_link/libesp_serial_slave_link.a" "esp-idf/esp_websocket_client/libesp_websocket_client.a" "esp-idf/expat/libexpat.a" "esp-idf/wear_levelling/libwear_levelling.a" "esp-idf/fatfs/libfatfs.a" "esp-idf/freemodbus/libfreemodbus.a" "esp-idf/jsmn/libjsmn.a" "esp-idf/json/libjson.a" "esp-idf/libsodium/liblibsodium.a" "esp-idf/mqtt/libmqtt.a" "esp-idf/openssl/libopenssl.a" "esp-idf/spiffs/libspiffs.a" "esp-idf/wifi_provisioning/libwifi_provisioning.a" "-Wl,--gc-sections" "-fno-rtti" "-fno-lto" "esp-idf/unity/libunity.a" "esp-idf/wear_levelling/libwear_levelling.a" "esp-idf/protocomm/libprotocomm.a" "esp-idf/protobuf-c/libprotobuf-c.a" "esp-idf/mdns/libmdns.a" "esp-idf/json/libjson.a" "esp-idf/esp_ringbuf/libesp_ringbuf.a" "esp-idf/efuse/libefuse.a" "esp-idf/esp_ipc/libesp_ipc.a" "esp-idf/driver/libdriver.a" "esp-idf/esp_pm/libesp_pm.a" "esp-idf/mbedtls/libmbedtls.a" "esp-idf/app_update/libapp_update.a" "esp-idf/bootloader_support/libbootloader_support.a" "esp-idf/spi_flash/libspi_flash.a" "esp-idf/nvs_flash/libnvs_flash.a" "esp-idf/pthread/libpthread.a" "esp-idf/esp_gdbstub/libesp_gdbstub.a" "esp-idf/espcoredump/libespcoredump.a" "esp-idf/esp_phy/libesp_phy.a" "esp-idf/esp_system/libesp_system.a" "esp-idf/esp_rom/libesp_rom.a" "esp-idf/hal/libhal.a" "esp-idf/vfs/libvfs.a" "esp-idf/esp_eth/libesp_eth.a" "esp-idf/tcpip_adapter/libtcpip_adapter.a" "esp-idf/esp_netif/libesp_netif.a" "esp-idf/esp_event/libesp_event.a" "esp-idf/wpa_supplicant/libwpa_supplicant.a" "esp-idf/esp_wifi/libesp_wifi.a" "esp-idf/console/libconsole.a" "esp-idf/lwip/liblwip.a" "esp-idf/log/liblog.a" "esp-idf/heap/libheap.a" "esp-idf/soc/libsoc.a" "esp-idf/esp_hw_support/libesp_hw_support.a" "esp-idf/riscv/libriscv.a" "esp-idf/esp_common/libesp_common.a" "esp-idf/esp_timer/libesp_timer.a" "esp-idf/freertos/libfreertos.a" "esp-idf/newlib/libnewlib.a" "esp-idf/cxx/libcxx.a" "esp-idf/app_trace/libapp_trace.a" "esp-idf/nghttp/libnghttp.a" "esp-idf/esp-tls/libesp-tls.a" "esp-idf/tcp_transport/libtcp_transport.a" "esp-idf/esp_http_client/libesp_http_client.a" "esp-idf/esp_http_server/libesp_http_server.a" "esp-idf/esp_https_ota/libesp_https_ota.a" "esp-idf/sdmmc/libsdmmc.a" "esp-idf/esp_serial_slave_link/libesp_serial_slave_link.a" "esp-idf/mbedtls/mbedtls/library/libmbedtls.a" "esp-idf/mbedtls/mbedtls/library/libmbedcrypto.a" "esp-idf/mbedtls/mbedtls/library/libmbedx509.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libcoexist.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libcore.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libespnow.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libmesh.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libnet80211.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libpp.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libsmartconfig.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libwapi.a" "esp-idf/esp_ringbuf/libesp_ringbuf.a" "esp-idf/efuse/libefuse.a" "esp-idf/esp_ipc/libesp_ipc.a" "esp-idf/driver/libdriver.a" "esp-idf/esp_pm/libesp_pm.a" "esp-idf/mbedtls/libmbedtls.a" "esp-idf/app_update/libapp_update.a" "esp-idf/bootloader_support/libbootloader_support.a" "esp-idf/spi_flash/libspi_flash.a" "esp-idf/nvs_flash/libnvs_flash.a" "esp-idf/pthread/libpthread.a" "esp-idf/esp_gdbstub/libesp_gdbstub.a" "esp-idf/espcoredump/libespcoredump.a" "esp-idf/esp_phy/libesp_phy.a" "esp-idf/esp_system/libesp_system.a" "esp-idf/esp_rom/libesp_rom.a" "esp-idf/hal/libhal.a" "esp-idf/vfs/libvfs.a" "esp-idf/esp_eth/libesp_eth.a" "esp-idf/tcpip_adapter/libtcpip_adapter.a" "esp-idf/esp_netif/libesp_netif.a" "esp-idf/esp_event/libesp_event.a" "esp-idf/wpa_supplicant/libwpa_supplicant.a" "esp-idf/esp_wifi/libesp_wifi.a" "esp-idf/console/libconsole.a" "esp-idf/lwip/liblwip.a" "esp-idf/log/liblog.a" "esp-idf/heap/libheap.a" "esp-idf/soc/libsoc.a" "esp-idf/esp_hw_support/libesp_hw_support.a" "esp-idf/riscv/libriscv.a" "esp-idf/esp_common/libesp_common.a" "esp-idf/esp_timer/libesp_timer.a" "esp-idf/freertos/libfreertos.a" "esp-idf/newlib/libnewlib.a" "esp-idf/cxx/libcxx.a" "esp-idf/app_trace/libapp_trace.a" "esp-idf/nghttp/libnghttp.a" "esp-idf/esp-tls/libesp-tls.a" "esp-idf/tcp_transport/libtcp_transport.a" "esp-idf/esp_http_client/libesp_http_client.a" "esp-idf/esp_http_server/libesp_http_server.a" "esp-idf/esp_https_ota/libesp_https_ota.a" "esp-idf/sdmmc/libsdmmc.a" "esp-idf/esp_serial_slave_link/libesp_serial_slave_link.a" "esp-idf/mbedtls/mbedtls/library/libmbedtls.a" "esp-idf/mbedtls/mbedtls/library/libmbedcrypto.a" "esp-idf/mbedtls/mbedtls/library/libmbedx509.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libcoexist.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libcore.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libespnow.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libmesh.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libnet80211.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libpp.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libsmartconfig.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libwapi.a" "esp-idf/esp_ringbuf/libesp_ringbuf.a" "esp-idf/efuse/libefuse.a" "esp-idf/esp_ipc/libesp_ipc.a" "esp-idf/driver/libdriver.a" "esp-idf/esp_pm/libesp_pm.a" "esp-idf/mbedtls/libmbedtls.a" "esp-idf/app_update/libapp_update.a" "esp-idf/bootloader_support/libbootloader_support.a" "esp-idf/spi_flash/libspi_flash.a" "esp-idf/nvs_flash/libnvs_flash.a" "esp-idf/pthread/libpthread.a" "esp-idf/esp_gdbstub/libesp_gdbstub.a" "esp-idf/espcoredump/libespcoredump.a" "esp-idf/esp_phy/libesp_phy.a" "esp-idf/esp_system/libesp_system.a" "esp-idf/esp_rom/libesp_rom.a" "esp-idf/hal/libhal.a" "esp-idf/vfs/libvfs.a" "esp-idf/esp_eth/libesp_eth.a" "esp-idf/tcpip_adapter/libtcpip_adapter.a" "esp-idf/esp_netif/libesp_netif.a" "esp-idf/esp_event/libesp_event.a" "esp-idf/wpa_supplicant/libwpa_supplicant.a" "esp-idf/esp_wifi/libesp_wifi.a" "esp-idf/console/libconsole.a" "esp-idf/lwip/liblwip.a" "esp-idf/log/liblog.a" "esp-idf/heap/libheap.a" "esp-idf/soc/libsoc.a" "esp-idf/esp_hw_support/libesp_hw_support.a" "esp-idf/riscv/libriscv.a" "esp-idf/esp_common/libesp_common.a" "esp-idf/esp_timer/libesp_timer.a" "esp-idf/freertos/libfreertos.a" "esp-idf/newlib/libnewlib.a" "esp-idf/cxx/libcxx.a" "esp-idf/app_trace/libapp_trace.a" "esp-idf/nghttp/libnghttp.a" "esp-idf/esp-tls/libesp-tls.a" "esp-idf/tcp_transport/libtcp_transport.a" "esp-idf/esp_http_client/libesp_http_client.a" "esp-idf/esp_http_server/libesp_http_server.a" "esp-idf/esp_https_ota/libesp_https_ota.a" "esp-idf/sdmmc/libsdmmc.a" "esp-idf/esp_serial_slave_link/libesp_serial_slave_link.a" "esp-idf/mbedtls/mbedtls/library/libmbedtls.a" "esp-idf/mbedtls/mbedtls/library/libmbedcrypto.a" "esp-idf/mbedtls/mbedtls/library/libmbedx509.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libcoexist.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libcore.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libespnow.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libmesh.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libnet80211.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libpp.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libsmartconfig.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libwapi.a" "esp-idf/esp_ringbuf/libesp_ringbuf.a" "esp-idf/efuse/libefuse.a" "esp-idf/esp_ipc/libesp_ipc.a" "esp-idf/driver/libdriver.a" "esp-idf/esp_pm/libesp_pm.a" "esp-idf/mbedtls/libmbedtls.a" "esp-idf/app_update/libapp_update.a" "esp-idf/bootloader_support/libbootloader_support.a" "esp-idf/spi_flash/libspi_flash.a" "esp-idf/nvs_flash/libnvs_flash.a" "esp-idf/pthread/libpthread.a" "esp-idf/esp_gdbstub/libesp_gdbstub.a" "esp-idf/espcoredump/libespcoredump.a" "esp-idf/esp_phy/libesp_phy.a" "esp-idf/esp_system/libesp_system.a" "esp-idf/esp_rom/libesp_rom.a" "esp-idf/hal/libhal.a" "esp-idf/vfs/libvfs.a" "esp-idf/esp_eth/libesp_eth.a" "esp-idf/tcpip_adapter/libtcpip_adapter.a" "esp-idf/esp_netif/libesp_netif.a" "esp-idf/esp_event/libesp_event.a" "esp-idf/wpa_supplicant/libwpa_supplicant.a" "esp-idf/esp_wifi/libesp_wifi.a" "esp-idf/console/libconsole.a" "esp-idf/lwip/liblwip.a" "esp-idf/log/liblog.a" "esp-idf/heap/libheap.a" "esp-idf/soc/libsoc.a" "esp-idf/esp_hw_support/libesp_hw_support.a" "esp-idf/riscv/libriscv.a" "esp-idf/esp_common/libesp_common.a" "esp-idf/esp_timer/libesp_timer.a" "esp-idf/freertos/libfreertos.a" "esp-idf/newlib/libnewlib.a" "esp-idf/cxx/libcxx.a" "esp-idf/app_trace/libapp_trace.a" "esp-idf/nghttp/libnghttp.a" "esp-idf/esp-tls/libesp-tls.a" "esp-idf/tcp_transport/libtcp_transport.a" "esp-idf/esp_http_client/libesp_http_client.a" "esp-idf/esp_http_server/libesp_http_server.a" "esp-idf/esp_https_ota/libesp_https_ota.a" "esp-idf/sdmmc/libsdmmc.a" "esp-idf/esp_serial_slave_link/libesp_serial_slave_link.a" "esp-idf/mbedtls/mbedtls/library/libmbedtls.a" "esp-idf/mbedtls/mbedtls/library/libmbedcrypto.a" "esp-idf/mbedtls/mbedtls/library/libmbedx509.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libcoexist.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libcore.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libespnow.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libmesh.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libnet80211.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libpp.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libsmartconfig.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libwapi.a" "esp-idf/esp_ringbuf/libesp_ringbuf.a" "esp-idf/efuse/libefuse.a" "esp-idf/esp_ipc/libesp_ipc.a" "esp-idf/driver/libdriver.a" "esp-idf/esp_pm/libesp_pm.a" "esp-idf/mbedtls/libmbedtls.a" "esp-idf/app_update/libapp_update.a" "esp-idf/bootloader_support/libbootloader_support.a" "esp-idf/spi_flash/libspi_flash.a" "esp-idf/nvs_flash/libnvs_flash.a" "esp-idf/pthread/libpthread.a" "esp-idf/esp_gdbstub/libesp_gdbstub.a" "esp-idf/espcoredump/libespcoredump.a" "esp-idf/esp_phy/libesp_phy.a" "esp-idf/esp_system/libesp_system.a" "esp-idf/esp_rom/libesp_rom.a" "esp-idf/hal/libhal.a" "esp-idf/vfs/libvfs.a" "esp-idf/esp_eth/libesp_eth.a" "esp-idf/tcpip_adapter/libtcpip_adapter.a" "esp-idf/esp_netif/libesp_netif.a" "esp-idf/esp_event/libesp_event.a" "esp-idf/wpa_supplicant/libwpa_supplicant.a" "esp-idf/esp_wifi/libesp_wifi.a" "esp-idf/console/libconsole.a" "esp-idf/lwip/liblwip.a" "esp-idf/log/liblog.a" "esp-idf/heap/libheap.a" "esp-idf/soc/libsoc.a" "esp-idf/esp_hw_support/libesp_hw_support.a" "esp-idf/riscv/libriscv.a" "esp-idf/esp_common/libesp_common.a" "esp-idf/esp_timer/libesp_timer.a" "esp-idf/freertos/libfreertos.a" "esp-idf/newlib/libnewlib.a" "esp-idf/cxx/libcxx.a" "esp-idf/app_trace/libapp_trace.a" "esp-idf/nghttp/libnghttp.a" "esp-idf/esp-tls/libesp-tls.a" "esp-idf/tcp_transport/libtcp_transport.a" "esp-idf/esp_http_client/libesp_http_client.a" "esp-idf/esp_http_server/libesp_http_server.a" "esp-idf/esp_https_ota/libesp_https_ota.a" "esp-idf/sdmmc/libsdmmc.a" "esp-idf/esp_serial_slave_link/libesp_serial_slave_link.a" "esp-idf/mbedtls/mbedtls/library/libmbedtls.a" "esp-idf/mbedtls/mbedtls/library/libmbedcrypto.a" "esp-idf/mbedtls/mbedtls/library/libmbedx509.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libcoexist.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libcore.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libespnow.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libmesh.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libnet80211.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libpp.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libsmartconfig.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libwapi.a" "esp-idf/esp_ringbuf/libesp_ringbuf.a" "esp-idf/efuse/libefuse.a" "esp-idf/esp_ipc/libesp_ipc.a" "esp-idf/driver/libdriver.a" "esp-idf/esp_pm/libesp_pm.a" "esp-idf/mbedtls/libmbedtls.a" "esp-idf/app_update/libapp_update.a" "esp-idf/bootloader_support/libbootloader_support.a" "esp-idf/spi_flash/libspi_flash.a" "esp-idf/nvs_flash/libnvs_flash.a" "esp-idf/pthread/libpthread.a" "esp-idf/esp_gdbstub/libesp_gdbstub.a" "esp-idf/espcoredump/libespcoredump.a" "esp-idf/esp_phy/libesp_phy.a" "esp-idf/esp_system/libesp_system.a" "esp-idf/esp_rom/libesp_rom.a" "esp-idf/hal/libhal.a" "esp-idf/vfs/libvfs.a" "esp-idf/esp_eth/libesp_eth.a" "esp-idf/tcpip_adapter/libtcpip_adapter.a" "esp-idf/esp_netif/libesp_netif.a" "esp-idf/esp_event/libesp_event.a" "esp-idf/wpa_supplicant/libwpa_supplicant.a" "esp-idf/esp_wifi/libesp_wifi.a" "esp-idf/console/libconsole.a" "esp-idf/lwip/liblwip.a" "esp-idf/log/liblog.a" "esp-idf/heap/libheap.a" "esp-idf/soc/libsoc.a" "esp-idf/esp_hw_support/libesp_hw_support.a" "esp-idf/riscv/libriscv.a" "esp-idf/esp_common/libesp_common.a" "esp-idf/esp_timer/libesp_timer.a" "esp-idf/freertos/libfreertos.a" "esp-idf/newlib/libnewlib.a" "esp-idf/cxx/libcxx.a" "esp-idf/app_trace/libapp_trace.a" "esp-idf/nghttp/libnghttp.a" "esp-idf/esp-tls/libesp-tls.a" "esp-idf/tcp_transport/libtcp_transport.a" "esp-idf/esp_http_client/libesp_http_client.a" "esp-idf/esp_http_server/libesp_http_server.a" "esp-idf/esp_https_ota/libesp_https_ota.a" "esp-idf/sdmmc/libsdmmc.a" "esp-idf/esp_serial_slave_link/libesp_serial_slave_link.a" "esp-idf/mbedtls/mbedtls/library/libmbedtls.a" "esp-idf/mbedtls/mbedtls/library/libmbedcrypto.a" "esp-idf/mbedtls/mbedtls/library/libmbedx509.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libcoexist.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libcore.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libespnow.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libmesh.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libnet80211.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libpp.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libsmartconfig.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libwapi.a" "-u" "esp_app_desc" "-u" "pthread_include_pthread_impl" "-u" "pthread_include_pthread_cond_impl" "-u" "pthread_include_pthread_local_storage_impl" "-u" "pthread_include_pthread_rwlock_impl" "-L" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_phy/lib/esp32c3" "-u" "include_esp_phy_override" "-lphy" "-lbtbb" "esp-idf/esp_phy/libesp_phy.a" "-lphy" "-lbtbb" "esp-idf/esp_phy/libesp_phy.a" "-lphy" "-lbtbb" "-u" "start_app" "-L" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-db3d53c596bb828c/out/build/esp-idf/esp_system/ld" "-T" "memory.ld" "-T" "sections.ld" "-u" "__ubsan_include" "-L" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_rom/esp32c3/ld" "-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.newlib-time.ld" "-T" "esp32c3.rom.eco3.ld" "-u" "__assert_func" "-u" "vfs_include_syscalls_impl" "-L" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3" "-L" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/soc/esp32c3/ld" "-T" "esp32c3.peripherals.ld" "-Wl,--undefined=uxTopUsedPriority" "-u" "app_main" "-lm" "esp-idf/newlib/libnewlib.a" "-u" "newlib_include_heap_impl" "-u" "newlib_include_syscalls_impl" "-u" "newlib_include_pthread_impl" "-u" "newlib_include_assert_impl" "-Wl,--wrap=_Unwind_SetEnableExceptionFdeSorting" "-Wl,--wrap=__register_frame_info_bases" "-Wl,--wrap=__register_frame_info" "-Wl,--wrap=__register_frame" "-Wl,--wrap=__register_frame_info_table_bases" "-Wl,--wrap=__register_frame_info_table" "-Wl,--wrap=__register_frame_table" "-Wl,--wrap=__deregister_frame_info_bases" "-Wl,--wrap=__deregister_frame_info" "-Wl,--wrap=_Unwind_Find_FDE" "-Wl,--wrap=_Unwind_GetGR" "-Wl,--wrap=_Unwind_GetCFA" "-Wl,--wrap=_Unwind_GetIP" "-Wl,--wrap=_Unwind_GetIPInfo" "-Wl,--wrap=_Unwind_GetRegionStart" "-Wl,--wrap=_Unwind_GetDataRelBase" "-Wl,--wrap=_Unwind_GetTextRelBase" "-Wl,--wrap=_Unwind_SetIP" "-Wl,--wrap=_Unwind_SetGR" "-Wl,--wrap=_Unwind_GetLanguageSpecificData" "-Wl,--wrap=_Unwind_FindEnclosingFunction" "-Wl,--wrap=_Unwind_Resume" "-Wl,--wrap=_Unwind_RaiseException" "-Wl,--wrap=_Unwind_DeleteException" "-Wl,--wrap=_Unwind_ForcedUnwind" "-Wl,--wrap=_Unwind_Resume_or_Rethrow" "-Wl,--wrap=_Unwind_Backtrace" "-Wl,--wrap=__cxa_call_unexpected" "-Wl,--wrap=__gxx_personality_v0" "-u" "__cxa_guard_dummy" "-lstdc++" "esp-idf/pthread/libpthread.a" "-lgcc" "esp-idf/cxx/libcxx.a" "-u" "__cxx_fatal_exception" "esp-idf/app_trace/libapp_trace.a" "-lgcov" "esp-idf/app_trace/libapp_trace.a" "-lgcov" "-lc"
  = note: [ldproxy] Running ldproxy
          Error: Linker /home/onio/esp/hello/.embuild/espressif/tools/riscv32-esp-elf/esp-2021r2-patch5-8.4.0/riscv32-esp-elf/bin/riscv32-esp-elf-gcc failed: exit status: 1
          STDERR OUTPUT:
          /home/onio/esp/hello/.embuild/espressif/tools/riscv32-esp-elf/esp-2021r2-patch5-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld: error: esp-idf/esp_ringbuf/libesp_ringbuf.a(ringbuf.c.obj): Mis-matched ISA version for 'i' extension. 2.0 vs 2.1
          /home/onio/esp/hello/.embuild/espressif/tools/riscv32-esp-elf/esp-2021r2-patch5-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld: failed to merge target specific data of file esp-idf/esp_ringbuf/libesp_ringbuf.a(ringbuf.c.obj)
          /home/onio/esp/hello/.embuild/espressif/tools/riscv32-esp-elf/esp-2021r2-patch5-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld: -march=: ISA string must begin with rv32 or rv64
          /home/onio/esp/hello/.embuild/espressif/tools/riscv32-esp-elf/esp-2021r2-patch5-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld: failed to merge target specific data of file esp-idf/driver/libdriver.a(i2c.c.obj)
          /home/onio/esp/hello/.embuild/espressif/tools/riscv32-esp-elf/esp-2021r2-patch5-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld: -march=: ISA string must begin with rv32 or rv64
          /home/onio/esp/hello/.embuild/espressif/tools/riscv32-esp-elf/esp-2021r2-patch5-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld: failed to merge target specific data of file /home/onio/esp/hello/.embuild/espressif/tools/riscv32-esp-elf/esp-2021r2-patch5-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/lib/rv32imc/ilp32/no-rtti/libc.a(lib_a-snprintf.o)
          /home/onio/esp/hello/.embuild/espressif/tools/riscv32-esp-elf/esp-2021r2-patch5-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld: -march=: ISA string must begin with rv32 or rv64
          /home/onio/esp/hello/.embuild/espressif/tools/riscv32-esp-elf/esp-2021r2-patch5-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld: failed to merge target specific data of file /home/onio/esp/hello/.embuild/espressif/tools/riscv32-esp-elf/esp-2021r2-patch5-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/lib/rv32imc/ilp32/no-rtti/libc.a(lib_a-sprintf.o)onio@ecclesiastes:~/esp$ cargo build
error: could not find `Cargo.toml` in `/home/onio/esp` or any parent directory
onio@ecclesiastes:~/esp$ cd hello
onio@ecclesiastes:~/esp/hello$ 
onio@ecclesiastes:~/esp/hello$ 
onio@ecclesiastes:~/esp/hello$ cargo build
    Updating crates.io index
  Downloaded thiserror v1.0.47
  Downloaded thiserror-impl v1.0.47
  Downloaded anyhow v1.0.75
  Downloaded 3 crates (77.8 KB) in 2.65s
   Compiling compiler_builtins v0.1.100
   Compiling core v0.0.0 (/home/onio/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core)
   Compiling libc v0.2.147
   Compiling proc-macro2 v1.0.66
   Compiling cc v1.0.79
   Compiling unicode-ident v1.0.11
   Compiling memchr v2.5.0
   Compiling std v0.0.0 (/home/onio/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std)
   Compiling quote v1.0.33
   Compiling serde_derive v1.0.183
   Compiling serde v1.0.183
   Compiling cfg-if v1.0.0
   Compiling unwind v0.0.0 (/home/onio/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/unwind)
   Compiling syn v2.0.29
   Compiling fnv v1.0.7
   Compiling aho-corasick v1.0.4
   Compiling regex-syntax v0.7.4
   Compiling regex-automata v0.3.6
   Compiling bitflags v1.3.2
   Compiling syn v1.0.109
   Compiling rustc-std-workspace-core v1.99.0 (/home/onio/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/rustc-std-workspace-core)
   Compiling alloc v0.0.0 (/home/onio/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc)
   Compiling adler v1.0.2
   Compiling rustc-demangle v0.1.23
   Compiling rustc-std-workspace-alloc v1.99.0 (/home/onio/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/rustc-std-workspace-alloc)
   Compiling panic_abort v0.0.0 (/home/onio/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/panic_abort)
   Compiling gimli v0.27.3
   Compiling hashbrown v0.14.0
   Compiling miniz_oxide v0.7.1
   Compiling std_detect v0.1.5 (/home/onio/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/stdarch/crates/std_detect)
   Compiling object v0.31.1
   Compiling panic_unwind v0.0.0 (/home/onio/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/panic_unwind)
   Compiling glob v0.3.1
   Compiling regex v1.9.3
   Compiling clang-sys v1.6.1
   Compiling log v0.4.20
   Compiling rustversion v1.0.14
   Compiling once_cell v1.18.0
   Compiling semver v1.0.18
   Compiling addr2line v0.20.0
   Compiling lazy_static v1.4.0
   Compiling bstr v1.6.0
   Compiling same-file v1.0.6
   Compiling serde_json v1.0.105
   Compiling rustix v0.38.8
   Compiling thiserror v1.0.47
   Compiling static_assertions v1.1.0
   Compiling minimal-lexical v0.2.1
   Compiling nix v0.26.2
   Compiling nom v7.1.3
   Compiling walkdir v2.3.3
   Compiling globset v0.4.13
   Compiling proc_macro v0.0.0 (/home/onio/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/proc_macro)
   Compiling thread_local v1.1.7
   Compiling thiserror-impl v1.0.47
   Compiling libloading v0.7.4
   Compiling cvt v0.1.2
   Compiling itoa v1.0.9
   Compiling bitflags v2.4.0
   Compiling anyhow v1.0.75
   Compiling bindgen v0.63.0
   Compiling either v1.9.0
   Compiling heck v0.4.1
   Compiling linux-raw-sys v0.4.5
   Compiling ryu v1.0.15
   Compiling which v4.4.0
   Compiling strum_macros v0.24.3
   Compiling fs_at v0.1.8
   Compiling ignore v0.4.20
   Compiling cexpr v0.6.0
   Compiling cc v1.0.82
   Compiling shlex v1.1.0
   Compiling normpath v1.1.1
   Compiling rustc-hash v1.1.0
   Compiling lazycell v1.3.0
   Compiling peeking_take_while v0.1.2
   Compiling fastrand v2.0.0
   Compiling tempfile v3.7.1
   Compiling cmake v0.1.50
   Compiling remove_dir_all v0.8.2
   Compiling strum v0.24.1
   Compiling globwalk v0.8.1
   Compiling filetime v0.2.22
   Compiling home v0.5.5
   Compiling camino v1.1.6
   Compiling cargo-platform v0.1.3
   Compiling envy v0.4.2
   Compiling autocfg v1.1.0
   Compiling cargo_metadata v0.15.4
   Compiling ident_case v1.0.1
   Compiling darling_core v0.20.3
   Compiling num-traits v0.2.16
   Compiling embuild v0.31.2
   Compiling rustc_version v0.4.0
   Compiling nb v1.1.0
   Compiling heapless v0.7.16
   Compiling darling_macro v0.20.3
   Compiling byteorder v1.4.3
   Compiling unicode-xid v0.2.4
   Compiling iana-time-zone v0.1.57
   Compiling darling v0.20.3
   Compiling const_format_proc_macros v0.2.31
   Compiling enumset_derive v0.8.1
   Compiling chrono v0.4.26
   Compiling esp-idf-sys v0.33.1
   Compiling hash32 v0.2.1
   Compiling stable_deref_trait v1.2.0
   Compiling version_check v0.9.4
   Compiling build-time v0.1.3
   Compiling uncased v0.9.9
   Compiling enumset v1.1.2
   Compiling esp-idf-hal v0.41.2
   Compiling const_format v0.2.31
   Compiling nb v0.1.3
   Compiling embedded-hal v1.0.0-alpha.10
   Compiling void v1.0.2
   Compiling atomic-waker v1.1.1
   Compiling embedded-hal-nb v1.0.0-alpha.2
   Compiling embedded-hal v0.2.7
   Compiling esp-idf-svc v0.46.2
   Compiling embedded-can v0.4.1
   Compiling embedded-io v0.4.0
   Compiling no-std-net v0.5.0
   Compiling embedded-svc v0.25.3
   Compiling hello v0.1.0 (/home/onio/esp/hello)
   Compiling embassy-futures v0.1.0
error: linking with `ldproxy` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/home/onio/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/onio/.rustup/toolchains/esp/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin:/home/onio/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin:/home/onio/.rustup/toolchains/esp/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin:/home/onio/.rustup/toolchains/esp/xtensa-esp32s2-elf/esp-12.2.0_20230208/xtensa-esp32s2-elf/bin:/home/onio/.rustup/toolchains/esp/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin:/home/onio/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin:/home/onio/.rustup/toolchains/esp/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin:/home/onio/.rustup/toolchains/esp/xtensa-esp32s2-elf/esp-12.2.0_20230208/xtensa-esp32s2-elf/bin:/home/onio/.rustup/toolchains/esp/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin:/home/onio/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin:/home/onio/.rustup/toolchains/esp/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin:/home/onio/.rustup/toolchains/esp/xtensa-esp32s2-elf/esp-12.2.0_20230208/xtensa-esp32s2-elf/bin:/home/onio/.cargo/bin:/home/onio/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin" VSLANG="1033" "ldproxy" "/tmp/rustcOSEsc7/symbols.o" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/hello-2eb2eb706f9fe7cd.1eui8h2wg9o2mth.rcgu.o" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/hello-2eb2eb706f9fe7cd.3adj507s5escho6g.rcgu.o" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/hello-2eb2eb706f9fe7cd.u266hhhq2qfqlem.rcgu.o" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/hello-2eb2eb706f9fe7cd.2lu10lrdegjsshwi.rcgu.o" "-Wl,--as-needed" "-L" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps" "-L" "/home/onio/esp/hello/target/debug/deps" "-L" "/home/onio/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/riscv32imc-esp-espidf/lib" "-Wl,-Bstatic" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/libesp_idf_svc-bc05c35ab00fda8b.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/libembassy_futures-f7dd82298186fbc5.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/libuncased-de77d97417b3ec87.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/libesp_idf_hal-f76ab0d41d28f7ac.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/libembedded_hal_nb-ee06efca3845b333.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/libembedded_can-326addeb96403108.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/libembedded_hal-bbd0eaf2e5a53971.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/libvoid-36a91ef52750fe44.rlib" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/deps/libnb-80eb68081c822115.rlib" idf/esp_system/libesp_system.a" "esp-idf/esp_rom/libesp_rom.a" "esp-idf/hal/libhal.a" "esp-idf/vfs/libvfs.a" "esp-idf/esp_eth/libesp_eth.a" "esp-idf/tcpip_adapter/libtcpip_adapter.a" "esp-idf/esp_netif/libesp_netif.a" "esp-idf/esp_event/libesp_event.a" "esp-idf/wpa_supplicant/libwpa_supplicant.a" "esp-idf/esp_wifi/libesp_wifi.a" "esp-idf/console/libconsole.a" "esp-idf/lwip/liblwip.a" "esp-idf/log/liblog.a" "esp-idf/heap/libheap.a" "esp-idf/soc/libsoc.a" "esp-idf/esp_hw_support/libesp_hw_support.a" "esp-idf/riscv/libriscv.a" "esp-idf/esp_common/libesp_common.a" "esp-idf/esp_timer/libesp_timer.a" "esp-idf/freertos/libfreertos.a" "esp-idf/newlib/libnewlib.a" "esp-idf/cxx/libcxx.a" "esp-idf/app_trace/libapp_trace.a" "esp-idf/nghttp/libnghttp.a" "esp-idf/esp-tls/libesp-tls.a" "esp-idf/tcp_transport/libtcp_transport.a" "esp-idf/esp_http_client/libesp_http_client.a" "esp-idf/esp_http_server/libesp_http_server.a" "esp-idf/esp_https_ota/libesp_https_ota.a" "esp-idf/sdmmc/libsdmmc.a" "esp-idf/esp_serial_slave_link/libesp_serial_slave_link.a" "esp-idf/mbedtls/mbedtls/library/libmbedtls.a" "esp-idf/mbedtls/mbedtls/library/libmbedcrypto.a" "esp-idf/mbedtls/mbedtls/library/libmbedx509.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libcoexist.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libcore.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libespnow.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libmesh.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libnet80211.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libpp.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libsmartconfig.a" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3/libwapi.a" "-u" "esp_app_desc" "-u" "pthread_include_pthread_impl" "-u" "pthread_include_pthread_cond_impl" "-u" "pthread_include_pthread_local_storage_impl" "-u" "pthread_include_pthread_rwlock_impl" "-L" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_phy/lib/esp32c3" "-u" "include_esp_phy_override" "-lphy" "-lbtbb" "esp-idf/esp_phy/libesp_phy.a" "-lphy" "-lbtbb" "esp-idf/esp_phy/libesp_phy.a" "-lphy" "-lbtbb" "-u" "start_app" "-L" "/home/onio/esp/hello/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-db3d53c596bb828c/out/build/esp-idf/esp_system/ld" "-T" "memory.ld" "-T" "sections.ld" "-u" "__ubsan_include" "-L" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_rom/esp32c3/ld" "-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.newlib-time.ld" "-T" "esp32c3.rom.eco3.ld" "-u" "__assert_func" "-u" "vfs_include_syscalls_impl" "-L" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/esp_wifi/lib/esp32c3" "-L" "/home/onio/esp/hello/.embuild/espressif/esp-idf/v4.4.5/components/soc/esp32c3/ld" "-T" "esp32c3.peripherals.ld" "-Wl,--undefined=uxTopUsedPriority" "-u" "app_main" "-lm" "esp-idf/newlib/libnewlib.a" "-u" "newlib_include_heap_impl" "-u" "newlib_include_syscalls_impl" "-u" "newlib_include_pthread_impl" "-u" "newlib_include_assert_impl" "-Wl,--wrap=_Unwind_SetEnableExceptionFdeSorting" "-Wl,--wrap=__register_frame_info_bases" "-Wl,--wrap=__register_frame_info" "-Wl,--wrap=__register_frame" "-Wl,--wrap=__register_frame_info_table_bases" "-Wl,--wrap=__register_frame_info_table" "-Wl,--wrap=__register_frame_table" "-Wl,--wrap=__deregister_frame_info_bases" "-Wl,--wrap=__deregister_frame_info" "-Wl,--wrap=_Unwind_Find_FDE" "-Wl,--wrap=_Unwind_GetGR" "-Wl,--wrap=_Unwind_GetCFA" "-Wl,--wrap=_Unwind_GetIP" "-Wl,--wrap=_Unwind_GetIPInfo" "-Wl,--wrap=_Unwind_GetRegionStart" "-Wl,--wrap=_Unwind_GetDataRelBase" "-Wl,--wrap=_Unwind_GetTextRelBase" "-Wl,--wrap=_Unwind_SetIP" "-Wl,--wrap=_Unwind_SetGR" "-Wl,--wrap=_Unwind_GetLanguageSpecificData" "-Wl,--wrap=_Unwind_FindEnclosingFunction" "-Wl,--wrap=_Unwind_Resume" "-Wl,--wrap=_Unwind_RaiseException" "-Wl,--wrap=_Unwind_DeleteException" "-Wl,--wrap=_Unwind_ForcedUnwind" "-Wl,--wrap=_Unwind_Resume_or_Rethrow" "-Wl,--wrap=_Unwind_Backtrace" "-Wl,--wrap=__cxa_call_unexpected" "-Wl,--wrap=__gxx_personality_v0" "-u" "__cxa_guard_dummy" "-lstdc++" "esp-idf/pthread/libpthread.a" "-lgcc" "esp-idf/cxx/libcxx.a" "-u" "__cxx_fatal_exception" "esp-idf/app_trace/libapp_trace.a" "-lgcov" "esp-idf/app_trace/libapp_trace.a" "-lgcov" "-lc"
  = note: [ldproxy] Running ldproxy
          Error: Linker /home/onio/esp/hello/.embuild/espressif/tools/riscv32-esp-elf/esp-2021r2-patch5-8.4.0/riscv32-esp-elf/bin/riscv32-esp-elf-gcc failed: exit status: 1
          STDERR OUTPUT:
          /home/onio/esp/hello/.embuild/espressif/tools/riscv32-esp-elf/esp-2021r2-patch5-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld: error: esp-idf/esp_ringbuf/libesp_ringbuf.a(ringbuf.c.obj): Mis-matched ISA version for 'i' extension. 2.0 vs 2.1
          /home/onio/esp/hello/.embuild/espressif/tools/riscv32-esp-elf/esp-2021r2-patch5-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld: failed to merge target specific data of file esp-idf/esp_ringbuf/libesp_ringbuf.a(ringbuf.c.obj)
          /home/onio/esp/hello/.embuild/espressif/tools/riscv32-esp-elf/esp-2021r2-patch5-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld: -march=: ISA string must begin with rv32 or rv64
          /home/onio/esp/hello/.embuild/espressif/tools/riscv32-esp-elf/esp-2021r2-patch5-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld: failed to merge target specific data of file esp-idf/driver/libdriver.a(i2c.c.obj)
          /home/onio/esp/hello/.embuild/espressif/tools/riscv32-esp-elf/esp-2021r2-patch5-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld: -march=: ISA string must begin with rv32 or rv64
          /home/onio/esp/hello/.embuild/espressif/tools/riscv32-esp-elf/esp-2021r2-patch5-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld: failed to merge target specific data of file esp-idf/driver/libdriver.a(ledc.c.obj)
          /home/onio/esp/hello/.embuild/espressif/tools/riscv32-esp-elf/esp-2021r2-patch5-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld: -march=: ISA string must begin with rv32 or rv64

          /home/onio/esp/hello/.embuild/espressif/tools/riscv32-esp-elf/esp-2021r2-patch5-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld: failed to merge target specific data of file esp-idf/hal/libhal.a(hmac_hal.c.obj)
          /home/onio/esp/hello/.embuild/espressif/tools/riscv32-esp-elf/esp-2021r2-patch5-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld: -march=: ISA string 
          /home/onio/esp/hello/.embuild/espressif/tools/riscv32-esp-elf/esp-2021r2-patch5-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld: failed to merge target specific data of file /home/onio/esp/hello/.embuild/espressif/tools/riscv32-esp-elf/esp-2021r2-patch5-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/rv32imc/ilp32/no-rtti/libgcc.a(trunctfdf2.o)
          collect2: error: ld returned 1 exit status

          Stack backtrace:
             0: ldproxy::main
             1: std::sys_common::backtrace::__rust_begin_short_backtrace
             2: std::rt::lang_start::{{closure}}
             3: core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once
                       at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/core/src/ops/function.rs:287:13
                std::panicking::try::do_call
                       at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/std/src/panicking.rs:487:40
                std::panicking::try
                       at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/std/src/panicking.rs:451:19
                std::panic::catch_unwind
                       at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/std/src/panic.rs:140:14
                std::rt::lang_start_internal::{{closure}}
                       at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/std/src/rt.rs:148:48
                std::panicking::try::do_call
                       at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/std/src/panicking.rs:487:40
                std::panicking::try
                       at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/std/src/panicking.rs:451:19
                std::panic::catch_unwind
                       at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/std/src/panic.rs:140:14
                std::rt::lang_start_internal
                       at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/std/src/rt.rs:148:20
             4: main
             5: __libc_start_call_main
                       at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
             6: __libc_start_main_impl
                       at ./csu/../csu/libc-start.c:392:3
             7: _start

error: could not compile `hello` (bin "hello") due to previous error

          /home/onio/esp/hello/.embuild/espressif/tools/riscv32-esp-elf/esp-2021r2-patch5-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld: -march=: ISA string must begin with rv32 or rv64
          /home/onio/esp/hello/.embuild/espressif/tools/riscv32-esp-elf/esp-2021r2-patch5-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld: failed to merge target specific data of file /home/onio/esp/hello/.embuild/espressif/tools/riscv32-esp-elf/esp-2021r2-patch5-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/lib/rv32imc/ilp32/no-rtti/libc.a(lib_a-stdio.o)
/* other build commands */
          /home/onio/esp/hello/.embuild/espressif/tools/riscv32-esp-elf/esp-2021r2-patch5-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld: failed to merge target specific data of file /home/onio/esp/hello/.embuild/espressif/tools/riscv32-esp-elf/esp-2021r2-patch5-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/lib/rv32imc/ilp32/no-rtti/libc.a(lib_a-wctomb_r.o)
          /home/onio/esp/hello/.embuild/espressif/tools/riscv32-esp-elf/esp-2021r2-patch5-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld: -march=: ISA string must begin with rv32 or rv64
          /home/onio/esp/hello/.embuild/espressif/tools/riscv32-esp-elf/esp-2021r2-patch5-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld: failed to merge target specific data of file /home/onio/esp/hello/.embuild/espressif/tools/riscv32-esp-elf/esp-2021r2-patch5-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/rv32imc/ilp32/no-rtti/libgcc.a(trunctfdf2.o)
          collect2: error: ld returned 1 exit status

          Stack backtrace:
             0: ldproxy::main
             1: std::sys_common::backtrace::__rust_begin_short_backtrace
             2: std::rt::lang_start::{{closure}}
             3: core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once
                       at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/core/src/ops/function.rs:287:13
                std::panicking::try::do_call
                       at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/std/src/panicking.rs:487:40
                std::panicking::try
                       at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/std/src/panicking.rs:451:19
                std::panic::catch_unwind
                       at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/std/src/panic.rs:140:14
                std::rt::lang_start_internal::{{closure}}
                       at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/std/src/rt.rs:148:48
                std::panicking::try::do_call
                       at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/std/src/panicking.rs:487:40
                std::panicking::try
                       at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/std/src/panicking.rs:451:19
                std::panic::catch_unwind
                       at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/std/src/panic.rs:140:14
                std::rt::lang_start_internal
                       at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/std/src/rt.rs:148:20
             4: main
             5: __libc_start_call_main
                       at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
             6: __libc_start_main_impl
                       at ./csu/../csu/libc-start.c:392:3
             7: _start

error: could not compile `hello` (bin "hello") due to previous error

More Information.

No response

olaoni commented 1 year ago

I had to remove a lot of the errors as the log exceeded the maximum number of characters allowed.

igrr commented 1 year ago

I'm not sure this is a bug specifically in IDF. The error indicates that the linker was given object files with incompatible version of RISC-V integer ISA.

esp-2021r2-patch5-8.4.0 GCC based toolchain used in IDF v4.4.x uses binutils 2.35.1, which produces this arch tag: rv32i2p0_m2p0_a2p0_f2p0_d2p0_c2p0.

Newer binutils releases produce an arch tag with a different "I" version (2.1 instead of 2.0): rv32i2p1_m2p0_c2p0_zicsr2p0_zifencei2p0.

My guess is that Rust compiler you are using also generates code with something like rv32i2p1_m2p0_c2p0, which is incompatible with object files from IDF which are built with rv32i2p0_m2p0_a2p0_f2p0_d2p0_c2p0.

Just my understanding of the issue so far. I don't yet have an idea where/how it should be fixed. As far as IDF is concerned, release/v4.4 has always been generating code with rv32i2p0, no changes have occurred.

olaoni commented 1 year ago

Hi igrr, Thank you for your speedy reply.

Any idea on a work around?

Regards onio

olaoni commented 1 year ago

Hi All,

I thought I should share this information just in case someone might have the same issue and stumble on to this page.

After many days of trying to get the default esp-idf-template project to build. I have manage to get a simple blinky program working.

Thanks to Hutscape page that showed a work around on how to create a project that builds.

Just to re-iterate when the project is created using the recommended esp-idf-template command as below

cargo generate esp-rs/esp-idf-template cargo

The project is created successfully, but the problem occurs when you issue the command to build for example

cargo build

This command fails as indicated in my first message above. In order to create a project that will build, I found Hutscape page which used the following command

cargo generate --vcs none --git https://github.com/esp-rs/esp-idf-template cargo

Creating the project with this form allowed the project to build.

Below is the source code and Cargo.toml for the blinky program.

Cargo.toml `[package] name = "blinky" version = "0.1.0" authors = ["authors namemyemail@address.com"] edition = "2021" resolver = "2" rust-version = "1.66"

[profile.release] opt-level = "s"

[profile.dev] debug = true # Symbols are nice and they don't increase the size on Flash opt-level = "z"

[features]

default = ["std", "hal", "esp-idf-sys/native"]

pio = ["esp-idf-sys/pio"] all = ["std", "nightly", "experimental", "embassy"] hal = ["esp-idf-hal", "embedded-svc", "esp-idf-svc"] std = ["alloc", "esp-idf-sys/std", "esp-idf-sys/binstart", "embedded-svc?/std", "esp-idf-hal?/std", "esp-idf-svc?/std"] alloc = ["embedded-svc?/alloc", "esp-idf-hal?/alloc", "esp-idf-svc?/alloc"] nightly = ["embedded-svc?/nightly", "esp-idf-svc?/nightly"] # Future: "esp-idf-hal?/nightly" experimental = ["embedded-svc?/experimental", "esp-idf-svc?/experimental"] embassy = ["esp-idf-hal?/embassy-sync", "esp-idf-hal?/critical-section", "esp-idf-hal?/edge-executor", "esp-idf-svc?/embassy-time-driver", "esp-idf-svc?/embassy-time-isr-queue"]

[dependencies] log = { version = "0.4.17", default-features = false } esp-idf-sys = { version = "0.33", default-features = false } esp-idf-hal = { version = "0.41", optional = true, default-features = false } esp-idf-svc = { version = "0.46", optional = true, default-features = false } embedded-svc = { version = "0.25", optional = true, default-features = false }

[build-dependencies] embuild = "0.31.2" ` src/main.rs

`use esp_idf_hal::gpio::*; use esp_idf_hal::peripherals::Peripherals;

use esp_idfsys as ;

fn main() { esp_idf_sys::link_patches();

let peripherals = Peripherals::take().unwrap();

let mut led = PinDriver::output(peripherals.pins.gpio8).unwrap();

println!("led blinky!");

loop {
    led.set_high().unwrap();
    std::thread::sleep(std::time::Duration::from_secs(1));
    led.set_low().unwrap();
    std::thread::sleep(std::time::Duration::from_secs(1));
}

} `