-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
libnfc on macOS #22450
Comments
Do you use sandboxing? |
@joachifm I honestly do not know how it works and if it is enabled by default. |
I have opened #22452 to address the readline issue (which is probably completely unrelated). |
@kirelagin I ask because it could account for the difference (that is, there could be an impurity in the build, causing it to break in unsandboxed environments EDIT: or allowing it to succeed, whichever). It's not enabled by default, but I'm not sure about how stuff works on MacOS wrt sandboxing. |
Hm, you have a point. I guess it’s not sandboxing but something similar: building in a pure nix-shell yields non-functional utils. |
Ok, now I see. Without |
On my end, I've found that with As a side note, FWIW, |
How did you build this? Do you see the same result with |
@kirelagin Try running:
in your nix-shell. see #20484 |
We need some proper way to fix that. |
We could have it set in /etc/profile.d/nix.sh at least temporarily. There are no real side effects to just setting it besides the potential impurities. |
Yeah, this helps. I spent most of yesterday trying to debug the issue but with no luck: I did not manage to build libusb and libnfc with debug symbols (I have no idea how |
What exactly is that impure thing that makes |
In this case it's the
|
libnfc from the cache does not seem to work for me:
What happens is a null-pointer dereference somewhere inside IOKit:
I am really not sure what is going on, but what troubles me is that I cannot reproduce the build on my laptop: apparently, the examples depend on readline, which is not listed as a dependency.
How does the job manage to succeed on Hydra? What’s wrong with libnfc or libusb built on Hydra?
After I added
readline
as a dependency the build succeded and the resulting libnfc is fully functional.The text was updated successfully, but these errors were encountered: