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 on libsodium-1.0.19 #64

Open
agevelt opened this issue Nov 16, 2023 · 1 comment
Open

Fails on libsodium-1.0.19 #64

agevelt opened this issue Nov 16, 2023 · 1 comment

Comments

@agevelt
Copy link

agevelt commented Nov 16, 2023

After updating to the latest libsodium via homebrew on mac, compilation fails with the following error message:

<no location info>: error:
    dlopen(/Users/ag/.stack/snapshots/aarch64-osx/05cea9c761dcdd9448fb537dabaa41d5606a0988e1f706929c9813d1569fbcd3/9.4.7/lib/aarch64-osx-ghc-9.4.7/libHSsaltine-0.2.1.0-AdwsJvszzLkGtax63fo2Vs-ghc9.4.7.dylib, 0x0005): Library not loaded: /opt/homebrew/opt/libsodium/lib/libsodium.23.dylib
  Referenced from: <EEDC9FF7-99D0-3F45-9413-15812EA43167> /Users/ag/.stack/snapshots/aarch64-osx/05cea9c761dcdd9448fb537dabaa41d5606a0988e1f706929c9813d1569fbcd3/9.4.7/lib/aarch64-osx-ghc-9.4.7/libHSsaltine-0.2.1.0-AdwsJvszzLkGtax63fo2Vs-ghc9.4.7.dylib
  Reason: tried: '/opt/homebrew/opt/libsodium/lib/libsodium.23.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/libsodium/lib/libsodium.23.dylib' (no such file), '/opt/homebrew/opt/libsodium/lib/libsodium.23.dylib' (no such file), '/usr/local/lib/libsodium.23.dylib' (no such file), '/usr/lib/libsodium.23.dylib' (no such file, not in dyld cache), '/opt/homebrew/Cellar/libsodium/1.0.19/lib/libsodium.23.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/libsodium/1.0.19/lib/libsodium.23.dylib' (no such file), '/opt/homebrew/Cellar/libsodium/1.0.19/lib/libsodium.23.dylib' (no such file), '/usr/local/lib/libsodium.23.dylib' (no such file), '/usr/lib/libsodium.23.dylib' (no such file, not in dyld cache)

The libsodium.23.dylib file has been bumped to 26 in libsodium-1.0.19, and it can't find it.

@linearray
Copy link
Collaborator

On my machine (with cabal) everything seems to work unchanged.

Some people have similar problems and the solutions seems to be reinstalling libsodium: brew reinstall libsodium. Can you try that?

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