Giter Club home page Giter Club logo

Comments (8)

rami3l avatar rami3l commented on September 28, 2024 3

IIRC this is https://stackoverflow.com/a/74686115 which is related to homebrew's binutils and has nothing to do with Cargo, at least not directly.

Of course, since v1.77, Cargo has been invoking strip by default, so that issue is more visible than before.

from cargo.

Toby-Shi-cloud avatar Toby-Shi-cloud commented on September 28, 2024

I find out why I failed to install wasm-pack! I use cargo install wasm-pack --target aarch64-apple-darwin and succeeded! So it maybe also due to this problem.

from cargo.

Toby-Shi-cloud avatar Toby-Shi-cloud commented on September 28, 2024

Adding these lines in .cargo/config.toml solves this problem temporarily.

[build]
target = "aarch64-apple-darwin"

However, do I have a permanent approach?

from cargo.

weihanglo avatar weihanglo commented on September 28, 2024

Could you run which strip and check if you're using the correct one from the system not from homebrew or other places?

Could you also try the latest nightly with the build.target = "aarch64-apple-darwin" config, which should fail as expected?

This might be relevant: rust-lang/rust#122902. Also #11641

from cargo.

Toby-Shi-cloud avatar Toby-Shi-cloud commented on September 28, 2024

IIRC this is https://stackoverflow.com/a/74686115 which is related to homebrew's binutils and has nothing to do with Cargo, at least not directly.

Of course, since v1.77, Cargo has been invoking strip by default, so that issue is more visible than before.

Work for me! Thanks!

from cargo.

Toby-Shi-cloud avatar Toby-Shi-cloud commented on September 28, 2024

Could you run which strip and check if you're using the correct one from the system not from homebrew or other places?

Could you also try the latest nightly with the build.target = "aarch64-apple-darwin" config, which should fail as expected?

This might be relevant: rust-lang/rust#122902. Also #11641

Thanks!

If I use /opt/homebrew/opt/binutils/bin/strip, cargo +nightly run -r with the build.target = "aarch64-apple-darwin" config do fail!

from cargo.

Toby-Shi-cloud avatar Toby-Shi-cloud commented on September 28, 2024

In my case, export PATH='/opt/homebrew/opt/binutils/bin:$PATH' was added by pipx, which I happened to install a few days ago. How annoying!

from cargo.

weihanglo avatar weihanglo commented on September 28, 2024

Thanks for help verify it. As it is expected and we've found the root cause, I am going to close this.

from cargo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.