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

opam install sibylfs fails #14

Closed
HenkPoley opened this issue Apr 28, 2016 · 7 comments
Closed

opam install sibylfs fails #14

HenkPoley opened this issue Apr 28, 2016 · 7 comments

Comments

@HenkPoley
Copy link

HenkPoley commented Apr 28, 2016

How to get it installed, on Ubuntu 14.04:

opam install sibylfs sha.1.8 sexplib.113.00.00 cow.1.4.0 unix-errno.0.2.0 unix-fcntl.0.2.0

I had this github repo pinned in opam.

As a user you probably want to opam pin add <pkg> <version> all of those, to not run into problems with opam upgrade or later package installations,

Reasons:

  • sha.1.9 fails to patch 'freebsd.patch'.
  • sexplib >= 113.24.00 has changes that have to do with "ppx", and isn't found by sibylfs.
  • cow 2.0.0, cow.syntax is not found by sibylfs compilation.
  • unix-errno and unix-fcntl >= 0.3.0 are not found by the compilation step of sibylfs (also "ppx" related?).

The last three items can probably be fixed on your end.

@tomjridge
Copy link
Contributor

Thanks for the bug report.

Yes, this is the problem with opam approaches. Hopefully the nix install works fine?

@dsheets can you make the fixes?

@HenkPoley
Copy link
Author

HenkPoley commented Apr 28, 2016

I might look further into it (e.g. Nix) once these syscalls are implemented in 'Windows Subsystem for Linux':

  • mount, though missing loopback device can be worked around with --model path=<some actual path>
  • chroot, I didn't look into it if you can convince SibylFS to drop the chroot requirement. Probably by commenting out this line. But it will then try to manipulate / :-(

Would be neat to check their POSIX filesystem conformance :P

dsheets added a commit to dsheets/sibylfs_src that referenced this issue Apr 28, 2016
@tomjridge
Copy link
Contributor

Ah! You are running on windows via some kind of ubuntu compatibility layer on top of windows?

Yes, mount you can probably work around. And also chroot. But for obvious reasons be careful if you omit chroot!

@dsheets
Copy link
Contributor

dsheets commented Apr 28, 2016

I've fixed the pinning opam file in this repository in #15 and I have put the upper bound on unix-fcntl in ocaml/opam-repository#6346. As I said in ocaml/opam-repository#6343, the sha.1.9 issue is likely a file system bug in WSL.

It would indeed be neat to check WSL's POSIX conformance but I'm afraid it's probably too incomplete and unstable at this time. I appreciate your trying to get this to work and your report regarding missing dependency constraints. Please, let us know if you encounter other issues.

dsheets added a commit to dsheets/sibylfs_src that referenced this issue Apr 28, 2016
@HenkPoley
Copy link
Author

Be sure to note that you are not supposed to make any changes for WSL if something works on Linux. Microsoft ought to take care of missing functionality. Though maybe the case of missing chroot() could be looked into. Possibly a "soft-chroot" where all the traces proveably don't go outside a certain path could be neat for running SibylFS on even dumber OSes.

@tomjridge
Copy link
Contributor

If you do get it to work, it would be very interesting to see the results! We can post them on the sibylfs.io website also.

@HenkPoley
Copy link
Author

proot might be an interesting alternative to chroot and mounting. Though then you will be working through QEMU user-mode. Which could be interesting to test in it's own regard anyways.

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

3 participants