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
unison fails t build, citing 'Unbound value Gpointer.region_of_string' (nixOs 19.03) #61867
Comments
For the record, I tested with lilyball's fix (commit 1931086) from #61505; I get the same result. |
It seems fine on Hydra: https://hydra.nixos.org/job/nixos/release-19.03/nixpkgs.unison.x86_64-linux – I have no idea why your results differ, as you do claim to have sandboxing enabled. |
Works on linux for me as well. But unfortunately fails on osx with the same error message. |
It seems fine on Hydra for darwin as well: https://hydra.nixos.org/job/nixpkgs/trunk/unison.x86_64-darwin https://hydra.nixos.org/job/nixpkgs/nixpkgs-19.03-darwin/unison.x86_64-darwin |
Fair enough. Just saw that I'm on 19.09:
Still, that is what I observed and I fixed it by using ocaml-4.0.5 instead of camp-4.0.6. |
The last sentence of the previous post should have been: |
Well, on your commit 0c09547
and that one only depends on ocaml 4.0.5. I don't know how you "switched" it, but I expect this is about purity problems – and perhaps it would be worked around by using sandboxing. |
Fails for me with same message on:
|
I got around this by setting enableX11 to false, since I don't need this functionality. |
Changing to region_of_string to region_of_bytes makes the build succeed. This issue has been fixed in latest master of unison 2 years ago, but there hasn't been a version released since then. |
Fixes NixOS#61867 and NixOS#61505, bumps the ocaml version unison is built against to 4.09. The patches included here appear in the trunk version of unison, but were not backported to 2.51.2.
Fixes NixOS#61867 and NixOS#61505, bumps the ocaml version unison is built against to 4.08. The patches included here appear in the trunk version of unison, but were not backported to 2.51.2. (cherry picked from commit 3355e8d)
Issue description
Trying to install unison (2.51.2) on nixos 19.03 fails thusly:
Steps to reproduce
Technical details
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste theresults.
The text was updated successfully, but these errors were encountered: