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

libsecp256k1.so.0 cannot be found after updating nix and running nix-garbage-collect #54

Open
kwannoel opened this issue Nov 11, 2021 · 0 comments

Comments

@kwannoel
Copy link
Collaborator

kwannoel commented Nov 11, 2021

After updating nix version and running nix-garbage-collect, I encounter the following error when trying to build gerbil-ethereum:

> ./build.ss
*** WARNING -- Could not find object file entry point "___LNK_secp256k1_2d_ffi____1_2e_o2"
Gerbil v0.16-192-gfa9537be on Gambit 4.9.3-1447-gc0753ff1
*** ERROR IN load-module -- libsecp256k1.so.0: cannot open shared object file: No such file or directory
(load "/home/noel/.gerbil/lib/clan/crypto/secp256k1-ffi__1.o2")
Process exited with non-zero status
512

The solution is to:

gxpkg clean github.com/fare/gerbil-crypto
gxpkg build github.com/fare/gerbil-crypto

NOTE: gxpkg build alone does not work.

Then ./build.ss for gerbil-ethereum continues to work as per normal.

Note that the file is still not located at that path even after the above steps:

ls: cannot access '/home/noel/.gerbil/lib/clan/crypto/secp256k1-ffi__1.o2': No such file or directory

This seems to suggest some issues with linking to the nix-store path,
either it went missing after garbage collection / there where changes to the store hash for secp256k1 package.

Either a better error message or a fix will be great for this.

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

1 participant