Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo install espup doesn't work on M1 #409

Closed
chuckberrypi opened this issue Jan 3, 2024 · 1 comment
Closed

cargo install espup doesn't work on M1 #409

chuckberrypi opened this issue Jan 3, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@chuckberrypi
Copy link

Bug description

Running cargo install espup resulted in espup error: linking with 'cc' failed: exit status: 1, followed by a long dump of gobbledygook, ending with "-llzma" "-framework" "SystemConfiguration" "-framework" "Security" "-framework" "CoreFoundation" "-liconv" "-lSystem" "-lc" "-lm" "-L" "~/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "-o" "/var/folders/jc/vqhjf43j7gx42h9lj2ngxmzw0000gn/T/cargo-installbTBcBe/release/deps/espup-f117ec602e38a3be" "-Wl,-dead_strip" "-nodefaultlibs" = note: ld: warning: ignoring file '/opt/homebrew/Cellar/xz/5.4.5/lib/liblzma.5.dylib': found architecture 'arm64', required architecture 'x86_64'

  • Would you like to work on a fix? [y/n] n (probably beyond my ability)

To Reproduce

Steps to reproduce the behavior:

  1. Macbook Air with M1 Apple Silicon
  2. open terminal, type cargo install espup

Expected behavior

espup to be installed in ~/.cargo/bin

Environment

  • OS: MacOS 14.2.1
  • espup version: not sure what version is tied to cargo install

Additional context

  • I was able to download the binary, and it seems to work fine. Just would have been more convenient if the cargo install option worked as well.
@chuckberrypi chuckberrypi added the bug Something isn't working label Jan 3, 2024
@github-project-automation github-project-automation bot moved this to Todo in esp-rs Jan 3, 2024
@github-project-automation github-project-automation bot moved this from Todo to Done in esp-rs Jan 3, 2024
@chuckberrypi
Copy link
Author

NVM, chatgpt helped me figure out the problem was that at some point when I was setting up rust for developing on the esp board, I had changed the default target for rust, which was causing problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

1 participant