bazel-genfiles/ and *.pb.h not been generated with bazel-building tensorflow2.4.1 from source #53381
Labels
stat:awaiting response
Status - Awaiting response from author
subtype:bazel
Bazel related Build_Installation issues
TF 2.4
for issues related to TF 2.4
type:build/install
Build and install issues
System information
I want to build tensorflow c++ api with bazel, no errors were reported during bazel-build process .
the command I used:
bazel build --config=opt --config=cuda //tensorflow:libtensorflow_cc.so
however,while compiling a C++ program, I got the following error:
fatal error: tensorflow/core/framework/device_attributes.pb.h: No such file or directory #include "tensorflow/core/framework/device_attributes.pb.h" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated.
After that I checked the tensorflow/core/framework folder and found no *.pb.h files in it ,only some .proto files,(etc. device_attributes.proto ) . Not even the bazel-genfiles folder.
The *.pb.h files should be generated by protobuf , what's wrong with my protobuf ?
the protobuf version and url refer to workspace.bzl
I don't know how to solve it. Thanks for your help.
The text was updated successfully, but these errors were encountered: