text tensorflow构建错误

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text tensorflow构建错误相关的知识,希望对你有一定的参考价值。

WARNING: /private/var/tmp/_bazel_laidehe/779ec2530eca0e36b0c5cc709c3b71e8/external/protobuf_archive/WORKSPACE:1: Workspace name in /private/var/tmp/_bazel_laidehe/779ec2530eca0e36b0c5cc709c3b71e8/external/protobuf_archive/WORKSPACE (@com_google_protobuf) does not match the name given in the repository's definition (@protobuf_archive); this will cause a build error in future versions
WARNING: /Users/laidehe/tensorflow-build-from-source/tensorflow/core/BUILD:1865:1: in includes attribute of cc_library rule //tensorflow/core:framework_headers_lib: '../../external/nsync/public' resolves to 'external/nsync/public' not below the relative path of its package 'tensorflow/core'. This will be an error in the future. Since this rule was created by the macro 'cc_header_only_library', the error might have been caused by the macro implementation in /Users/laidehe/tensorflow-build-from-source/tensorflow/tensorflow.bzl:1163:30
WARNING: /Users/laidehe/tensorflow-build-from-source/tensorflow/core/BUILD:1865:1: in includes attribute of cc_library rule //tensorflow/core:framework_headers_lib: '../../external/nsync/public' resolves to 'external/nsync/public' not below the relative path of its package 'tensorflow/core'. This will be an error in the future. Since this rule was created by the macro 'cc_header_only_library', the error might have been caused by the macro implementation in /Users/laidehe/tensorflow-build-from-source/tensorflow/tensorflow.bzl:1163:30
WARNING: /private/var/tmp/_bazel_laidehe/779ec2530eca0e36b0c5cc709c3b71e8/external/grpc/WORKSPACE:1: Workspace name in /private/var/tmp/_bazel_laidehe/779ec2530eca0e36b0c5cc709c3b71e8/external/grpc/WORKSPACE (@com_github_grpc_grpc) does not match the name given in the repository's definition (@grpc); this will cause a build error in future versions
WARNING: /Users/laidehe/tensorflow-build-from-source/tensorflow/contrib/learn/BUILD:15:1: in py_library rule //tensorflow/contrib/learn:learn: target '//tensorflow/contrib/learn:learn' depends on deprecated target '//tensorflow/contrib/session_bundle:exporter': No longer supported. Switch to SavedModel immediately.
WARNING: /Users/laidehe/tensorflow-build-from-source/tensorflow/contrib/learn/BUILD:15:1: in py_library rule //tensorflow/contrib/learn:learn: target '//tensorflow/contrib/learn:learn' depends on deprecated target '//tensorflow/contrib/session_bundle:gc': No longer supported. Switch to SavedModel immediately.
INFO: Analysed target //tensorflow/tools/pip_package:build_pip_package (0 packages loaded).
INFO: Found 1 target...
ERROR: /Users/laidehe/tensorflow-build-from-source/tensorflow/contrib/lite/toco/BUILD:99:1: C++ compilation of rule '//tensorflow/contrib/lite/toco:toco_graphviz_dump_options' failed (Exit 1): cc_wrapper.sh failed: error executing command
  (cd /private/var/tmp/_bazel_laidehe/779ec2530eca0e36b0c5cc709c3b71e8/execroot/org_tensorflow && \
  exec env - \
    PATH=/opt/local/bin:/opt/local/sbin:/Users/laidehe/tools/sbt//bin:/Users/laidehe/hive//bin:/Users/laidehe/hadoop//sbin:/Users/laidehe/hadoop//bin:/Users/laidehe/spark/bin:/Users/laidehe/scala/bin:/Users/laidehe/tools/maven/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin \
    PWD=/proc/self/cwd \
    PYTHON_BIN_PATH=/usr/bin/python \
    PYTHON_LIB_PATH=/Library/Python/2.7/site-packages \
    TF_NEED_CUDA=0 \
    TF_NEED_OPENCL_SYCL=0 \
  external/local_config_cc/cc_wrapper.sh -U_FORTIFY_SOURCE -fstack-protector -Wall -Wthread-safety -Wself-assign -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections -fdata-sections -DGEMMLOWP_ALLOW_SLOW_SCALAR_FALLBACK y '-std=c++0x' -MD -MF bazel-out/darwin-opt/bin/tensorflow/contrib/lite/toco/_objs/toco_graphviz_dump_options/tensorflow/contrib/lite/toco/toco_graphviz_dump_options.d '-frandom-seed=bazel-out/darwin-opt/bin/tensorflow/contrib/lite/toco/_objs/toco_graphviz_dump_options/tensorflow/contrib/lite/toco/toco_graphviz_dump_options.o' -iquote . -iquote bazel-out/darwin-opt/genfiles -iquote external/bazel_tools -iquote bazel-out/darwin-opt/genfiles/external/bazel_tools -isystem external/bazel_tools/tools/cpp/gcc3 -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c tensorflow/contrib/lite/toco/toco_graphviz_dump_options.cc -o bazel-out/darwin-opt/bin/tensorflow/contrib/lite/toco/_objs/toco_graphviz_dump_options/tensorflow/contrib/lite/toco/toco_graphviz_dump_options.o)
gcc: error: y: No such file or directory
gcc: error: unrecognized command line option '-Wthread-safety'
gcc: error: unrecognized command line option '-Wself-assign'
Target //tensorflow/tools/pip_package:build_pip_package failed to build
INFO: Elapsed time: 0.551s, Critical Path: 0.06s
FAILED: Build did NOT complete successfully
laidehe:tensorflow-build-from-source laidehe$

以上是关于text tensorflow构建错误的主要内容,如果未能解决你的问题,请参考以下文章

Tensorflow 构建量化工具 - bazel 构建错误

RNN 模型错误:“ValueError:此模型尚未构建。”

从源代码构建 Tensorflow 时,编译是从头开始还是在修复错误后恢复?

nvcc 错误:使用 bazel 构建 tensorflow 时,'cicc' 以状态 0xC0000005 (ACCESS_VIOLATION) 死亡

在Ubuntu中构建的Tensorflow MKL-DNN会默默地产生错误结果

TensorFlow 从源代码构建,不能包含贡献