From c9fa03136ad26fab9c5d4d62c57fc26e2d5dc9e5 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Fri, 11 Feb 2022 10:06:55 -0800 Subject: [PATCH] or-tools: disable parallel-building protobuf generation is not thread safe ``` > ./ortools/scheduling/rcpsp_parser.h:24:10: fatal error: ortools/scheduling/rcpsp.pb.h: No such file or directory > 24 | #include "ortools/scheduling/rcpsp.pb.h" ``` --- pkgs/development/libraries/science/math/or-tools/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/science/math/or-tools/default.nix b/pkgs/development/libraries/science/math/or-tools/default.nix index ca3e4a243691..20978e31cff1 100644 --- a/pkgs/development/libraries/science/math/or-tools/default.nix +++ b/pkgs/development/libraries/science/math/or-tools/default.nix @@ -77,7 +77,8 @@ stdenv.mkDerivation rec { (cd temp_python/ortools; PYTHONPATH="$python/${python.sitePackages}:$PYTHONPATH" python setup.py install '--prefix=$python') ''; - enableParallelBuilding = true; + # protobuf generation is not thread safe + enableParallelBuilding = false; nativeBuildInputs = [ cmake