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

gyrfalcON in bench5 crashes on mac #174

Open
teuben opened this issue Feb 18, 2025 · 3 comments
Open

gyrfalcON in bench5 crashes on mac #174

teuben opened this issue Feb 18, 2025 · 3 comments
Labels
OS an upstream issue in the OS

Comments

@teuben
Copy link
Owner

teuben commented Feb 18, 2025

This is likely a side-effect of their System Integrity Protection (SIP), which can break compatibility with DYLD_LIBRARY_PATH.

Launching a shell (bash or zsh) will not import DYLD_LIBRARY_PATH, and thus programs like gyrfalcON will not run. This is SIP for you. The solution would be

if [ -z $DYLD_LIBRARY_PATH ]; then
   source $NEMO/nemo_start.sh
fi

so it begs the question, why does SIP even exist when you can do this???

One website claims you can undo this (to some effect) using csrutil enable --without debug in a recovery mode (i.e. root?) terminal.
`

@teuben teuben added the OS an upstream issue in the OS label Feb 18, 2025
@teuben
Copy link
Owner Author

teuben commented Feb 18, 2025

we could just change the build system and build static binaries. We've been doing that on linux since ages, but there's a desire to go back to shared libraries.

@teuben
Copy link
Owner Author

teuben commented Feb 18, 2025

AI is crazy. I asked the same question, now it says to disable SIP, do this

csrutil disable

@teuben
Copy link
Owner Author

teuben commented Feb 18, 2025

https://www.fullstaq.com/knowledge-hub/blogs/an-alternative-to-macos-dyld-library-path

seems to offer a useful alternative using rpath.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OS an upstream issue in the OS
Projects
None yet
Development

No branches or pull requests

1 participant