-
Notifications
You must be signed in to change notification settings - Fork 111
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
unix_sysconf
throws Illegal seek
when glibc-2.26 is used
#95
Comments
Interesting. Looks like Other than that, |
Also running into this. Note that even though |
Just another data point: I ran into the same issue with ocaml@4.04.2, core@0.9.1 (via opam) on void linux (glibc 2.26). Recompiling core with
in |
I managed to work around this with a nix-shell on ubuntu 17.10 beta (just introduced glib 2.26 yesterday?). |
@gtrak FWIW, I ended up using nix-shell to work around this as well. I'm on Arch Linux. glibc 2.26 was introduced a few weeks ago. In case it helps anyone else working through Real World OCaml, here are the steps I used getting this work:
I also created a question on Stack Overflow about this exact problem before I found this issue. |
Is there any update on this issue? I would like to use the core library without any workarounds. |
We are working on a fix. |
This should be fixed in the next version of core.
|
@aalekseyev Many thanks. When is the next release planned? |
The fix has been merged, a |
This is still broken for me on ocaml-4.06.0 with core-v0.9.2. Same reproduction as ticket description. |
You're right, I tested a bit hasty. Sorry about the noise. |
For the record, the v0.9.2 was only to released to make core installable from the 4.06.0 switch. |
Was it made intentionally to set 4.06.0 as a minimum version? To be correct core v.0.9.2 requires base v.0.9.4, which requires sexplib (>= v0.9.3 & < v0.10) and sexplib v.0.9.3 can be installed only since OCaml 4.06.0. No plans of this fix for 4.05.0 (or even for ocaml-version >= "4.03.0")? |
Any chance we could have at least a patch for this one? Seems like this was fixed two weeks ago... |
The fix was committed to master as part of c3761ac, which was about a week ago. You can see the core of the fix in the cstubs here. Following the bindings for An official OPAM release will happen in the next week or two. Until then, pinning core to master, or a specific, hash after c3761ac should get your back up and running. Closing this, as the issue has been resolved. Check out #99 to track the next OPAM release. |
Example file:
Using ocaml@4.04.1 and core@0.9.1 (both installed via opam) compiling this file leads to a binary that prints our
hello_world
.But when Core is opened the binary will fail with:
Using glibc@2.25 everything both works fine.
The text was updated successfully, but these errors were encountered: