-
Notifications
You must be signed in to change notification settings - Fork 107
Unrecognized command line option '--target=xtensa-esp32-espidf' #129
Comments
As a workaround, unset |
Thanks for your quick reply but 'unset CC' did not solve the issue: Compiling async-net v1.7.0 Caused by:
|
I'm relatively sure that's the reason. Maybe it is not (only) the CC env variable but some additional ones. Coincidentally, we had another user complaining about this just yesterday and for him it worked by unsetting CC (and maybe a few others). Can you go to the ESP-RS Matrix chat and search for the relevant messages? The background of this issue, is that |
Yeah, a proper fix might be that we are ourselves unsetting these vars during the |
Here's the relevant message from the forum: |
Ping? |
Thanks for your replies. After unsetting both CXX and CC it now proceeds but there is another error:
After running 'idf.py fullclean' the same error message. |
Hi ivmarkov,
Thanks for your replies and sorry for not responding earlier. It is still not working and I added a comment.
Regards,,
Maarten van Emmerik
… On 20 Nov 2022, at 12:47, Ivan Markov ***@***.***> wrote:
Closed #129 <#129> as completed.
—
Reply to this email directly, view it on GitHub <#129 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AXWKYAKD6MXZS7RETCBVRHDWJIFUVANCNFSM6AAAAAASEUPJPU>.
You are receiving this because you authored the thread.
|
Ivan,
You can ignore my comment. I deleted the ~/.rustup and ~/.espressif directories and installed everything from scratch:
```
curl -LO https://github.com/esp-rs/rust-build/releases/download/v1.65.0.1/install-rust-toolchain.sh
install-rust-toolchain.sh -s master
. ./export-esp.sh
cargo install ldproxy
rustup default esp
unset CC
unset CXX
git clone https://github.com/ivmarkov/rust-esp32-std-demo
cd rust-esp32-std-demo
cargo build
```
The error described in this issue does not appear anymore but now
```
error[E0308]: mismatched types
--> /Users/maarten/.cargo/registry/src/github.com-1ecc6299db9ec823/esp-idf-sys-0.31.11/src/lib.rs:36:62
|
36 | const ESP_IDF_TIME64_CHECK: ::std::os::espidf::raw::time_t = 0 as crate::time_t;
| ^^^^^^^^^^^^^^^^^^ expected `i32`, found `i64`
error[E0308]: mismatched types
--> /Users/maarten/.cargo/registry/src/github.com-1ecc6299db9ec823/esp-idf-sys-0.31.11/src/lib.rs:38:51
|
38 | const ESP_IDF_TIME64_CHECK_LIBC: ::libc::time_t = 0 as crate::time_t;
| ^^^^^^^^^^^^^^^^^^ expected `i32`, found `i64`
For more information about this error, try `rustc --explain E0308`.
```
I created a new issue for this error:
Axxem B.V.
Maarten van Emmerik
Mgr. De Haasstraat 9
5521 TA Eersel
***@***.***
… On 20 Nov 2022, at 14:53, Maarten van Emmerik ***@***.***> wrote:
Hi ivmarkov,
Thanks for your replies and sorry for not responding earlier. It is still not working and I added a comment.
Regards,,
Maarten van Emmerik
> On 20 Nov 2022, at 12:47, Ivan Markov ***@***.*** ***@***.***>> wrote:
>
>
> Closed #129 <#129> as completed.
>
> —
> Reply to this email directly, view it on GitHub <#129 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AXWKYAKD6MXZS7RETCBVRHDWJIFUVANCNFSM6AAAAAASEUPJPU>.
> You are receiving this because you authored the thread.
>
|
When I run 'cargo build' on MacBook pro with Big Sur 11.7 I get the following error:
xtensa-esp32-elf-gcc: error: unrecognized command line option '--target=xtensa-esp32-espidf'
ninja: build stopped: subcommand failed.
The text was updated successfully, but these errors were encountered: