-
Notifications
You must be signed in to change notification settings - Fork 31
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
Build script for ocaml-sys v0.22.3 fails in Github CI #140
Comments
I am running into this issue too on NixOS. |
@kentookura try setting |
Getting a new error:
|
This is only an excerpt of the output |
If you provide more comprehensive log I might be able to help you but this is not enough to understand what's going on. |
|
It looks like a version mismatch. Take a look at:
(don't be confused by branch names, it works on ocaml 4) |
I am on ocaml 5 anyway. So I updated my [package]
name = "forester-rs"
version = "0.1.0"
edition = "2021"
[dependencies]
# ocaml = { version = "^1.0.0-beta" }
ocaml = {git = "https://github.com/crackcomm/ocaml-rs", branch = "ocaml5-fortran"}
[build-dependencies]
#ocaml-build = { version = "^1.0.0-beta", features = ["dune"] }
ocaml-build = { git = "https://github.com/crackcomm/ocaml-rs", branch = "ocaml5-fortran", features = ["dune"] } and get
|
Not sure what exactly is going on there but looks like an issue with glibc linking, make sure it's available for the build process. btw. I also had to override
I don't have any experience with nixos so can't help you much there but I think you'll have to go deeper trying to resolve the linker issues. |
Overriding the dependency didn't work, but thanks a lot anyway. How should I share my solution if I happen to resolve this? This issue seems unrelated. |
I'm not sure, linker issues are common but the solution might be nixos specific. |
I have
ocaml-rs
vendored along with dependencies inocaml-lwt-interop
, nothing special there, and it builds just fine when I build it locally. It fails in Github CI though, see job log, exact error is cited below:After looking in the
ocaml-sys-0.22.3/build.rs:143:11
, it seems that it failed to parse OCaml version. Probably it makes sense to print proper error message in this case, I indeed don't have OCaml in my workflow as I got default Rust one and got confused with this error.The text was updated successfully, but these errors were encountered: