Skip to content

Error building tensorflow-gpu #104801

@locallycompact

Description

@locallycompact

Hi, I get this error when building tensorflowWithCuda.

ERROR: /build/output/external/hwloc/BUILD.bazel:229:1: C++ compilation of rule '@hwloc//:hwloc' failed (Exit 1)
[7,212 / 12,420] 31 actions running
    Compiling external/mkl_dnn/src/cpu/cpu_engine.cpp; 42s local
    @mkl_dnn//:mkldnn_single_threaded; 42s local
    @mkl_dnn//:mkldnn_single_threaded; 28s local
    @mkl_dnn//:mkldnn_single_threaded; 25s local
    Compiling external/mkl_dnn/src/cpu/cpu_reorder.cpp; 23s local
    Compiling external/mkl_dnn/src/cpu/rnn/ref_rnn.cpp; 14s local
    Compiling .../xla/service/cpu/runtime_single_threaded_conv2d.cc; 9s local
    Compiling .../service/cpu/runtime_single_threaded_matmul.cc; 9s local ...
external/hwloc/hwloc/topology.c:45:10: fatal error: sys/sysctl.h: No such file or directory
 #include <sys/sysctl.h>

Steps to reproduce:

nix-shell -p python37Packages.tensorflowWithCuda

Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions