-
Notifications
You must be signed in to change notification settings - Fork 42
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
bug: nix build fails when using RLN support #731
Comments
Here's the command that actually fails:
Got it by adding
It appears we are passing |
When I run the build outside of nix derivation but in a nix shell I can see this is set in
So it appears to be also affecting the working build. Next thing to check is:
|
This is being done here and it will pick up the libraries from https://github.com/waku-org/go-zerokit-rln-x86_64/tree/master/libs (there's similar code in go-zerokit-rln-apple and go-zerokit-rln-arm)
Compilation would fail with a lot of |
Uh? I'm not getting errors when doing |
I worded it badly. I mean the presence of |
One key thing to keep in mind that this error is caused by flag formatting, and not actual missing files:
It's not saying |
Foe example, I wonder if we need a space in that #cgo LDFLAGS:-lrln -ldl -lm Because if we look at this example: // #cgo LDFLAGS: -lpng It looks like there's a space before the |
I tried in #743 which uses waku-org/go-zerokit-rln-x86_64@6057b97 (containing an space before the |
In the link you shared for c-go, it says the following:
I'll try this tomorrow |
In #730 RLN support is included by default in go-waku. However, it seems that nix does not like it because
nix build
fails with the following error:It seems that it has trouble finding
librln.a
which is included as part ofgo-zerokit-rln-x86_64
andgo-zerokit-rln-apple
dependencies. This error does not happen when usingmake build
In the meantime I had to add
tags = [ "gowaku_no_rln" ];
tobuildGo119Module
so go-waku compiles.@jakubgs, any idea what could be happening here?
The text was updated successfully, but these errors were encountered: