From 3d6bd6a1facff3993d1b581dfcf9ee2b6a751642 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 24 Jul 2015 16:56:46 +0200 Subject: [PATCH] gfortran: disable parallel building to avoid weird build failures More details are at https://github.com/NixOS/nixpkgs/commit/784025c7475610fb2fe8e28044d9d50bec1d93d1#commitcomment-12328357. --- pkgs/development/compilers/gcc/4.9/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/compilers/gcc/4.9/default.nix b/pkgs/development/compilers/gcc/4.9/default.nix index 9069387762fd..cf67d880a2cf 100644 --- a/pkgs/development/compilers/gcc/4.9/default.nix +++ b/pkgs/development/compilers/gcc/4.9/default.nix @@ -61,7 +61,10 @@ let version = "4.9.3"; # Whether building a cross-compiler for GNU/Hurd. crossGNU = cross != null && cross.config == "i586-pc-gnu"; - enableParallelBuilding = true; + # Builds of gfortran have failed with strange errors that we cannot reproduce + # (http://hydra.nixos.org/build/23951123). Our best guess is that the build + # system has bugs that are exposed by compiling with multiple threads. + enableParallelBuilding = !langFortran; patches = [ ] ++ optional enableParallelBuilding ../parallel-bconfig.patch