ocamlPackages.findlib: Allow built-in libraries to clash#213577
ocamlPackages.findlib: Allow built-in libraries to clash#213577ulrikstrid wants to merge 1 commit into
Conversation
|
Added those involved in the last PR as reviwers |
This change allows the builtin libraries in OCaml to clash which is the case when you cross-compile since you'll have both the target and system OCaml available
0eda23f to
739b269
Compare
|
Seems like a good idea but I don't know anything about ocaml :) |
|
I cannot reproduce the issue, inside so no clash An alternative to hard coding the list of builtins would be to run ocamlfind list with empty OCAMLPATH. |
|
@symphorien i think that's because you only have the musl compiler. We saw it in our OCaml overlays when compiling to arm64. |
|
does cross x86 -> arm64 work at all with ocaml? I thought it only worked for platforms which can execute one-another |
yup, a few patches are required but we set it up successfully in our ocaml-focused nix-overlays. Example working PR: |
|
cool! However it would be nice to provide a way to reproduce the issue on vanilla nixpkgs so that I can review. |
|
Could we split ocaml compiler instead ? so that it has native stdlib when compiling native binary and cross stdlib to compile cross library ? |
I think this is a bigger effort 😅 @symphorien I'm trying to find a way to repro in this repo. @anmonteiro what would need to be upstreamed here to have good crosscompilation? The OCaml patches + what? |
|
This doesn't seem that bad to merge anyway to me, but a comment might be warranted on the line above? |
|
bumping to know whether it is still relevant |
Description of changes
This change allows the builtin libraries in OCaml to clash which is the case when you cross-compile since you'll have both the target and system OCaml available
Follow-up on #205646
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)nixos/doc/manual/md-to-db.shto update generated release notes