3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #107944 from matthewbauer/tensorflow-no-sysctl

tensorflow1: disable sysctl.h in hwloc
This commit is contained in:
Matthew Bauer 2020-12-31 23:40:14 -06:00 committed by GitHub
commit 299c95ac16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -258,6 +258,11 @@ let
substituteInPlace tensorflow/tools/pip_package/setup.py \
--replace "numpy >= 1.16.0, < 1.19.0" "numpy >= 1.16.0"
# glibc 2.31+ does not have sys/sysctl.h
# see https://github.com/tensorflow/tensorflow/issues/45861
substituteInPlace third_party/hwloc/BUILD.bazel\
--replace "#define HAVE_SYS_SYSCTL_H 1" "#undef HAVE_SYS_SYSCTL_H"
'';
preConfigure = let