git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #107944 from matthewbauer/tensorflow-no-sysctl

tensorflow1: disable sysctl.h in hwloc

commit299c95ac165e9e4c5e55788e02031a155e8f7723 authorMatthew Bauer <mjbauer95@gmail.com> dateThu 31 Dec 2020, 23:40 (6 years ago) parentd841f37a9ecac2
1 file changed+5
pkgs/development/python-modules/tensorflow/1/default.nix+5
pkgs/development/python-modules/tensorflow/1/default.nix+5
@@ -258,6 +258,11 @@ let
258258
259259 substituteInPlace tensorflow/tools/pip_package/setup.py \
260260 --replace "numpy >= 1.16.0, < 1.19.0" "numpy >= 1.16.0"
261+
262+ # glibc 2.31+ does not have sys/sysctl.h
263+ # see https://github.com/tensorflow/tensorflow/issues/45861
264+ substituteInPlace third_party/hwloc/BUILD.bazel\
265+ --replace "#define HAVE_SYS_SYSCTL_H 1" "#undef HAVE_SYS_SYSCTL_H"
261266 '';
262267
263268 preConfigure = let