Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Build nixpkgs with gcc 8 by default #53760

Merged
merged 64 commits into from
Feb 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
c55a655
gcc: bump default to version 8
fpletz Jan 10, 2019
d746fb8
libglvnd: fix build with gcc8
fpletz Jan 10, 2019
5a95030
libomxil-bellagio: fix build with gcc8
fpletz Jan 10, 2019
05bda14
dhcp: fix build with gcc8
fpletz Jan 10, 2019
80c04b8
iasl: 20181213 -> 20190108
fpletz Jan 17, 2019
2bf5d9d
pfixtools: fix build with gcc8
globin Jan 11, 2019
49f468e
blobfuse: fix build with gcc8
fpletz Jan 11, 2019
655936b
liboping: fix build with gcc8
fpletz Jan 11, 2019
924a26c
go_1_9: fix build with gcc8
fpletz Jan 11, 2019
9cc6ae3
getxbook: fix build with gcc8
fpletz Jan 11, 2019
9996a85
llvm: add patch to fix build with gcc8
globin Jan 11, 2019
ce212a5
libsepol: 2.7 -> 2.8
fpletz Jan 11, 2019
4c4edbb
libselinux: 2.7 -> 2.8
fpletz Jan 11, 2019
a5f7fce
setools: 2017-11-10 -> 4.2.0, fix build with gcc8
fpletz Jan 11, 2019
bb15e7c
telegram-cli: fix build with gcc8
fpletz Jan 11, 2019
25800e7
gfortran8: init
globin Jan 11, 2019
c841ae3
openocd: fix build with gcc8
fpletz Jan 11, 2019
a407c42
zookeeper_mt: fix build with gcc8
fpletz Jan 11, 2019
e35e1b6
glibc: fix withGd build with gcc8
globin Jan 11, 2019
6742a49
libextractor: fix build with gcc8
fpletz Jan 11, 2019
38bd7c2
netsurf.libwapcaplet: fix build with gcc8
globin Jan 11, 2019
ebaebb6
nginx: fix build with gcc8
fpletz Jan 11, 2019
b056848
libfaketime: fix build with gcc8
globin Jan 11, 2019
4dfa6c0
belle-sip: fix build with gcc8
fpletz Jan 11, 2019
5ccf94a
libdynd: fix build with gcc8
globin Jan 11, 2019
6e226c1
vtk: 7.0.0 -> 7.1.1
globin Jan 11, 2019
26844ad
bzrtp: fix build with gcc8
globin Jan 11, 2019
3ac0d54
edk2: fix build with gcc8
globin Jan 11, 2019
5edbf04
mxnet: 1.2.1 -> 1.3.1
globin Jan 11, 2019
747370f
aerospike: fix build with gcc8
lheckemann Jan 11, 2019
5aa6633
mmc-utils: 2018-03-27 -> 2018-12-14
globin Jan 11, 2019
58460bd
chez: fix build with gcc8
globin Jan 11, 2019
e8870e4
altermime: fix build with gcc8
lheckemann Jan 11, 2019
a84cd67
bip: fix build with gcc8
lheckemann Jan 11, 2019
f8b1b8a
cpp-gsl: unstable -> 2.0.0
lheckemann Jan 11, 2019
e5b2888
gem-config: fix grpc build with gcc8
fpletz Jan 11, 2019
7170492
xbps: fix build with gcc8
fpletz Jan 11, 2019
a97afd6
imgcat: fix build with gcc8
fpletz Jan 11, 2019
ebe500e
linbox: fix build with gcc8
fpletz Jan 11, 2019
c1e29f2
uri: 2017-07-16 -> 1.1.0, fix build with gcc8
fpletz Jan 11, 2019
b47e433
leatherman: 1.5.3 -> 1.5.4, fix build with gcc8
fpletz Jan 11, 2019
15facda
trinity: 2018-06-08 -> 2018-09-21, fix build with gcc8
fpletz Jan 11, 2019
1fce5f1
libwhereami: 0.2.0 -> 0.2.2, fix build with gcc8
fpletz Jan 11, 2019
b169898
cpp-hocon: fix build with gcc8
fpletz Jan 11, 2019
a1d4b2f
telegram-purple: 1.3.0 -> 1.3.1, fix gcc8 build
fpletz Jan 11, 2019
0607122
libmaa: fix build with gcc8
globin Jan 11, 2019
5a7f2c5
facter: fix build with gcc8
fpletz Jan 11, 2019
9fcdc3e
zeroc_ice: fix build with gcc8
fpletz Jan 11, 2019
c1b8f13
mediastreamer2: fix build with gcc8
globin Jan 11, 2019
bbc4d48
papi: fix build with gcc8
fpletz Jan 11, 2019
02db549
mesos: fix build with gcc8
globin Jan 15, 2019
17cf8e6
emscripten: 1.37.36 -> 1.38.22
globin Jan 15, 2019
72e5ed7
mps: fix build with gcc8
globin Jan 15, 2019
57b89bd
qpid-cpp: fix build with gcc8
globin Jan 15, 2019
d268433
smpeg: fix build with gcc8
fpletz Jan 17, 2019
6823be6
agg: fix build with gcc8
fpletz Jan 17, 2019
d8800a2
chaps: fix build with gcc8
fpletz Jan 17, 2019
6a5d713
libselinux: use PYTHONLIBDIR instead of manual copy
fpletz Jan 17, 2019
de327ec
ants: fix build with gcc8
fpletz Jan 17, 2019
e5acf15
gnuapl: fix build with gcc8
fpletz Jan 17, 2019
4ebf071
gnuclad: fix build with gcc8
fpletz Jan 17, 2019
dc7f8cd
darling-dmg: 1.0.4 -> 1.0.4+git20180914
fpletz Jan 17, 2019
b20d37e
tengine: fix build with gcc8
fpletz Jan 17, 2019
f959c99
mxnet: fix build with gcc8
fpletz Jan 17, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pkgs/applications/graphics/gnuclad/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ stdenv.mkDerivation rec {
sha256 = "0ka2kscpjff7gflsargv3r9fdaxhkf3nym9mfaln3pnq6q7fwdki";
};

NIX_CFLAGS_COMPILE = [ "-Wno-error=catch-value" ];

nativeBuildInputs = [ pkgconfig ];

meta = with stdenv.lib; {
Expand Down
2 changes: 2 additions & 0 deletions pkgs/applications/graphics/imgcat/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ stdenv.mkDerivation rec {
name = "imgcat-${version}";
version = "2.3.0";

NIX_CFLAGS_COMPILE = [ "-Wno-error=class-memaccess" ];

buildInputs = [ autoconf automake libtool ncurses ];

preConfigure = ''
Expand Down
2 changes: 2 additions & 0 deletions pkgs/applications/misc/getxbook/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ stdenv.mkDerivation rec {
sha256 = "0ihwrx4gspj8l7fc8vxch6dpjrw1lvv9z3c19f0wxnmnxhv1cjvs";
};

NIX_CFLAGS_COMPILE = [ "-Wno-error=format-truncation" ];

buildInputs = [ openssl ];

makeFlags = [ "PREFIX=$(out)" ];
Expand Down
2 changes: 2 additions & 0 deletions pkgs/applications/misc/netsurf/libwapcaplet/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ stdenv.mkDerivation rec {
"NSSHARED=${buildsystem}/share/netsurf-buildsystem"
];

NIX_CFLAGS_COMPILE = "-Wno-error=cast-function-type";

meta = with stdenv.lib; {
homepage = http://www.netsurf-browser.org/;
description = "String internment library for netsurf browser";
Expand Down
3 changes: 3 additions & 0 deletions pkgs/applications/networking/cluster/mesos/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ in stdenv.mkDerivation rec {
propagatedBuildInputs = [
pythonProtobuf
];

NIX_CFLAGS_COMPILE = "-Wno-error=format-overflow -Wno-error=class-memaccess";

preConfigure = ''
# https://issues.apache.org/jira/browse/MESOS-6616
configureFlagsArray+=(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
{ stdenv, fetchgit, pkgconfig, pidgin, libwebp, libgcrypt, gettext } :

let
version = "1.3.0";
version = "1.3.1";
in
stdenv.mkDerivation rec {
name = "telegram-purple-${version}";

src = fetchgit {
url = "https://github.com/majn/telegram-purple";
rev = "0340e4f14b2480782db4e5b9242103810227c522";
sha256 = "1xb7hrgisbpx00dsrm5yz934bdd7nfzicd7k855iynk3hjzqj7k5";
rev = "v${version}";
sha256 = "0p93jpjpx7hszwffzgixw04zkrpsiyzz4za3gfr4j07krc4771fp";
};

NIX_CFLAGS_COMPILE = [ "-Wno-error=cast-function-type" ];

nativeBuildInputs = [ pkgconfig ];
buildInputs = [ pidgin libwebp libgcrypt gettext ];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ stdenv.mkDerivation rec {
rev = "6547c0b21b977b327b3c5e8142963f4bc246187a";
};

NIX_CFLAGS_COMPILE = [ "-Wno-error=cast-function-type" ];

buildInputs = [
libconfig libevent openssl readline zlib
lua5_2 python pkgconfig jansson
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/networking/irc/bip/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
})
];

NIX_CFLAGS_COMPILE = [ "-Wno-error=unused-result" "-Wno-error=duplicate-decl-specifier" ];
NIX_CFLAGS_COMPILE = [ "-Wno-error=unused-result" "-Wno-error=duplicate-decl-specifier" "-Wno-error=format-truncation" ];

meta = {
description = "An IRC proxy (bouncer)";
Expand Down
10 changes: 9 additions & 1 deletion pkgs/applications/science/biology/ants/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, makeWrapper, itk, vtk }:
{ stdenv, fetchFromGitHub, fetchpatch, cmake, makeWrapper, itk, vtk }:

stdenv.mkDerivation rec {
_name = "ANTs";
Expand All @@ -12,6 +12,14 @@ stdenv.mkDerivation rec {
sha256 = "1hrdwv3m9xh3yf7l0rm2ggxc2xzckfb8srs88g485ibfszx7i03q";
};

patches = [
# Fix build with gcc8
(fetchpatch {
url = "https://github.com/ANTsX/ANTs/commit/89af9b2694715bf8204993e032fa132f80cf37bd.patch";
sha256 = "1glkrwa1jmxxbmzihycxr576azjqby31jwpj165qc54c91pn0ams";
})
];

nativeBuildInputs = [ cmake makeWrapper ];
buildInputs = [ itk vtk ];

Expand Down
24 changes: 12 additions & 12 deletions pkgs/applications/science/math/mxnet/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, lib, fetchurl, bash, cmake
{ stdenv, lib, fetchgit, bash, cmake, pkgconfig
, opencv, gtest, openblas, liblapack, perl
, cudaSupport ? false, cudatoolkit, nvidia_x11
, cudnnSupport ? false, cudnn
Expand All @@ -8,24 +8,22 @@ assert cudnnSupport -> cudaSupport;

stdenv.mkDerivation rec {
name = "mxnet-${version}";
version = "1.2.1";

# Fetching from git does not work at the time (1.2.1) due to an
# incorrect hash in one of the submodules. The provided tarballs
# contain all necessary sources.
src = fetchurl {
url = "https://github.com/apache/incubator-mxnet/releases/download/${version}/apache-mxnet-src-${version}-incubating.tar.gz";
sha256 = "053zbdgs4j8l79ipdz461zc7wyfbfcflmi5bw7lj2q08zm1glnb2";
version = "1.3.1";

src = fetchgit {
url = "https://github.com/apache/incubator-mxnet";
rev = "1.3.1";
sha256 = "06vk4q7bh17sjhnr72bzmggcqlp2injnsah5yflklg360p7vpijj";
};

nativeBuildInputs = [ cmake perl ];
nativeBuildInputs = [ cmake perl pkgconfig ];

buildInputs = [ opencv gtest openblas liblapack ]
++ lib.optionals cudaSupport [ cudatoolkit nvidia_x11 ]
++ lib.optional cudnnSupport cudnn;

cmakeFlags =
(if cudaSupport then [
cmakeFlags = [ "-DBLAS=open" "-DUSE_MKLDNN=0" ]
++ (if cudaSupport then [
"-DCUDA_ARCH_NAME=All"
"-DCUDA_HOST_COMPILER=${cudatoolkit.cc}/bin/cc"
] else [ "-DUSE_CUDA=OFF" ])
Expand All @@ -44,6 +42,8 @@ stdenv.mkDerivation rec {
rm "$out"/lib/*.a
'';

NIX_CFLAGS_COMPILE = "-Wno-error=format-truncation";

enableParallelBuilding = true;

meta = with stdenv.lib; {
Expand Down
10 changes: 5 additions & 5 deletions pkgs/development/compilers/binaryen/default.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{ stdenv, cmake, fetchFromGitHub, emscriptenRev ? null }:
{ stdenv, cmake, fetchFromGitHub, python3, emscriptenRev ? null }:

let
defaultVersion = "45";
defaultVersion = "63";

# Map from git revs to SHA256 hashes
sha256s = {
"version_45" = "1wgzfzjjzkiaz0rf2lnwrcvlcsjvjhyvbyh58jxhqq43vi34zyjc";
"1.37.36" = "1wgzfzjjzkiaz0rf2lnwrcvlcsjvjhyvbyh58jxhqq43vi34zyjc";
"version_63" = "0qd6kxiaqrwm4hsxvx4z6nv20z4arnfr1ks4zjavnw0nzn1n6m3s";
"1.38.22" = "0qnkwyb9ylpk24gl5rdj526601z0p9wclg8rdx7b2bl1cydfa8sf";
};
in

Expand All @@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
inherit rev;
};

nativeBuildInputs = [ cmake ];
nativeBuildInputs = [ cmake python3 ];

meta = with stdenv.lib; {
homepage = https://github.com/WebAssembly/binaryen;
Expand Down
2 changes: 2 additions & 0 deletions pkgs/development/compilers/chez/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ stdenv.mkDerivation rec {

enableParallelBuilding = true;

NIX_CFLAGS_COMPILE = "-Wno-error=format-truncation";

/*
** We patch out a very annoying 'feature' in ./configure, which
** tries to use 'git' to update submodules.
Expand Down
1 change: 1 addition & 0 deletions pkgs/development/compilers/edk2/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ edk2 = stdenv.mkDerivation {
buildInputs = [ libuuid pythonEnv ];

makeFlags = "-C BaseTools";
NIX_CFLAGS_COMPILE = "-Wno-return-type -Wno-error=stringop-truncation";

hardeningDisable = [ "format" "fortify" ];

Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/compilers/emscripten/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ stdenv.mkDerivation {
src = fetchFromGitHub {
owner = "kripken";
repo = "emscripten";
sha256 = "02p0cp86vd1mydlpq544xbydggpnrq9dhbxx7h08j235frjm5cdc";
sha256 = "1z3mn9y3ila75yf2a111jqrhcb84cyp7wipyab5vc2yqp20ckjg1";
inherit rev;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ stdenv.mkDerivation rec {
src = fetchFromGitHub {
owner = "kripken";
repo = "emscripten-fastcomp";
sha256 = "04j698gmp686b5lricjakm5hyh2z2kh28m1ffkghmkyz4zkzmx98";
sha256 = "0dqy3g5khkvhfp8c8mxw28xrayzjm41dmvajjfyb98fj10jqjzhi";
inherit rev;
};

srcFL = fetchFromGitHub {
owner = "kripken";
repo = "emscripten-fastcomp-clang";
sha256 = "1ici51mmpgg80xk3y8f376nbbfak6rz27qdy98l8lxkrymklp5g5";
sha256 = "0hgag7dc0mk25nh8h8ji3vmq4g77r724xnsnjcvx0mvky2b0r3sc";
inherit rev;
};

Expand Down
2 changes: 2 additions & 0 deletions pkgs/development/compilers/go/1.9.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ stdenv.mkDerivation rec {
sha256 = "15dx1b71xv7b265gqk9nv02pirggpw7d83apikhrza2qkj64ydd0";
};

NIX_CFLAGS_COMPILE = [ "-Wno-error=stringop-truncation" ];

# perl is used for testing go vet
nativeBuildInputs = [ perl which pkgconfig patch procps ];
buildInputs = [ cacert pcre ]
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/compilers/iasl/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

stdenv.mkDerivation rec {
name = "iasl-${version}";
version = "20181213";
version = "20190108";

src = fetchurl {
url = "https://acpica.org/sites/acpica/files/acpica-unix-${version}.tar.gz";
sha256 = "1vgqlv9pvxc52faxixpgz7hi1awqmj88bw5vqn3bldf6fmkh147w";
sha256 = "0bqhr3ndchvfhxb31147z8gd81dysyz5dwkvmp56832d0js2564q";
};

NIX_CFLAGS_COMPILE = "-O3";
Expand Down
8 changes: 8 additions & 0 deletions pkgs/development/compilers/llvm/5/llvm.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{ stdenv
, fetch
, fetchpatch
, cmake
, python
, libffi
Expand Down Expand Up @@ -40,6 +41,13 @@ in stdenv.mkDerivation (rec {

propagatedBuildInputs = [ ncurses zlib ];

patches = [
(fetchpatch {
url = "https://bugzilla.redhat.com/attachment.cgi?id=1389687";
name = "llvm-gcc8-type-mismatch.patch";
sha256 = "0ga2123aclq3x9w72d0rm0az12m8c1i4r1106vh701hf4cghgbch";
})
];
postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
substituteInPlace cmake/modules/AddLLVM.cmake \
--replace 'set(_install_name_dir INSTALL_NAME_DIR "@rpath")' "set(_install_name_dir)" \
Expand Down
10 changes: 7 additions & 3 deletions pkgs/development/interpreters/gnu-apl/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@ stdenv.mkDerivation rec {

buildInputs = [ readline gettext ncurses ];

# Needed with GCC 7
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isGNU "-Wno-error=int-in-bool-context"
+ stdenv.lib.optionalString stdenv.cc.isClang "-Wno-error=null-dereference";
# Needed with GCC 8
NIX_CFLAGS_COMPILE = with stdenv.lib; (optionals stdenv.cc.isGNU [
"-Wno-error=int-in-bool-context"
"-Wno-error=class-memaccess"
"-Wno-error=restrict"
"-Wno-error=format-truncation"
]) ++ optional stdenv.cc.isClang "-Wno-error=null-dereference";

patchPhase = stdenv.lib.optionalString stdenv.isDarwin ''
substituteInPlace src/LApack.cc --replace "malloc.h" "malloc/malloc.h"
Expand Down
5 changes: 5 additions & 0 deletions pkgs/development/libraries/agg/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ autoconf automake libtool freetype SDL libX11 ];

postPatch = ''
substituteInPlace include/agg_renderer_outline_aa.h \
--replace 'line_profile_aa& profile() {' 'const line_profile_aa& profile() {'
'';

# fix build with new automake, from Gentoo ebuild
preConfigure = ''
sed -i '/^AM_C_PROTOTYPES/d' configure.in
Expand Down
9 changes: 7 additions & 2 deletions pkgs/development/libraries/belle-sip/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,20 @@ stdenv.mkDerivation rec {

buildInputs = [ zlib ];

NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
NIX_CFLAGS_COMPILE = [
"-Wno-error=deprecated-declarations"
"-Wno-error=format-truncation"
"-Wno-error=cast-function-type"
];

propagatedBuildInputs = [ antlr3_4 libantlr3c polarssl bctoolbox ];

configureFlags = [
"--with-polarssl=${polarssl}"
];

enableParallelBuilding = true;
# Fails to build with lots of parallel jobs
enableParallelBuilding = false;

meta = with stdenv.lib; {
homepage = http://www.linphone.org/index.php/eng;
Expand Down
2 changes: 2 additions & 0 deletions pkgs/development/libraries/bzrtp/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ stdenv.mkDerivation rec {
buildInputs = [ bctoolbox sqlite ];
nativeBuildInputs = [ cmake ];

NIX_CFLAGS_COMPILE = "-Wno-error=cast-function-type";

meta = with stdenv.lib; {
description = "BZRTP is an opensource implementation of ZRTP keys exchange protocol";
homepage = https://github.com/BelledonneCommunications/bzrtp;
Expand Down
11 changes: 7 additions & 4 deletions pkgs/development/libraries/cpp-gsl/default.nix
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
{ stdenv, fetchFromGitHub, cmake, catch }:

stdenv.mkDerivation rec {
pname = "GSL-unstable";
version = "2017-02-15";
pname = "GSL";
version = "2.0.0";
name = "${pname}-${version}";

src = fetchFromGitHub {
owner = "Microsoft";
repo = "GSL";
rev = "c87c123d1b3e64ae2cf725584f0c004da4d90f1c";
sha256 = "0h8py468bvxnydkjs352d7a9s8hk0ihc7msjkcnzj2d7nzp5nsc1";
rev = "v${version}";
sha256 = "1kxfca9ik934nkzyn34ingkyvwpc09li81cg1yc6vqcrdw51l4ri";
};

NIX_CFLAGS_COMPILE = "-Wno-error=sign-conversion";
postPatch = ''
sed -i 's/-Wno-unknown-attributes/-Wno-error=catch-value/' tests/CMakeLists.txt
'';
nativeBuildInputs = [ cmake catch ];

meta = with stdenv.lib; {
Expand Down
2 changes: 2 additions & 0 deletions pkgs/development/libraries/cpp-hocon/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ stdenv.mkDerivation rec {
owner = "puppetlabs";
};

NIX_CFLAGS_COMPILE = [ "-Wno-error=catch-value" ];

nativeBuildInputs = [ cmake ];

buildInputs = [ boost curl leatherman ];
Expand Down
2 changes: 2 additions & 0 deletions pkgs/development/libraries/glibc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ callPackage ./common.nix { inherit stdenv; } {
# limit rebuilds by only disabling pie w/musl
++ stdenv.lib.optional stdenv.hostPlatform.isMusl "pie";

NIX_CFLAGS_COMPILE = if withGd then "-Wno-error=stringop-truncation" else null;

# When building glibc from bootstrap-tools, we need libgcc_s at RPATH for
# any program we run, because the gcc will have been placed at a new
# store path than that determined when built (as a source for the
Expand Down
5 changes: 4 additions & 1 deletion pkgs/development/libraries/leatherman/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ stdenv.mkDerivation rec {
owner = "puppetlabs";
};

buildInputs = [ boost cmake curl ruby ];
NIX_CFLAGS_COMPILE = [ "-Wno-error=ignored-qualifiers" "-Wno-error=class-memaccess" "-Wno-error=catch-value" ];

nativeBuildInputs = [ cmake ];
buildInputs = [ boost curl ruby ];

enableParallelBuilding = true;

Expand Down
3 changes: 3 additions & 0 deletions pkgs/development/libraries/libdynd/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ stdenv.mkDerivation {
NIX_CFLAGS_COMPILE = [
"-Wno-error=implicit-fallthrough"
"-Wno-error=nonnull"
"-Wno-error=tautological-compare"
"-Wno-error=class-memaccess"
"-Wno-error=parentheses"
];

buildInputs = [ cmake ];
Expand Down
Loading