Closed freew01f closed 4 months ago
Other colleagues have encountered this issue too, its a current third party limitation, see the issues:
I would recommend using the binaries from the release: https://github.com/esp-rs/espflash/releases:
curl -L "https://github.com/esp-rs/espflash/releases/latest/download/cargo-espflash-aarch64-apple-darwin.zip" -o "${HOME}/.cargo/bin/cargo-espflash.zip"
unzip "${HOME}/.cargo/bin/cargo-espflash.zip" -d "${HOME}/.cargo/bin/"
rm "${HOME}/.cargo/bin/cargo-espflash.zip"
chmod u+x "${HOME}/.cargo/bin/cargo-espflash"
I tried on my own project that updating to make 4.4.1 fixed this error. Could you give it a shot please?
@NobodyXu yes, your solution definitely fixes the error! Thank you for your response though! ❤️
A quick guide (at least worked for me. Requires updating the PATH which may be not ideal, but at least fixes the issue):
brew install make
PATH="/opt/homebrew/opt/make/libexec/gnubin:$PATH"
Second command depends on your particular file location on the system, usually brew
will give the path where it installed the new make
.
That's good to hear!
I also submit a PR in cc to fix the issue for older make (<4.3)
cc 1.0.87 has released which should fix this
@NobodyXu yes, your solution definitely fixes the error! Thank you for your response though! ❤️
A quick guide (at least worked for me. Requires updating the PATH which may be not ideal, but at least fixes the issue):
brew install make PATH="/opt/homebrew/opt/make/libexec/gnubin:$PATH"
Second command depends on your particular file location on the system, usually
brew
will give the path where it installed the newmake
.
It works thanks very much
cc 1.0.88 has released, which should fix this even if you are using make < 4.3
Seems like the issue still persist with make < 4.3. I made #602 which updates the cc
version to 1.0.88, but the issue still persists when doing cargo install cargo-espflash --git https://github.com/SergioGasquez/espflash --branch fix/mac-install --force
Seems like the issue still persist with make < 4.3. I made #602 which updates the
cc
version to 1.0.88, but the issue still persists when doingcargo install cargo-espflash --git https://github.com/SergioGasquez/espflash --branch fix/mac-install --force
cc1.088 have the other problem
cc1.088 have the other problem
Can you please elaborate?
cc1.088 have the other problem
Can you please elaborate?
https://github.com/esp-rs/esp-idf-sys/issues/287
see here
1.0.84 -87 can not build
@freew01f That's a different error.
It's due to --target
flag we now passed to clang
, probably same as rust-lang/cc-rs#903
I run cargo install cargo-espflash got error my env is below
how ca i fix it ? thanks