nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

ghc: use CXX=c++, not CXX=cxx

Otherwise attempt to build ghcHEAD from local checkout fails as:

$ nix build -L --impure --expr 'with import ~/nm {}; haskell.compiler.ghcHEAD.overrideAttrs (oa: { src = ./.; patches = []; nativeBuildInputs = oa.nativeBuildInputs ++ [ git ]; })' --keep-failed
...
ghc> checking C++ standard library flavour... ./configure: line 11487: /nix/store/r7r10qvsqlnvbzjkjinvscjlahqbxifl-gcc-wrapper-11.3.0/bin/cxx: No such file or directory

I think 'cxx' is not provided by stdenv.

authored by

Sergei Trofimovich and committed by
sternenseemann
849d47a9 4cec59e0

+5 -5
+1 -1
pkgs/development/compilers/ghc/8.10.7.nix
··· 234 234 # GHC is a bit confused on its cross terminology, as these would normally be 235 235 # the *host* tools. 236 236 export CC="${targetCC}/bin/${targetCC.targetPrefix}cc" 237 - export CXX="${targetCC}/bin/${targetCC.targetPrefix}cxx" 237 + export CXX="${targetCC}/bin/${targetCC.targetPrefix}c++" 238 238 # Use gold to work around https://sourceware.org/bugzilla/show_bug.cgi?id=16177 239 239 export LD="${targetCC.bintools}/bin/${targetCC.bintools.targetPrefix}ld${lib.optionalString useLdGold ".gold"}" 240 240 export AS="${targetCC.bintools.bintools}/bin/${targetCC.bintools.targetPrefix}as"
+1 -1
pkgs/development/compilers/ghc/8.8.4.nix
··· 215 215 # GHC is a bit confused on its cross terminology, as these would normally be 216 216 # the *host* tools. 217 217 export CC="${targetCC}/bin/${targetCC.targetPrefix}cc" 218 - export CXX="${targetCC}/bin/${targetCC.targetPrefix}cxx" 218 + export CXX="${targetCC}/bin/${targetCC.targetPrefix}c++" 219 219 # Use gold to work around https://sourceware.org/bugzilla/show_bug.cgi?id=16177 220 220 export LD="${targetCC.bintools}/bin/${targetCC.bintools.targetPrefix}ld${lib.optionalString useLdGold ".gold"}" 221 221 export AS="${targetCC.bintools.bintools}/bin/${targetCC.bintools.targetPrefix}as"
+1 -1
pkgs/development/compilers/ghc/9.0.2.nix
··· 217 217 # GHC is a bit confused on its cross terminology, as these would normally be 218 218 # the *host* tools. 219 219 export CC="${targetCC}/bin/${targetCC.targetPrefix}cc" 220 - export CXX="${targetCC}/bin/${targetCC.targetPrefix}cxx" 220 + export CXX="${targetCC}/bin/${targetCC.targetPrefix}c++" 221 221 # Use gold to work around https://sourceware.org/bugzilla/show_bug.cgi?id=16177 222 222 export LD="${targetCC.bintools}/bin/${targetCC.bintools.targetPrefix}ld${lib.optionalString useLdGold ".gold"}" 223 223 export AS="${targetCC.bintools.bintools}/bin/${targetCC.bintools.targetPrefix}as"
+1 -1
pkgs/development/compilers/ghc/9.2.3.nix
··· 199 199 # GHC is a bit confused on its cross terminology, as these would normally be 200 200 # the *host* tools. 201 201 export CC="${targetCC}/bin/${targetCC.targetPrefix}cc" 202 - export CXX="${targetCC}/bin/${targetCC.targetPrefix}cxx" 202 + export CXX="${targetCC}/bin/${targetCC.targetPrefix}c++" 203 203 # Use gold to work around https://sourceware.org/bugzilla/show_bug.cgi?id=16177 204 204 export LD="${targetCC.bintools}/bin/${targetCC.bintools.targetPrefix}ld${lib.optionalString useLdGold ".gold"}" 205 205 export AS="${targetCC.bintools.bintools}/bin/${targetCC.bintools.targetPrefix}as"
+1 -1
pkgs/development/compilers/ghc/head.nix
··· 205 205 # GHC is a bit confused on its cross terminology, as these would normally be 206 206 # the *host* tools. 207 207 export CC="${targetCC}/bin/${targetCC.targetPrefix}cc" 208 - export CXX="${targetCC}/bin/${targetCC.targetPrefix}cxx" 208 + export CXX="${targetCC}/bin/${targetCC.targetPrefix}c++" 209 209 # Use gold to work around https://sourceware.org/bugzilla/show_bug.cgi?id=16177 210 210 # and more generally have a faster linker. 211 211 export LD="${targetCC.bintools}/bin/${targetCC.bintools.targetPrefix}ld${lib.optionalString useLdGold ".gold"}"