Closed yashwanthsinghm closed 5 months ago
Same error message using fresh created project template and dev-container from 1h ago...
I just tried reproducing the issue, and I was able to build a template project with the exact same prompts.
@yashwanthsinghm are you sourcing the export file . $HOME/export-esp.sh
?
@Tederean trying with devcontainers, will update once I tested it
@Tederean I was also able to build the project inside the provided devcontainer.
cargo generate esp-rs/esp-idf-template cargo --name issue165 -d mcu=esp32 -d espidfver=v5.1 -d advanced=true -d std=true -d devcontainer=true -d wokwi=false -d ci=false
cd issue165
code .
container$ cargo build
Yes, I have sourced export file @SergioGasquez, I have tired both on windows and Linux machine Iām getting same build issue. How to solve this ??
Yes, I have sourced export file @SergioGasquez, I have tired both on windows and Linux machine Iām getting same build issue. How to solve this ??
A few ideas that you can try:
cargo clean && rm -rf .embuild && cargo b
@SergioGasquez
I executed ./scripts/build.sh
as suggested by readme file (https://github.com/esp-rs/esp-idf-template/blob/master/cargo/docs/README.md) instead of cargo build
.
Using ./scripts/build.sh
in first place caused the error i encountered. When i use cargo build
in first place it works after 45min compile time š²
Now i executed ./scripts/build.sh debug
after cargo build
and this works just fine.
(Are this compile times normal? 45mins in release and 7min in debug...?)
(Are this compile times normal? 45mins in release and 7min in debug...?)
45min seems a bit excessive, but most of this is probably the clone of the esp-idf repo. If you run the initial build with cargo build -vv
(very verbose) it will show all build script output (including esp-idf-sys's) which displays the progress of the clone and build of the esp-idf. See the build options for configurations of where the esp-idf + tools are stored, how it is built, etc.
Hi @SergioGasquez i tried both the options, even i followed the step to run on dev container, it didn't work for me here are the logs.
esp@420b80357d12:~/issue165$ cargo build
Blocking waiting for file lock on build directory
Compiling libc v0.2.147
.......
error: linking with `cc` failed: exit status: 1
|
= note: LC_ALL="C" PATH="/home/esp/.rustup/toolchains/esp/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/esp/.rustup/toolchains/esp/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin:/vscode/vscode-server/bin/linux-x64/e7e037083ff4455cf320e344325dacb480062c3c/bin/remote-cli:/home/esp/.rustup/toolchains/esp/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/esp/.cargo/bin" VSLANG="1033" "cc" "-m64" "/tmp/rustcj87mBW/symbols.o" "/home/esp/issue165/target/debug/build/esp-idf-sys-6eb62c15753fd0fd/build_script_build-6eb62c15753fd0fd.build_script_build.c06dcb89121d25e-cgu.00.rcgu.o" "/home/esp/issue165/target/debug/build/esp-idf-sys-6eb62c15753fd0fd/build_script_build-6eb62c15753fd0fd.build_script_build.c06dcb89121d25e-cgu.01.rcgu.o" "/home/esp/issue165/target/debug/build/esp-idf-sys-6eb62c15753fd0fd/build_script_build-6eb62c15753fd0fd.build_script_build.c06dcb89121d25e-cgu.02.rcgu.o" "/home/esp/issue165/target/debug/build/esp-idf-sys-6eb62c15753fd0fd/build_script_build-6eb62c15753fd0fd.build_script_build.c06dcb89121d25e-cgu.03.rcgu.o" "/home/esp/issue165/target/debug/build/esp-idf-sys-6eb62c15753fd0fd/build_script_build-6eb62c15753fd0fd.build_script_build.c06dcb89121d25e-cgu.04.rcgu.o" "/home/esp/issue165/target/debug/build/esp-idf-sys-6eb62c15753fd0fd/build_script_build-6eb62c15753fd0fd.build_script_build.c06dcb89121d25e-cgu.05.rcgu.o" "/home/esp/issue165/target/debug/build/esp-idf-sys-6eb62c15753fd0fd/build_script_build-6eb62c15753fd0fd.build_script_build.c06dcb89121d25e-cgu.06.rcgu.o" "/home/esp/issue165/target/debug/build/esp-idf-sys-6eb62c15753fd0fd/build_script_build-6eb62c15753fd0fd.build_script_build.c06dcb89121d25e-cgu.07.rcgu.o" "/home/esp/issue165/target/debug/build/esp-idf-sys-6eb62c15753fd0fd/build_script_build-6eb62c15753fd0fd.build_script_build.c06dcb89121d25e-cgu.08.rcgu.o" "/home/esp/issue165/target/debug/build/esp-idf-sys-6eb62c15753fd0fd/build_script_build-6eb62c15753fd0fd.build_script_build.c06dcb89121d25e-cgu.09.rcgu.o" "/home/esp/issue165/target/debug/build/esp-idf-sys-6eb62c15753fd0fd/build_script_build-6eb62c15753fd0fd.build_script_build.c06dcb89121d25e-cgu.10.rcgu.o" "/home/esp/issue165/target/debug/build/esp-idf-sys-6eb62c15753fd0fd/build_script_build-6eb62c15753fd0fd.build_script_build.c06dcb89121d25e-cgu.11.rcgu.o" "/home/esp/issue165/target/debug/build/esp-idf-sys-6eb62c15753fd0fd/build_script_build-6eb62c15753fd0fd.build_script_build.c06dcb89121d25e-cgu.12.rcgu.o" "/home/esp/issue165/target/debug/build/esp-idf-sys-6eb62c15753fd0fd/build_script_build-6eb62c15753fd0fd.build_script_build.c06dcb89121d25e-cgu.13.rcgu.o" "/home/esp/issue165/target/debug/build/esp-idf-sys-6eb62c15753fd0fd/build_script_build-6eb62c15753fd0fd.build_script_build.c06dcb89121d25e-cgu.14.rcgu.o" "/home/esp/issue165/target/debug/build/esp-idf-sys-6eb62c15753fd0fd/build_script_build-6eb62c15753fd0fd.build_script_build.c06dcb89121d25e-cgu.15.rcgu.o" "/home/esp/issue165/target/debug/build/esp-idf-sys-6eb62c15753fd0fd/build_script_build-6eb62c15753fd0fd.4t0wnlmclvjjivtv.rcgu.o" "-Wl,--as-needed" "-L" "/home/esp/issue165/target/debug/deps" "-L" "/home/esp/.rustup/toolchains/esp/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/home/esp/issue165/target/debug/deps/libenvy-53e8e3a18d82f2cd.rlib" "/home/esp/issue165/target/debug/deps/libcargo_metadata-ba3e4a2c4f2ea60e.rlib" "/home/esp/issue165/target/debug/deps/libcargo_platform-eb18bef61b69201d.rlib" "/home/esp/issue165/target/debug/deps/libsemver-52a2d3dc37fd4489.rlib" "/home/esp/issue165/target/debug/deps/libcamino-08943a4f334c65eb.rlib" "/home/esp/issue165/target/debug/deps/libembuild-f2ba18c73796f86e.rlib" "/home/esp/issue165/target/debug/deps/libfiletime-8a7ca627eef8c21d.rlib" "/home/esp/issue165/target/debug/deps/libglobwalk-3c265d2bf1fa52a9.rlib" "/home/esp/issue165/target/debug/deps/libignore-acb6444778b03b2e.rlib" "/home/esp/issue165/target/debug/deps/libwalkdir-e392bc4dd33db064.rlib" "/home/esp/issue165/target/debug/deps/libsame_file-4d02d4760fb117bf.rlib" "/home/esp/issue165/target/debug/deps/libthread_local-d0a9f0251a3e062b.rlib" "/home/esp/issue165/target/debug/deps/libonce_cell-7302fb7e29d0287e.rlib" "/home/esp/issue165/target/debug/deps/libglobset-e3809edd914be9fa.rlib" "/home/esp/issue165/target/debug/deps/libfnv-d76296c6599a31fb.rlib" "/home/esp/issue165/target/debug/deps/libbstr-e4de0c79cf2678d1.rlib" "/home/esp/issue165/target/debug/deps/libremove_dir_all-e92b4d1d550119a7.rlib" "/home/esp/issue165/target/debug/deps/libfs_at-a58a7a9ee4260e11.rlib" "/home/esp/issue165/target/debug/deps/libnix-b6a90b8a6184e5a5.rlib" "/home/esp/issue165/target/debug/deps/libcvt-bef9bdbe9cddf487.rlib" "/home/esp/issue165/target/debug/deps/libnormpath-449490608d639a30.rlib" "/home/esp/issue165/target/debug/deps/libtempfile-b965a3e9bd42b7b8.rlib" "/home/esp/issue165/target/debug/deps/libfastrand-b76ce8c10b4a479b.rlib" "/home/esp/issue165/target/debug/deps/libthiserror-e06eee6f30e5d754.rlib" "/home/esp/issue165/target/debug/deps/libcmake-c5e56400805f4de0.rlib" "/home/esp/issue165/target/debug/deps/libcc-3af3a451b3e6eaab.rlib" "/home/esp/issue165/target/debug/deps/libserde_json-07d9e9e3d46a6042.rlib" "/home/esp/issue165/target/debug/deps/libryu-f8da15ac3e2ac3f9.rlib" "/home/esp/issue165/target/debug/deps/libitoa-61f687365e15b301.rlib" "/home/esp/issue165/target/debug/deps/libserde-bbdf70fa968ff50b.rlib" "/home/esp/issue165/target/debug/deps/libstrum-77e49829f711938d.rlib" "/home/esp/issue165/target/debug/deps/libbindgen-cd50c8d601f1b479.rlib" "/home/esp/issue165/target/debug/deps/libwhich-337d9b4ac091893c.rlib" "/home/esp/issue165/target/debug/deps/libhome-8e42d57892ccda2a.rlib" "/home/esp/issue165/target/debug/deps/libeither-a8e170ceb4c54d63.rlib" "/home/esp/issue165/target/debug/deps/librustix-76ff72a6213f5b1c.rlib" "/home/esp/issue165/target/debug/deps/libbitflags-7437cb3508469d45.rlib" "/home/esp/issue165/target/debug/deps/liblinux_raw_sys-89b48ba5ee810227.rlib" "/home/esp/issue165/target/debug/deps/libshlex-38c491047c11ee6d.rlib" "/home/esp/issue165/target/debug/deps/librustc_hash-a49ff783ea4f8448.rlib" "/home/esp/issue165/target/debug/deps/libregex-245068e3c5dc7abf.rlib" "/home/esp/issue165/target/debug/deps/libregex_automata-38109aa218909a02.rlib" "/home/esp/issue165/target/debug/deps/libaho_corasick-110b73df51291f5b.rlib" "/home/esp/issue165/target/debug/deps/libregex_syntax-bab8ba04a28b88f2.rlib" "/home/esp/issue165/target/debug/deps/liblazycell-39074806da931233.rlib" "/home/esp/issue165/target/debug/deps/libpeeking_take_while-f89536e5c31ae0ad.rlib" "/home/esp/issue165/target/debug/deps/libsyn-1fe4088f7a2e631c.rlib" "/home/esp/issue165/target/debug/deps/libcexpr-53e7fe3df5062f9a.rlib" "/home/esp/issue165/target/debug/deps/libnom-6d1ec6af6b3cc3af.rlib" "/home/esp/issue165/target/debug/deps/libmemchr-a9f5e2630beb9a0e.rlib" "/home/esp/issue165/target/debug/deps/libclang_sys-b77cead944d67cf4.rlib" "/home/esp/issue165/target/debug/deps/liblibloading-f6462691e4cb5ffc.rlib" "/home/esp/issue165/target/debug/deps/libcfg_if-d4664edabea63f35.rlib" "/home/esp/issue165/target/debug/deps/liblibc-255284f166dcd516.rlib" "/home/esp/issue165/target/debug/deps/libglob-3cff88ec4a7e6167.rlib" "/home/esp/issue165/target/debug/deps/liblog-9a3b409b1bbdebf2.rlib" "/home/esp/issue165/target/debug/deps/libquote-793c729a479d6504.rlib" "/home/esp/issue165/target/debug/deps/libproc_macro2-2d9ad0f93b9e54f8.rlib" "/home/esp/issue165/target/debug/deps/libunicode_ident-a612c8d4272d71c6.rlib" "/home/esp/.rustup/toolchains/esp/lib/rustlib/x86_64-unknown-linux-gnu/lib/libproc_macro-5d54f755c5544309.rlib" "/home/esp/issue165/target/debug/deps/liblazy_static-d0c2dc85fa90a848.rlib" "/home/esp/issue165/target/debug/deps/libbitflags-1d31dfe9f72fab4b.rlib" "/home/esp/issue165/target/debug/deps/libanyhow-4c2359ea5232b878.rlib" "/home/esp/.rustup/toolchains/esp/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-febc5b336d467395.rlib" "/home/esp/.rustup/toolchains/esp/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-0badd349abe2003b.rlib" "/home/esp/.rustup/toolchains/esp/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-de6e5a3af81231eb.rlib" "/home/esp/.rustup/toolchains/esp/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-27a835546000d3c6.rlib" "/home/esp/.rustup/toolchains/esp/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-c498154fa4cbe3a0.rlib" "/home/esp/.rustup/toolchains/esp/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-ff4f3a01ec7a4118.rlib" "/home/esp/.rustup/toolchains/esp/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-879e3268f51ca255.rlib" "/home/esp/.rustup/toolchains/esp/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-a550ff9281bafa3c.rlib" "/home/esp/.rustup/toolchains/esp/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-d139ef40881c643b.rlib" "/home/esp/.rustup/toolchains/esp/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-84a3783e3c4a091b.rlib" "/home/esp/.rustup/toolchains/esp/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-141b69909c31e27d.rlib" "/home/esp/.rustup/toolchains/esp/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-60d0b638a74dfb3d.rlib" "/home/esp/.rustup/toolchains/esp/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-bd2fc714eeb64040.rlib" "/home/esp/.rustup/toolchains/esp/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-1f0f1e9b5435a874.rlib" "/home/esp/.rustup/toolchains/esp/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-c9467bdc9d449bac.rlib" "/home/esp/.rustup/toolchains/esp/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-de1fb8d63ad7adcd.rlib" "/home/esp/.rustup/toolchains/esp/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-9e8545884a58292b.rlib" "/home/esp/.rustup/toolchains/esp/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-b7ade0bf130d2f13.rlib" "/home/esp/.rustup/toolchains/esp/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-aa5dc091f9845995.rlib" "-Wl,-Bdynamic" "-ldl" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/home/esp/.rustup/toolchains/esp/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/esp/issue165/target/debug/build/esp-idf-sys-6eb62c15753fd0fd/build_script_build-6eb62c15753fd0fd" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs"
= note: /usr/bin/ld: /home/esp/issue165/target/debug/deps/libmemchr-a9f5e2630beb9a0e.rlib(memchr-a9f5e2630beb9a0e.memchr.9271aa1efe413c51-cgu.2.rcgu.o): in function `memchr::arch::x86_64::memchr::memchr_raw::find_sse2':
/home/esp/.cargo/registry/src/index.crates.io-6f17d22bba15001f/memchr-2.6.4/src/arch/x86_64/memchr.rs:96: undefined reference to `memchr::arch::x86_64::sse2::memchr::One::new_unchecked'
/usr/bin/ld: /home/esp/.cargo/registry/src/index.crates.io-6f17d22bba15001f/memchr-2.6.4/src/arch/x86_64/memchr.rs:96: undefined reference to `memchr::arch::x86_64::sse2::memchr::One::find_raw'
/usr/bin/ld: /home/esp/issue165/target/debug/deps/libmemchr-a9f5e2630beb9a0e.rlib(memchr-a9f5e2630beb9a0e.memchr.9271aa1efe413c51-cgu.2.rcgu.o): in function `memchr::arch::x86_64::memchr::memchr_raw::detect':
/home/esp/.cargo/registry/src/index.crates.io-6f17d22bba15001f/memchr-2.6.4/src/arch/x86_64/memchr.rs:129: undefined reference to `memchr::arch::x86_64::sse2::memchr::One::is_available'
/usr/bin/ld: /home/esp/issue165/target/debug/deps/libmemchr-a9f5e2630beb9a0e.rlib(memchr-a9f5e2630beb9a0e.memchr.9271aa1efe413c51-cgu.2.rcgu.o): in function `memchr::arch::x86_64::memchr::memrchr_raw::find_sse2':
/home/esp/.cargo/registry/src/index.crates.io-6f17d22bba15001f/memchr-2.6.4/src/arch/x86_64/memchr.rs:96: undefined reference to `memchr::arch::x86_64::sse2::memchr::One::new_unchecked'
/usr/bin/ld: /home/esp/.cargo/registry/src/index.crates.io-6f17d22bba15001f/memchr-2.6.4/src/arch/x86_64/memchr.rs:96: undefined reference to `memchr::arch::x86_64::sse2::memchr::One::rfind_raw'
/usr/bin/ld: /home/esp/issue165/target/debug/deps/libmemchr-a9f5e2630beb9a0e.rlib(memchr-a9f5e2630beb9a0e.memchr.9271aa1efe413c51-cgu.2.rcgu.o): in function `memchr::arch::x86_64::memchr::memrchr_raw::detect':
/home/esp/.cargo/registry/src/index.crates.io-6f17d22bba15001f/memchr-2.6.4/src/arch/x86_64/memchr.rs:129: undefined reference to `memchr::arch::x86_64::sse2::memchr::One::is_available'
/usr/bin/ld: /home/esp/issue165/target/debug/deps/libmemchr-a9f5e2630beb9a0e.rlib(memchr-a9f5e2630beb9a0e.memchr.9271aa1efe413c51-cgu.2.rcgu.o): in function `memchr::arch::x86_64::memchr::memchr2_raw::find_sse2':
/home/esp/.cargo/registry/src/index.crates.io-6f17d22bba15001f/memchr-2.6.4/src/arch/x86_64/memchr.rs:96: undefined reference to `memchr::arch::x86_64::sse2::memchr::Two::new_unchecked'
/usr/bin/ld: /home/esp/.cargo/registry/src/index.crates.io-6f17d22bba15001f/memchr-2.6.4/src/arch/x86_64/memchr.rs:96: undefined reference to `memchr::arch::x86_64::sse2::memchr::Two::find_raw'
/usr/bin/ld: /home/esp/issue165/target/debug/deps/libmemchr-a9f5e2630beb9a0e.rlib(memchr-a9f5e2630beb9a0e.memchr.9271aa1efe413c51-cgu.2.rcgu.o): in function `memchr::arch::x86_64::memchr::memchr2_raw::detect':
/home/esp/.cargo/registry/src/index.crates.io-6f17d22bba15001f/memchr-2.6.4/src/arch/x86_64/memchr.rs:129: undefined reference to `memchr::arch::x86_64::sse2::memchr::Two::is_available'
/usr/bin/ld: /home/esp/issue165/target/debug/deps/libmemchr-a9f5e2630beb9a0e.rlib(memchr-a9f5e2630beb9a0e.memchr.9271aa1efe413c51-cgu.2.rcgu.o): in function `memchr::arch::x86_64::memchr::memchr3_raw::find_sse2':
/home/esp/.cargo/registry/src/index.crates.io-6f17d22bba15001f/memchr-2.6.4/src/arch/x86_64/memchr.rs:96: undefined reference to `memchr::arch::x86_64::sse2::memchr::Three::new_unchecked'
/usr/bin/ld: /home/esp/.cargo/registry/src/index.crates.io-6f17d22bba15001f/memchr-2.6.4/src/arch/x86_64/memchr.rs:96: undefined reference to `memchr::arch::x86_64::sse2::memchr::Three::find_raw'
/usr/bin/ld: /home/esp/issue165/target/debug/deps/libmemchr-a9f5e2630beb9a0e.rlib(memchr-a9f5e2630beb9a0e.memchr.9271aa1efe413c51-cgu.2.rcgu.o): in function `memchr::arch::x86_64::memchr::memchr3_raw::detect':
/home/esp/.cargo/registry/src/index.crates.io-6f17d22bba15001f/memchr-2.6.4/src/arch/x86_64/memchr.rs:129: undefined reference to `memchr::arch::x86_64::sse2::memchr::Three::is_available'
/usr/bin/ld: /home/esp/issue165/target/debug/build/esp-idf-sys-6eb62c15753fd0fd/build_script_build-6eb62c15753fd0fd: hidden symbol `_ZN6memchr4arch6x86_644sse26memchr3One12is_available17h5f91796113a65e52E' isn't defined
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
= note: 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 `esp-idf-sys` (build script) due to previous error
rustup show
esp@420b80357d12:~/issue165$ rustup show
Default host: x86_64-unknown-linux-gnu
rustup home: /home/esp/.rustup
esp (overridden by '/home/esp/issue165/rust-toolchain.toml')
rustc 1.73.0-nightly (2fba83302 2023-10-18) (1.73.0.1)
Hi @SergioGasquez i tried both the options, even i followed the step to run on dev container, it didn't work for me here are the logs.
This is very strange, if you generated the example with my same command (using the same arguments), it should work, at least using devcontainers, as the environment should be exactly the same. Only thing that I can think of, is that you publish into a repo the generated project and I try to build it.
I ran into the same issue on archlinux.
Then I tried the dev container method @SergioGasquez provided above, cargo build
succeeded.
I still wonder what's causing the issue though.
make sure that on your machine the equivalent packages of this debian packages are installed " git wget flex bison gperf python3 python3-pip python3-venv cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0 clang libclang-dev"
I also tried sourcing ~/export-esp.sh
, it didn't work before.
Somehow it works now. This is weird. Perhaps because I updated some packages?
make sure that on your machine the equivalent packages of this debian packages are installed " git wget flex bison gperf python3 python3-pip python3-venv cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0 clang libclang-dev"
Do we need all of these?
ccache
- why?
The clang
stuff might not be useful at all for xtensa
chips
its the shotgun approach yeah, but that deps are the one official mentioned in the esp-idf install guide minus the clang dep
its the shotgun approach yeah, but that deps are the one official mentioned in the esp-idf install guide minus the clang dep
Shall we then mention these in the "Prerequisites" section?
Yeah it might be a good idea - we could directly link them to https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/linux-macos-setup.html#for-linux-users There is also some for macOS mentiond under it and for M1 users specifically. And personally i would add the clang dep's as i needed it on a freshly debian install last week. So updating it in the template to mentiond it there and maybe in the book on this page?
I also tried sourcing
~/export-esp.sh
, it didn't work before. Somehow it works now. This is weird. Perhaps because I updated some packages?
Is it solved? same issue on my archlinux too
I also tried sourcing
~/export-esp.sh
, it didn't work before. Somehow it works now. This is weird. Perhaps because I updated some packages?Is it solved? same issue on my archlinux too
well what exactly did you do to source the file?
Yes, I have sourced export file @SergioGasquez, I have tired both on windows and Linux machine Iām getting same build issue. How to solve this ??
A few ideas that you can try:
cargo clean && rm -rf .embuild && cargo b
- If you have docker, I will suggest trying the devcontainer approach with the instructions in build issue Ā #165 (comment)
For some reason, "cargo clean && rm -rf .embuild && cargo b" solved my issue. Now my project compile.
To generate the issue : Note : All the prerequisites were installed before setting up esp-isf -template.
Building the project : cargo build