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

Fails to link libstd on macOS #74

Open
5nefarious opened this issue Sep 25, 2022 · 1 comment
Open

Fails to link libstd on macOS #74

5nefarious opened this issue Sep 25, 2022 · 1 comment

Comments

@5nefarious
Copy link

I'm working on a project using Bevy on macOS. Attempting to run cargo instruments produces the following result:

% cargo instruments -t "Game Performance"               
    Finished dev [optimized + debuginfo] target(s) in 0.80s
   Profiling target/debug/render-test with template 'Game Performance'
dyld[4563]: Library not loaded: '@rpath/libstd-997c4eb22009d353.dylib'
  Referenced from: '/Users/REDACTED/render-test/target/debug/render-test'

  Reason: tried: '/usr/local/lib/libstd-997c4eb22009d353.dylib' (no such file), '/usr/lib/libstd-997c4eb22009d353.dylib' (no such file)
  Trace file target/instruments/render-test_Game-Performance_2022-09-24_211925-582.trace

When running the executable directly, I get the same error unless I pass DYLD_FALLBACK_LIBRARY_PATH=$HOME/.rustup/toolchains/stable-x86_64-apple-darwin/lib. However, this does not seem to fix the issue with cargo instruments.

@cmyr
Copy link
Owner

cmyr commented Oct 7, 2022

huh, I'm really not sure what's going on here. Do other instruments work? When you say "running the executable directly", do you mean your executable, or do you mean the instruments executable?

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