我目前遇到编译TensorFlow的问题。看起来像下载某些软件包有问题,如here所述,但最后一次提到这个bug是在9月。怎么了?我只是克隆了最新的r1.5分支,运行./configure
并尝试编译。我正在使用cuda 9.1和cudnn 7。
bazel build --config=opt --config=cuda --config=mkl //tensorflow/tools/pip_package:build_pip_package
........
ERROR: /home/mv310/projects/tensorflow/tensorflow/tools/pip_package/BUILD:28:1: no such package 'third_party/eigen3': error globbing [**/*]: /home/mv310/projects/tensorflow/third_party/eigen3/mkl_include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include (Too many levels of symbolic links) and referenced by '//tensorflow/tools/pip_package:included_headers_gather'
ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted: no such package 'third_party/eigen3': error globbing [**/*]: /home/mv310/projects/tensorflow/third_party/eigen3/mkl_include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include/include (Too many levels of symbolic links)
INFO: Elapsed time: 10.798s
FAILED: Build did NOT complete successfully (37 packages loaded)
currently loading: tensorflow/core ... (11 packages)
答案 0 :(得分:2)
您可以尝试删除mkl_include dir并重新构建吗?
答案 1 :(得分:0)
我在模特项目中工作。我的问题是以前安装的剩余目录。删除目录并进行新的克隆有帮助。
rm -r -f models/research/syntaxnet/tensorflow
git pull --recurse
cd tensorflow
./configure
在tensorflow目录中,我认为你也可以隐藏你的更改并进行硬重置。
git stash
git reset --hard HEAD
最后,如果所有其他方法都失败了,请清理你的bazel缓存
rm -r -f ~/.cache/bazel/*