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

error[E0463]: can't find crate for 'core' when building bindgen on Apple Silicion #201

Open
tsuliwaensis opened this issue Nov 10, 2024 · 2 comments

Comments

@tsuliwaensis
Copy link

Running the build script with Apple Silicon returns the error error[E0463]: can't find crate for 'core' when it gets to ./tools/ust/build_bindgen.py

error[E0463]: can't find crate for `core`
  |
  = note: the `x86_64-apple-darwin` target may not be installed
  = help: consider downloading the target with `rustup target add x86_64-apple-darwin`
  = help: consider building the standard library from source with `cargo build -Zbuild-std`

+ ./tools/rust/build_bindgen.py
Running /Users/tsuliwaensis/ungoogled-chromium-macos/build/src/third_party/rust-toolchain/bin/cargo 
    build 
    --manifest-path=/Users/tsuliwaensis/ungoogled-chromium-macos/build/src/third_party/rust-toolchain-intermediate/bindgen-src/Cargo.toml 
    --target-dir=/Users/tsuliwaensis/ungoogled-chromium-macos/build/src/third_party/rust-toolchain-intermediate/bindgen-host-build 
    --target=x86_64-apple-darwin 
    --no-default-features
    --features=logging
    --release
    --bin bindgen

Any help would be greatly appreciated

@Cubik65536
Copy link
Member

@tsuliwaensis
Copy link
Author

The solutions are only if you have rust installed locally. The suggestions are to add parameters to the cargo call, and I don't know how to do that within the confines of the build script

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

2 participants