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

Compiling it on macOS-arm64 #341

Closed
adrien3d opened this issue Sep 6, 2023 · 3 comments
Closed

Compiling it on macOS-arm64 #341

adrien3d opened this issue Sep 6, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@adrien3d
Copy link

adrien3d commented Sep 6, 2023

Bug description

While running cargo install espup, I have a bug at compilation time.
I suspect that it is due to the fact I am on a ARM Mac M1.

Here is the error:

  = note: ld: warning: ignoring file /opt/homebrew/Cellar/xz/5.4.4/lib/liblzma.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
          Undefined symbols for architecture x86_64:
            "_lzma_code", referenced from:
                _$LT$xz2..bufread..XzDecoder$LT$R$GT$$u20$as$u20$std..io..Read$GT$::read::h0cf12baeac3eea91 in espup-d3739f70c9711ea7.espup-6e07ce6c45161945.espup.1576fe4529cab319-cgu.15.rcgu.o.rcgu.o
            "_lzma_end", referenced from:
                core::ptr::drop_in_place$LT$tar..archive..Archive$LT$xz2..read..XzDecoder$LT$$RF$$u5b$u8$u5d$$GT$$GT$$GT$::hef792c4607495d10 in espup-d3739f70c9711ea7.espup-6e07ce6c45161945.espup.1576fe4529cab319-cgu.00.rcgu.o.rcgu.o
                core::ptr::drop_in_place$LT$tar..archive..Archive$LT$xz2..read..XzDecoder$LT$$RF$$u5b$u8$u5d$$GT$$GT$$GT$::hef792c4607495d10 in espup-d3739f70c9711ea7.espup-6e07ce6c45161945.espup.1576fe4529cab319-cgu.02.rcgu.o.rcgu.o
                core::ptr::drop_in_place$LT$tar..archive..Archive$LT$xz2..read..XzDecoder$LT$$RF$$u5b$u8$u5d$$GT$$GT$$GT$::hef792c4607495d10 in espup-d3739f70c9711ea7.espup-6e07ce6c45161945.espup.1576fe4529cab319-cgu.12.rcgu.o.rcgu.o
                core::ptr::drop_in_place$LT$xz2..read..XzDecoder$LT$$RF$$u5b$u8$u5d$$GT$$GT$::ha2e9c68d18256a65 (.llvm.4747039821596474401) in espup-d3739f70c9711ea7.espup-6e07ce6c45161945.espup.1576fe4529cab319-cgu.13.rcgu.o.rcgu.o
                core::ptr::drop_in_place$LT$xz2..stream..Stream$GT$::hce3b6527b1e25e20 (.llvm.12690339763100604783) in espup-d3739f70c9711ea7.xz2-f0a1d1668fd3957c.xz2.aaba150174409dfe-cgu.1.rcgu.o.rcgu.o
                xz2::stream::Stream::new_stream_decoder::h1d673b021f6a6278 in espup-d3739f70c9711ea7.xz2-f0a1d1668fd3957c.xz2.aaba150174409dfe-cgu.1.rcgu.o.rcgu.o
            "_lzma_stream_decoder", referenced from:
                xz2::stream::Stream::new_stream_decoder::h1d673b021f6a6278 in espup-d3739f70c9711ea7.xz2-f0a1d1668fd3957c.xz2.aaba150174409dfe-cgu.1.rcgu.o.rcgu.o
          ld: symbol(s) not found for architecture x86_64
          clang: error: linker command failed with exit code 1 (use -v to see invocation)
          

error: could not compile `espup` (bin "espup") due to previous error
error: failed to compile `espup v0.5.0`, intermediate artifacts can be found at `/var/folders/ww/lc242p6n5b96bbzp12rwffk40000gn/T/cargo-installSam5Um`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
@adrien3d adrien3d added the bug Something isn't working label Sep 6, 2023
@SergioGasquez
Copy link
Member

Which channel are you using? Just tried installing it on my M1 Mac with no issue using stable 1.71.1 and nightly 2023-08-03

@adrien3d
Copy link
Author

adrien3d commented Sep 6, 2023

My bad, working now, but no idea why 😅

@adrien3d adrien3d closed this as completed Sep 6, 2023
@SergioGasquez
Copy link
Member

Maybe the intermediate artifacts were corrupted! Glad it now works!

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

2 participants