NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.65k stars 13.81k forks source link

Build failure: ocaml-ng.ocamlPackages_latest.ocaml-lsp #247681

Open nanozuki opened 1 year ago

nanozuki commented 1 year ago

Steps To Reproduce

Steps to reproduce the behavior:

  1. build ocaml-ng.ocamlPackages_latest.ocaml-lsp

Build log

File "ocaml-lsp-server/vendor/merlin/src/utils/std.ml", line 453, characters 19-29:
453 |   let capitalize = capitalize
                         ^^^^^^^^^^
Error: Unbound value capitalize
File "ocaml-lsp-server/vendor/merlin/src/config/merlin_config.ml", line 8, characters 22-34:
8 |   | `OCaml_4_14_0 ] = `OCaml_5_0_0
                          ^^^^^^^^^^^^
Error: This expression has type [> `OCaml_5_0_0 ]
       but an expression was expected of type
         [ `OCaml_4_02_0
         | `OCaml_4_02_1
         | `OCaml_4_02_2
         | `OCaml_4_02_3
         | `OCaml_4_03_0
         | `OCaml_4_04_0
         | `OCaml_4_05_0
         | `OCaml_4_06_0
         | `OCaml_4_07_0
         | `OCaml_4_07_1
         | `OCaml_4_08_0
         | `OCaml_4_09_0
         | `OCaml_4_10_0
         | `OCaml_4_11_0
         | `OCaml_4_12_0
         | `OCaml_4_13_0
         | `OCaml_4_14_0 ]
       The second variant type does not allow tag(s) `OCaml_5_0_0

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

these 2 paths will be fetched (0.01 MiB download, 0.03 MiB unpacked):
  /nix/store/a0561708dgk2ash6rjqyf0i30cgghhjn-DarwinTools-1
  /nix/store/g15i9kb335cy1by2r9k16s79c83pglfs-nix-info
copying path '/nix/store/a0561708dgk2ash6rjqyf0i30cgghhjn-DarwinTools-1' from 'https://cache.nixos.org'...
copying path '/nix/store/g15i9kb335cy1by2r9k16s79c83pglfs-nix-info' from 'https://cache.nixos.org'...
 - system: `"x86_64-darwin"`
 - host os: `Darwin 22.6.0, macOS 10.16`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.17.0`
 - channels(root): `"nixpkgs"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`
nanozuki commented 1 year ago

Maintainers @marsam

Zenthial commented 10 months ago

Still running into this, would like a fix

marsam commented 10 months ago

Would you mind trying the unstable channel? I can build/run ocaml-ng.ocamlPackages_latest.ocaml-lsp on x86_64-linux and x86_64-darwin.

Zenthial commented 10 months ago

That worked, sorry for the trouble. I thought I was using the unstable channel, but I actually wasn't

Zenthial commented 10 months ago

This does then result in a linker error when attempting to run dune build, using the unstable version of dune_3. With the linker error being "undefined reference to `__isoc23_strtol'"