tensorflow: Tensorflow 2.0 - bazel build from source fails (can't exec cc1plus)
System information System: Gentoo Tensorflow 2.0, 1.14 Python 3.6 Installed from source Bazel 0.26.1 GCC 8.3.0, 7.4.0 (both fails, both have c++ installed - /usr/libexec/gcc/x86_64-pc-linux-gnu/8.3.0/cc1plus) CUDA 10.1 CuDNN 7.6.4
# bazel build --config=v2 //tensorflow/tools/pip_package:build_pip_package
...
INFO: Analyzed target //tensorflow/tools/pip_package:build_pip_package (278 packages loaded, 21924 targets configured).
INFO: Found 1 target...
ERROR: /w/pip/.cache/bazel/_bazel_pip/667008e4969ed3eba4f1f491903cb254/external/com_google_protobuf/BUILD:106:1: C++ compilation of rule '@com_google_protobuf//:protobuf_lite' failed (Exit 1)
gcc: error trying to exec 'cc1plus': execvp: No such file or directory
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
g++ is installed on system…
# g++ --print-prog-name=cc1plus
/usr/libexec/gcc/x86_64-pc-linux-gnu/8.3.0/cc1plus
Please help, I get the same error for every other release.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 18 (2 by maintainers)
Adding @perfinion in case he or SIG Build can help