之前利用bazel build tensorflow/examples/image_retraining:retrain,出现Error
ERROR: missing input file ‘//third_party/mpi:mpicxx.h’.
ERROR: /home/py/tensorflow/tensorflow/core/kernels/BUILD:1520:1: C++ compilation of rule ‘//tensorflow/core/kernels:padding_fifo_queue’ failed: crosstool_wrapper_driver_is_not_gcc failed: error executing command external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -U_FORTIFY_SOURCE ‘-D_FORTIFY_SOURCE=1’ -fstack-protector -fPIE -Wall -Wunused-but-set-parameter … (remaining 120 argument(s) skipped): com.google.devtools.build.lib.shell.AbnormalTerminationException: Process terminated by signal 15.
ERROR: /home/py/tensorflow/third_party/mpi/BUILD:18:1: //third_party/mpi:mpi: missing input file ‘//third_party/mpi:mpicxx.h’.
Target //tensorflow/examples/image_retraining:retrain failed to build
Use –verbose_failures to see the command lines of failed build steps.
ERROR: /home/py/tensorflow/third_party/mpi/BUILD:18:1 1 input file(s) do not exist.
目前看来好像MPI缺少文件,待解决
解决:进入tensorflow/third_party/mpi发现所有缺少的文件都在,双击mpicxx.h后显示失去链接,才发现mpi安装目录和tensorflow的不一样,后来将文件复制放在third_party里面,问题解决