Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Linker error when building for ESP32-S2 #47

Closed
ryanc-me opened this issue Dec 24, 2021 · 4 comments
Closed

Linker error when building for ESP32-S2 #47

ryanc-me opened this issue Dec 24, 2021 · 4 comments

Comments

@ryanc-me
Copy link

hello! i'm getting a linker error when building for the ESP32-S2 variant.

the error is very similar to #24, except it's complaining about undefined reference to '__sync_lock_test_and_set_4'

full error:

error: linking with `ldproxy` failed: exit status: 1
  |
  = note: "ldproxy" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/rust_esp32_std_demo-3ffb2665e5b3cce5.17cr2e1tk2gyufs7.rcgu.o" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/rust_esp32_std_demo-3ffb2665e5b3cce5.1aknpudcas07lwc6.rcgu.o" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/rust_esp32_std_demo-3ffb2665e5b3cce5.1bj0sql7mmysp4de.rcgu.o" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/rust_esp32_std_demo-3ffb2665e5b3cce5.1q0ojaklqqblxjuf.rcgu.o" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/rust_esp32_std_demo-3ffb2665e5b3cce5.1r9ru3ef2465pvpx.rcgu.o" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/rust_esp32_std_demo-3ffb2665e5b3cce5.23acug9zg82x7bl5.rcgu.o" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/rust_esp32_std_demo-3ffb2665e5b3cce5.2axqel57hdn7uj9c.rcgu.o" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/rust_esp32_std_demo-3ffb2665e5b3cce5.2c8jp6f41du9qdzi.rcgu.o" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/rust_esp32_std_demo-3ffb2665e5b3cce5.2f1hi8ovuikd28ng.rcgu.o" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/rust_esp32_std_demo-3ffb2665e5b3cce5.2ovug2lkaj25o4bk.rcgu.o" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/rust_esp32_std_demo-3ffb2665e5b3cce5.2paz3i5ba9js58f0.rcgu.o" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/rust_esp32_std_demo-3ffb2665e5b3cce5.2qktm9zbg0tmnxq7.rcgu.o" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/rust_esp32_std_demo-3ffb2665e5b3cce5.2x5efin4zphwilfo.rcgu.o" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/rust_esp32_std_demo-3ffb2665e5b3cce5.2xhhbgpr6axugxb6.rcgu.o" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/rust_esp32_std_demo-3ffb2665e5b3cce5.30ich6uw49x9t1x6.rcgu.o" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/rust_esp32_std_demo-3ffb2665e5b3cce5.3covqqhl7fmhwcgv.rcgu.o" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/rust_esp32_std_demo-3ffb2665e5b3cce5.3dr3m7kw2xywy3cs.rcgu.o" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/rust_esp32_std_demo-3ffb2665e5b3cce5.3hl8m4k9wuzbolxa.rcgu.o" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/rust_esp32_std_demo-3ffb2665e5b3cce5.3rvvmfm99ortokqz.rcgu.o" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/rust_esp32_std_demo-3ffb2665e5b3cce5.3tixuhkehb1clp33.rcgu.o" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/rust_esp32_std_demo-3ffb2665e5b3cce5.3us1alpgkrx04shw.rcgu.o" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/rust_esp32_std_demo-3ffb2665e5b3cce5.3wjcb6vix0rnmgqg.rcgu.o" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/rust_esp32_std_demo-3ffb2665e5b3cce5.3ze5scq96sfupnw8.rcgu.o" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/rust_esp32_std_demo-3ffb2665e5b3cce5.4cgnub8dklrqm15w.rcgu.o" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/rust_esp32_std_demo-3ffb2665e5b3cce5.4d8g9askh2a4lv3q.rcgu.o" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/rust_esp32_std_demo-3ffb2665e5b3cce5.4eg9cn7xsp35kd7.rcgu.o" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/rust_esp32_std_demo-3ffb2665e5b3cce5.4fx3n3jlwph6my0a.rcgu.o" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/rust_esp32_std_demo-3ffb2665e5b3cce5.4fydkrzen7lljvxm.rcgu.o" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/rust_esp32_std_demo-3ffb2665e5b3cce5.4httt2x9g2e8d9gf.rcgu.o" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/rust_esp32_std_demo-3ffb2665e5b3cce5.4jrle0b8u8uk9kyw.rcgu.o" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/rust_esp32_std_demo-3ffb2665e5b3cce5.4kotpi782xkj1fi3.rcgu.o" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/rust_esp32_std_demo-3ffb2665e5b3cce5.4mpguesbrc19sy0l.rcgu.o" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/rust_esp32_std_demo-3ffb2665e5b3cce5.4osqz3gxc66sz3vh.rcgu.o" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/rust_esp32_std_demo-3ffb2665e5b3cce5.4trm4mg256jfubm6.rcgu.o" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/rust_esp32_std_demo-3ffb2665e5b3cce5.55oivwcs1ocif15g.rcgu.o" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/rust_esp32_std_demo-3ffb2665e5b3cce5.5c6kdi5tqd0xm4k0.rcgu.o" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/rust_esp32_std_demo-3ffb2665e5b3cce5.5cfbmykbkfxpy6i0.rcgu.o" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/rust_esp32_std_demo-3ffb2665e5b3cce5.9jbx8a8pps2avph.rcgu.o" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/rust_esp32_std_demo-3ffb2665e5b3cce5.hy5warvoxwudqix.rcgu.o" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/rust_esp32_std_demo-3ffb2665e5b3cce5.i8vibpv0jwxa519.rcgu.o" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/rust_esp32_std_demo-3ffb2665e5b3cce5.u7stq80i1yhk8q8.rcgu.o" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/rust_esp32_std_demo-3ffb2665e5b3cce5.1y4h1p3yhsfi1qqh.rcgu.o" "-Wl,--as-needed" "-L" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps" "-L" "/opt/rust-projects/rust-esp32-std-demo/target/debug/deps" "-L" "/root/.rustup/toolchains/esp/lib/rustlib/xtensa-esp32s2-espidf/lib" "-Wl,-Bstatic" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libst7789-19f2bfd7723c973f.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libheapless-4dc57c360c0082a0.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libstable_deref_trait-7e55de1c60254032.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libhash32-8a7a7c1275e7625c.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libssd1306-8ed83883a9f71d52.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libdisplay_interface_i2c-ab7b5c395cc8072f.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libili9341-00927b2092c2c029.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libembedded_graphics-8b0b997827a870e8.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libbyteorder-0f3b1eb6be6dc405.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libfloat_cmp-bd674329cf6c4a90.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libnum_traits-65f9ff03cf0ede60.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libmicromath-a3ce339df72f17df.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libembedded_graphics_core-91d906bc7d7fa5ab.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libaz-57ef482c00efda35.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libdisplay_interface_spi-e96ea413f0398628.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libbyte_slice_cast-4d4c2f684b9987b8.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libdisplay_interface-a2e0cfcaeaf12404.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libesp_idf_svc-262f4bda37a7c2e1.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libcstr_core-6dd21fe8eaa429bb.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libcty-187ffa2b8eb7d5e6.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libesp_idf_hal-e69922f52c016881.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libembedded_hal-da6d4b7b76c800e2.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libvoid-829f2d379ff71c80.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libnb-a6d8753c228cd2a6.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libnb-06acbe8aee041078.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libesp_idf_sys-83b3b87636f0df38.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libmutex_trait-0fd51d874c27cfd3.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libembedded_svc-8c24c7ac7408a127.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libserde_json-c693c90d8dfee509.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libryu-0aba47c1efc39bf0.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libitoa-9fc1a1b1faf80d33.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libstrum-41450b5ae0755c40.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libnum_enum-4b28da04680d2b99.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libenumset-083e8ee8e2f4efb3.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libserde-3c276038122950a5.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libsmol-878b4f89ad736bce.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libasync_net-05fe36843b9dac56.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libasync_fs-c838deba6463f98d.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libasync_lock-5ada5f143738ec75.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libblocking-7d6d360650315401.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libatomic_waker-909ed43a077e68ff.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libasync_channel-de07e24d9975160d.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libevent_listener-fb859d89027919c2.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libasync_io-2bf29b38d11238a6.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libpolling-35e5e5e94b9a3f88.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libsocket2-686476b4d19f25e0.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/liblibc-9056efc8ac887c55.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libasync_executor-6695ec80ede54281.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libonce_cell-de204cfe6bdddf6b.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libslab-71fd876156f91405.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libfutures_lite-072d354b560aaa0e.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libmemchr-a73795da96192326.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libfastrand-61e300e531939cc0.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libfutures_io-d180a50745269145.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libfutures_core-a81ed9893ca4de27.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libwaker_fn-c8d42e3b3306118b.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libparking-84f6ef99a2078129.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libpin_project_lite-93d324264db6f9f7.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libconcurrent_queue-797c3122937269c0.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libcache_padded-b6156bb176b6508f.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libasync_task-04423050659a0717.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/liburl-4dc4806dfa92adf8.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libidna-f14271f65135c2f7.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libunicode_normalization-3a94ec09b6519dc6.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libtinyvec-f8265c95cb2467d5.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libtinyvec_macros-25f4511bef392def.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libunicode_bidi-ebb28424190def05.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libform_urlencoded-f52b956edcee0f79.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libpercent_encoding-901adbae4c4b3b81.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libmatches-ff37b7218631919a.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/liblog-08943c7617f84886.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libcfg_if-033864d935647988.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libanyhow-6bf072f779a8b452.rlib" "-Wl,--start-group" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libstd-e155899e7cf0dd77.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libpanic_abort-9e5fe6acedc73891.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libstd_detect-ac2877f1a49e5c9b.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/librustc_demangle-a02af5151016ca5e.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libhashbrown-cf85ff09a1c585c0.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/librustc_std_workspace_alloc-ff3b918961cef5a0.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libunwind-5500b368919ca588.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libcfg_if-15d3abe531e5ee4e.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/liblibc-b07e09bc7cc4d454.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/liballoc-ef11d009e2bd2f0f.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/librustc_std_workspace_core-a3208f6ed203d7ea.rlib" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libcore-c99b163c62f527ef.rlib" "-Wl,--end-group" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/libcompiler_builtins-87bc61c8f19de152.rlib" "-Wl,-Bdynamic" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-L" "/root/.rustup/toolchains/esp/lib/rustlib/xtensa-esp32s2-espidf/lib" "-o" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/rust_esp32_std_demo-3ffb2665e5b3cce5" "-Wl,--gc-sections" "-no-pie" "-nodefaultlibs" "--ldproxy-linker" "/opt/rust-projects/rust-esp32-std-demo/.embuild/platformio/packages/toolchain-xtensa-esp32s2/bin/xtensa-esp32s2-elf-gcc" "--ldproxy-dedup-libs" "-L/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf" "-L/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug" "-L/opt/rust-projects/rust-esp32-std-demo/.embuild/platformio/packages/framework-espidf/components/esp_wifi/lib/esp32s2" "-L/opt/rust-projects/rust-esp32-std-demo/.embuild/platformio/packages/framework-espidf/components/esp_rom/esp32s2/ld" "-L/opt/rust-projects/rust-esp32-std-demo/.embuild/platformio/packages/framework-espidf/components/xtensa/esp32s2" "-L/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/esp32s2" "-L/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/esp32s2/ld" "-L/opt/rust-projects/rust-esp32-std-demo/.embuild/platformio/packages/framework-espidf/components/esp32s2/ld" "-Wl,--start-group" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/esp_pm/libesp_pm.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/asio/libasio.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/cbor/libcbor.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/unity/libunity.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/cmock/libcmock.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/coap/libcoap.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/console/libconsole.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/esp_adc_cal/libesp_adc_cal.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/esp_hid/libesp_hid.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/protobuf-c/libprotobuf-c.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/protocomm/libprotocomm.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/mdns/libmdns.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/esp_local_ctrl/libesp_local_ctrl.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/esp_websocket_client/libesp_websocket_client.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/expat/libexpat.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/wear_levelling/libwear_levelling.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/fatfs/libfatfs.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/freemodbus/libfreemodbus.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/jsmn/libjsmn.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/json/libjson.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/libsodium/liblibsodium.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/mqtt/libmqtt.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/openssl/libopenssl.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/perfmon/libperfmon.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/spiffs/libspiffs.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/touch_element/libtouch_element.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/wifi_provisioning/libwifi_provisioning.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/app_trace/libapp_trace.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/app_update/libapp_update.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/bootloader_support/libbootloader_support.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/cxx/libcxx.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/driver/libdriver.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/efuse/libefuse.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/esp-tls/libesp-tls.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/esp32s2/libesp32s2.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/esp_common/libesp_common.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/esp_eth/libesp_eth.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/esp_event/libesp_event.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/esp_gdbstub/libesp_gdbstub.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/esp_http_client/libesp_http_client.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/esp_http_server/libesp_http_server.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/esp_https_ota/libesp_https_ota.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/esp_hw_support/libesp_hw_support.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/esp_ipc/libesp_ipc.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/esp_netif/libesp_netif.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/esp_ringbuf/libesp_ringbuf.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/esp_rom/libesp_rom.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/esp_serial_slave_link/libesp_serial_slave_link.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/esp_system/libesp_system.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/esp_timer/libesp_timer.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/esp_wifi/libesp_wifi.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/espcoredump/libespcoredump.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/freertos/libfreertos.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/hal/libhal.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/heap/libheap.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/log/liblog.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/lwip/liblwip.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/mbedtls/libmbedtls.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/newlib/libnewlib.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/nghttp/libnghttp.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/nvs_flash/libnvs_flash.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/pthread/libpthread.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/sdmmc/libsdmmc.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/soc/libsoc.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/spi_flash/libspi_flash.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/tcp_transport/libtcp_transport.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/tcpip_adapter/libtcpip_adapter.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/ulp/libulp.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/vfs/libvfs.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/wpa_supplicant/libwpa_supplicant.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/xtensa/libxtensa.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/mbedtls/mbedtls/library/libmbedcrypto.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/mbedtls/mbedtls/library/libmbedtls.a" "/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf/mbedtls/mbedtls/library/libmbedx509.a" "-lcoexist" "-lcore" "-lespnow" "-lmesh" "-lnet80211" "-lpp" "-lsmartconfig" "-lwapi" "-lphy" "-lxt_hal" "-lc" "-lm" "-lstdc++" "-lgcc" "-Wl,--end-group" "-T" "esp32s2_out.ld" "-u" "esp_app_desc" "-u" "pthread_include_pthread_impl" "-u" "pthread_include_pthread_cond_impl" "-u" "pthread_include_pthread_local_storage_impl" "-u" "ld_include_panic_highint_hdl" "-u" "start_app" "-T" "esp32s2.rom.ld" "-T" "esp32s2.rom.api.ld" "-T" "esp32s2.rom.libgcc.ld" "-T" "esp32s2.rom.newlib-funcs.ld" "-T" "esp32s2.rom.newlib-data.ld" "-T" "esp32s2.rom.spiflash.ld" "-u" "vfs_include_syscalls_impl" "-T" "esp32s2.project.ld" "-T" "esp32s2.peripherals.ld" "-u" "call_user_start_cpu0" "-u" "app_main" "-u" "newlib_include_heap_impl" "-u" "newlib_include_syscalls_impl" "-u" "newlib_include_pthread_impl" "-u" "__cxa_guard_dummy" "-u" "__cxx_fatal_exception" "-Wl,--Map=/opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/build/esp-idf-sys-de51e52c574b3055/out/esp-idf/.pio/build/debug/esp-idf.map" "-Wl,--cref" "-Wl,--gc-sections" "-Wl,--undefined=uxTopUsedPriority" "-Wl,--wrap=_Unwind_Backtrace" "-Wl,--wrap=_Unwind_DeleteException" "-Wl,--wrap=_Unwind_FindEnclosingFunction" "-Wl,--wrap=_Unwind_Find_FDE" "-Wl,--wrap=_Unwind_ForcedUnwind" "-Wl,--wrap=_Unwind_GetCFA" "-Wl,--wrap=_Unwind_GetDataRelBase" "-Wl,--wrap=_Unwind_GetGR" "-Wl,--wrap=_Unwind_GetIP" "-Wl,--wrap=_Unwind_GetIPInfo" "-Wl,--wrap=_Unwind_GetLanguageSpecificData" "-Wl,--wrap=_Unwind_GetRegionStart" "-Wl,--wrap=_Unwind_GetTextRelBase" "-Wl,--wrap=_Unwind_RaiseException" "-Wl,--wrap=_Unwind_Resume" "-Wl,--wrap=_Unwind_Resume_or_Rethrow" "-Wl,--wrap=_Unwind_SetEnableExceptionFdeSorting" "-Wl,--wrap=_Unwind_SetGR" "-Wl,--wrap=_Unwind_SetIP" "-Wl,--wrap=__cxa_call_unexpected" "-Wl,--wrap=__deregister_frame_info" "-Wl,--wrap=__deregister_frame_info_bases" "-Wl,--wrap=__gxx_personality_v0" "-Wl,--wrap=__register_frame" "-Wl,--wrap=__register_frame_info" "-Wl,--wrap=__register_frame_info_bases" "-Wl,--wrap=__register_frame_info_table" "-Wl,--wrap=__register_frame_info_table_bases" "-Wl,--wrap=__register_frame_table" "-Wl,--wrap=longjmp" "-Wl,--wrap=mbedtls_mpi_exp_mod" "-fno-lto" "-fno-rtti" "-mlongcalls" "-Og" "-g2" "-ggdb2"
  = note: Running ldproxy
          Error: Linker /opt/rust-projects/rust-esp32-std-demo/.embuild/platformio/packages/toolchain-xtensa-esp32s2/bin/xtensa-esp32s2-elf-gcc failed: exit status: 1
          STDERR OUTPUT:
          /opt/rust-projects/rust-esp32-std-demo/.embuild/platformio/packages/toolchain-xtensa-esp32s2/bin/../lib/gcc/xtensa-esp32s2-elf/8.4.0/../../../../xtensa-esp32s2-elf/bin/ld: /opt/rust-projects/rust-esp32-std-demo/target/xtensa-esp32s2-espidf/debug/deps/rust_esp32_std_demo-3ffb2665e5b3cce5.23acug9zg82x7bl5.rcgu.o:(.literal._ZN19rust_esp32_std_demo4main17hfac8520aa38419c0E+0x2c): undefined reference to `__sync_lock_test_and_set_4'
          collect2: error: ld returned 1 exit status
          
          
  = help: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
  = note: use the `-l` flag to specify native libraries to link
  = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#cargorustc-link-libkindname)

error: could not compile `rust-esp32-std-demo` due to previous error

and, in case this is helpful:

for what it's worth, i'm getting the same error when using cargo build on the espressif/idf-rust-examples docker image also (which, again, is using Ubuntu 20.04 as a base). maybe some library is missing in the minimal Ubuntu docker base?

thanks!

@ivmarkov
Copy link
Owner

As strange as it sounds, it is a dupe of #45, which I'm about to fix soon (certain patches that have to be applied to ESP-IDF 3.4.1 are actually not applied; one of these is support for S2 atomics that brings this function that you see the linker complaining about).

@ryanc-me
Copy link
Author

thanks Ivan! I did see your work & PRs over at ESP-IDF.

for what it's worth, the esp-idf-template does work, if you choose to install ESP-IDF master branch. I guess your fixes are included in master. I couldn't get rust-esp32-std-demo working though, even if I uncommented ESP_IDF_VERSION = { value = "master" } in the Cargo config.

isw there another way I can force embuild to install ESP-IDF from master?

@ivmarkov
Copy link
Owner

thanks Ivan! I did see your work & PRs over at ESP-IDF.

for what it's worth, the esp-idf-template does work, if you choose to install ESP-IDF master branch.

But even then you have to build with cargo build --features native. See below.

I guess your fixes are included in master.

No. The fixes are related to how you build the thing. If you use the default pio builder (as in cargo build --features pio or cargo build), then you are affected because the PlatformIO builder is used, and that one cannot apply the patches which are necessary for V4.3.1 (the only branch supported by PlatformIO).

I couldn't get rust-esp32-std-demo working though, even if I uncommented ESP_IDF_VERSION = { value = "master" } in the Cargo config.

Read this. ESP_IDF_VERSION is only honored by the non-default native builder (cargo build --features native).

isw there another way I can force embuild to install ESP-IDF from master?

See above. Branches other than v4.3.1 are only supported by the native builder.

@ryanc-me
Copy link
Author

Right, that makes sense! I've done a bit more reading and am more up to speed now. Sorry to bother you with simple questions.

For what it's worth though, esp-idf-template was working without the --features native flag. Maybe it was an envvar or cached crate. But anyway, this project is compiling nicely using the native builder and ESP-IDF master branch. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants