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

Unable to run rustc -v on Mac #124331

Closed
krishnaTORQUE opened this issue Apr 24, 2024 · 5 comments
Closed

Unable to run rustc -v on Mac #124331

krishnaTORQUE opened this issue Apr 24, 2024 · 5 comments
Labels
O-macos Operating system: macOS

Comments

@krishnaTORQUE
Copy link

Macos: 14.4.1
Rust: 1.77.2
Error

dyld[3488]: Symbol not found: __ZN4llvm10PGOOptionsC1ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES7_S7_S7_NS_18IntrusiveRefCntPtrINS_3vfs10FileSystemEEENS0_9PGOActionENS0_11CSPGOActionEbb
  Referenced from: <EEB49284-2EAD-3371-9401-139E8557678B> /opt/homebrew/Cellar/rust/1.77.2_1/lib/librustc_driver-3dc17bded25d4e59.dylib
  Expected in:     <B0C4597F-D1E6-36D5-83FD-81D0ACE34F6C> /opt/homebrew/Cellar/llvm/18.1.4/lib/libLLVM.dylib
[1]    3488 abort      rustc --version

Please help
Thanks

@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Apr 24, 2024
@ehuss
Copy link
Contributor

ehuss commented Apr 24, 2024

Thanks for the report! I believe this is an issue with the homebrew distribution. We have no control over that, so it would probably be best to report it on their issue tracker (https://github.com/Homebrew/homebrew-core/issues I think?).

A user at rust-lang/cargo#13795 indicated that reinstalling llvm@17 helped them.

@krishnaTORQUE
Copy link
Author

Thanks
brew install llvm@17 resolved the issue

@saethlin saethlin added O-macos Operating system: macOS and removed needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. labels Apr 24, 2024
@amaendeepm
Copy link

Also do brew reinstall rustc , after above to fully resolve this issue

@kapilaGIT
Copy link

You meant

brew reinstall rustc-completion (at least in mac)

@postgresql007
Copy link

  506  rustc 
  507  brew reinstall rust
  508  rustc 
  509  brew reinstall rust*
  510  brew reinstall llvm
  511  brew reinstall rustc-completion 
  512  rustc 
  513  brew reinstall rustc
  514  brew reinstall llvm@18
  515  rustc 
  516  history
HansJurgensMini:epas_migrator hs$ rustc 
dyld[90108]: Symbol not found: __ZN4llvm10PGOOptionsC1ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES7_S7_S7_NS_18IntrusiveRefCntPtrINS_3vfs10FileSystemEEENS0_9PGOActionENS0_11CSPGOActionEbb
  Referenced from: <EEB49284-2EAD-3371-9401-139E8557678B> /opt/homebrew/Cellar/rust/1.77.2_1/lib/librustc_driver-3dc17bded25d4e59.dylib
  Expected in:     <B0C4597F-D1E6-36D5-83FD-81D0ACE34F6C> /opt/homebrew/Cellar/llvm/18.1.4/lib/libLLVM.dylib
Abort trap: 6
HansJurgensMini:epas_migrator hs$ uname -a
Darwin HansJurgensMini.dc1 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:12:41 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T8103 arm64

hello ...
for me this one still persists. xcode has been updated, all kinds of rust things are reinstalled (see history).
can anybody enlighten me?

thank you for your excellent work, btw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-macos Operating system: macOS
Projects
None yet
Development

No branches or pull requests

7 participants