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

Installation failes while linking on aarch64/Mac #1075

Closed
Roba1993 opened this issue Oct 26, 2021 · 1 comment
Closed

Installation failes while linking on aarch64/Mac #1075

Roba1993 opened this issue Oct 26, 2021 · 1 comment

Comments

@Roba1993
Copy link

🐛 Bug description

Lining failed while installation.
See the failure here:

   Compiling wasm-pack v0.10.1
error: linking with `cc` failed: exit status: 1
  |
  = note: "cc" "-arch" "arm64" "/var/folders/xg/tcm76ljx07j4g2qc8h8k4mwr0000gn/T/cargo-installRJhOEb/release/deps/wasm_pack-165230815be70d50.wasm_pack.06767d3d-cgu.0.rcgu.o"
....
a lot more files here
....
"/Users/roba/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcore-7313ce3da41d0cb8.rlib" "/Users/roba/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-e5a12dd0c19af964.rlib" "-framework" "Security" "-framework" "CoreFoundation" "-lcurl" "-framework" "Security" "-lc" "-liconv" "-lSystem" "-lresolv" "-lc" "-lm" "-liconv" "-L" "/Users/roba/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "-o" "/var/folders/xg/tcm76ljx07j4g2qc8h8k4mwr0000gn/T/cargo-installRJhOEb/release/deps/wasm_pack-165230815be70d50" "-Wl,-dead_strip" "-nodefaultlibs"
  = note: 0  0x102798224  __assert_rtn + 128
          1  0x10279d7e8  ld::tool::OutputFile::addressAndTarget(ld::Internal const&, ld::Fixup const*, ld::Atom const**) (.cold.1) + 0
          2  0x1026d7104  ld::tool::OutputFile::addressOf(ld::Internal const&, ld::Fixup const*, ld::Atom const**) + 252
          3  0x1026d8dfc  ld::tool::OutputFile::applyFixUps(ld::Internal&, unsigned long long, ld::Atom const*, unsigned char*) + 4004
          4  0x1026dd540  ld::tool::OutputFile::writeAtoms(ld::Internal&, unsigned char*) + 356
          5  0x1026d4fa4  ld::tool::OutputFile::writeOutputFile(ld::Internal&) + 408
          6  0x1026cdadc  ld::tool::OutputFile::write(ld::Internal&) + 216
          7  0x10265b1d8  main + 584
          A linker snapshot was created at:
          	/tmp/wasm_pack-165230815be70d50-2021-09-26-173240.ld-snapshot
          ld: Assertion failed: (_mode == modeFinalAddress), function finalAddress, file ld.hpp, line 1190.
          clang: error: linker command failed with exit code 1 (use -v to see invocation)
          

error: failed to compile `wasm-pack v0.10.1`, intermediate artifacts can be found at `/var/folders/xg/tcm76ljx07j4g2qc8h8k4mwr0000gn/T/cargo-installRJhOEb`

Caused by:
  could not compile `wasm-pack` due to previous error

👟 Steps to reproduce

Run the following command on a M1 Mac

cargo install was-pack

🌍 Your environment

Include the relevant details of your environment.
wasm-pack version: latest released on cargo
rustc version: rstable-aarch64-apple-darwin (default) - rustc 1.56.0 (09c42c458 2021-10-18)

@Roba1993 Roba1993 changed the title Installation faules while linking on aarch64/Mac Installation failes while linking on aarch64/Mac Oct 26, 2021
@alcuadrado
Copy link

I was having this same problem. Its cause and a workaround are described here: rust-lang/rust#90342

@drager drager closed this as completed Jun 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants