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

[vdev] cargo vdev build fails on arm64 Mac #16729

Open
spencergilbert opened this issue Mar 8, 2023 · 4 comments
Open

[vdev] cargo vdev build fails on arm64 Mac #16729

spencergilbert opened this issue Mar 8, 2023 · 4 comments
Labels
domain: vdev Anything related to the vdev tooling type: bug A code related bug.

Comments

@spencergilbert
Copy link
Contributor

spencergilbert commented Mar 8, 2023

A note for the community

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Problem

vdev fails to build Vector when run on an arm64 Mac. Ideally it should identify the proper platform automatically, this target appears to be aarch64-apple-darwin.

Configuration

No response

Version

master@83774298b62a3c6a191878d5de6afb933fc6066d

Debug Output

cargo vdev build
Building Vector
   Compiling proc-macro2 v1.0.51
   Compiling libc v0.2.139
   Compiling quote v1.0.23
   Compiling unicode-ident v1.0.5
   Compiling syn v1.0.109
   Compiling autocfg v1.1.0
   Compiling cfg-if v1.0.0
   Compiling serde_derive v1.0.152
   Compiling serde v1.0.152
   Compiling version_check v0.9.4
error[E0463]: can't find crate for `core`
  |
  = note: the `aarch64-unknown-linux-gnu` target may not be installed
  = help: consider downloading the target with `rustup target add aarch64-unknown-linux-gnu`

error[E0463]: can't find crate for `compiler_builtins`

For more information about this error, try `rustc --explain E0463`.
error: could not compile `cfg-if` due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
Error: command: "cargo" "build" "--no-default-features" "--features" "default" "--target" "aarch64-unknown-linux-gnu"
  failed with exit code: 101

Example Data

No response

Additional Context

uname -a
Darwin COMP-J44M27KKWV 22.3.0 Darwin Kernel Version 22.3.0: Mon Jan 30 20:38:37 PST 2023; root:xnu-8792.81.3~2/RELEASE_ARM64_T6000 arm64 arm Darwin

References

No response

@spencergilbert spencergilbert added type: bug A code related bug. domain: vdev Anything related to the vdev tooling labels Mar 8, 2023
@bruceg
Copy link
Member

bruceg commented Mar 8, 2023

What is the correct target? Obviously the linux in aarch64-unknown-linux-gnu is bogus on MacOS.

@spencergilbert
Copy link
Contributor Author

spencergilbert commented Mar 8, 2023

aarch64-apple-darwin - updated the description!

@bruceg
Copy link
Member

bruceg commented Mar 8, 2023

That's weird. The function that generates that string should be generating that string due to a cfg!(macos) guard.

@bruceg
Copy link
Member

bruceg commented Jul 31, 2024

This may be fixed by changes included in #20949 when that is merged. The problem is that macos is not a valid guard flag and should be cfg!(target_os = "macos").

@jonathanpv jonathanpv removed their assignment Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain: vdev Anything related to the vdev tooling type: bug A code related bug.
Projects
None yet
Development

No branches or pull requests

3 participants