Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

gcc48: disable on x86_64-darwin

According to Hydra, the last time GCC 4.8 successfully built on Darwin
was October 2014. It is possible to make the first stage build
successfully with clang, but the resulting GCC is not capable of reading
the Darwin SDK headers due to their use of `__can_include`.

It’s been broken for almost a decade, so just disable it.

authored by Randy Eckenrode and committed by Adam Joseph b09f87fb e5e1914c

+1 -4
-3
pkgs/development/compilers/gcc/all.nix
··· 34 else /* "4.8" */ isl_0_14; 35 } // lib.optionalAttrs (majorMinorVersion == "4.8") { 36 texinfo = texinfo5; # doesn't validate since 6.1 -> 6.3 bump 37 - } // lib.optionalAttrs (majorMinorVersion == "4.9") { 38 - # Build fails on Darwin with clang 39 - stdenv = if stdenv.isDarwin then gccStdenv else stdenv; 40 } // lib.optionalAttrs (!(atLeast "6")) { 41 cloog = if stdenv.isDarwin 42 then null
··· 34 else /* "4.8" */ isl_0_14; 35 } // lib.optionalAttrs (majorMinorVersion == "4.8") { 36 texinfo = texinfo5; # doesn't validate since 6.1 -> 6.3 bump 37 } // lib.optionalAttrs (!(atLeast "6")) { 38 cloog = if stdenv.isDarwin 39 then null
+1 -1
pkgs/development/compilers/gcc/default.nix
··· 408 maintainers 409 ; 410 } // lib.optionalAttrs (!atLeast11) { 411 - badPlatforms = if !is49 then [ "aarch64-darwin" ] else lib.platforms.darwin; 412 }; 413 } // optionalAttrs is7 { 414 env.NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.cc.isClang && langFortran) "-Wno-unused-command-line-argument";
··· 408 maintainers 409 ; 410 } // lib.optionalAttrs (!atLeast11) { 411 + badPlatforms = if !(is48 || is49) then [ "aarch64-darwin" ] else lib.platforms.darwin; 412 }; 413 } // optionalAttrs is7 { 414 env.NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.cc.isClang && langFortran) "-Wno-unused-command-line-argument";