Skip to content

Commit

Permalink
ocaml: disable parallel installs
Browse files Browse the repository at this point in the history
Without the change parallel install fails as:

    $ install flags: -j16 ...
    ...
    install: target '...-ocaml-4.14.0/lib/ocaml/threads': No such file or directory
    make[1]: *** [Makefile:140: installopt] Error 1
  • Loading branch information
trofi committed Mar 2, 2023
1 parent ea80b39 commit 7b8d862
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkgs/development/compilers/ocaml/generic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ stdenv.mkDerivation (args // {
# make[2]: *** [Makefile:199: backup] Error 1
enableParallelBuilding = lib.versionAtLeast version "4.08";

# Workaround missing dependencies for install parallelism:
# install: target '...-ocaml-4.14.0/lib/ocaml/threads': No such file or directory
# make[1]: *** [Makefile:140: installopt] Error 1
enableParallelInstalling = false;

# Workaround lack of parallelism support among top-level targets:
# we place nixpkgs-specific targets to a separate file and set
# sequential order among them as a single rule.
Expand Down

0 comments on commit 7b8d862

Please sign in to comment.