Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu 16.04 + CUDA8.0 +CUDNN5.1, C++ compilation fails #13267

Closed
a22063821 opened this issue Sep 24, 2017 · 1 comment
Closed

Ubuntu 16.04 + CUDA8.0 +CUDNN5.1, C++ compilation fails #13267

a22063821 opened this issue Sep 24, 2017 · 1 comment

Comments

@a22063821
Copy link

Operating System: Ubuntu 16.04 LTS

Installed version of CUDA and cuDNN: 8.0.61 + 5.1.10

-rw-r--r-- 1 root root   556000  9月 23 23:17 /usr/local/cuda/lib64/libcudadevrt.a
lrwxrwxrwx 1 root root       16  9月 23 23:17 /usr/local/cuda/lib64/libcudart.so -> libcudart.so.8.0
lrwxrwxrwx 1 root root       19  9月 23 23:17 /usr/local/cuda/lib64/libcudart.so.8.0 -> libcudart.so.8.0.61
-rwxr-xr-x 1 root root   415432  9月 23 23:17 /usr/local/cuda/lib64/libcudart.so.8.0.61
-rw-r--r-- 1 root root   775162  9月 23 23:17 /usr/local/cuda/lib64/libcudart_static.a
-rwxr-xr-x 1 root root 84163560  9月 23 23:35 /usr/local/cuda/lib64/libcudnn.so
-rwxr-xr-x 1 root root 84163560  9月 23 23:35 /usr/local/cuda/lib64/libcudnn.so.5
-rwxr-xr-x 1 root root 84163560  9月 23 23:35 /usr/local/cuda/lib64/libcudnn.so.5.1.10
-rw-r--r-- 1 root root 70364814  9月 23 23:35 /usr/local/cuda/lib64/libcudnn_static.a

Build label: 0.5.4
Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Fri Aug 25 10:00:00 2017 (1503655200)
Build timestamp: 1503655200
Build timestamp as int: 1503655200

source:https://github.com/ymgaq/AQ

I use command: "bazel build :AQ" compile it
error message have 52mb ,cant upload
The error message is similar

Loading: 
Loading: 0 packages loaded
WARNING: /home/jack/tensorflow/tensorflow/core/BUILD:1773: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 /home/jack/tensorflow/tensorflow/tensorflow.bzl:1029:30
INFO: Analysed target //AQ/src:AQ (0 packages loaded).
INFO: Found 1 target...
[0 / 2] BazelWorkspaceStatusAction stable-status.txt
[1 / 2] Linking AQ/src/AQ; 1s local
[1 / 2] Linking AQ/src/AQ; 11s local
ERROR: /home/jack/tensorflow/AQ/src/BUILD:1:1: Linking of rule '//AQ/src:AQ' failed (Exit 1)
bazel-out/local_linux-opt/bin/AQ/src/_objs/AQ/AQ/src/nueral_net.o: In function `std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, tensorflow::Tensor>::~pair()':
nueral_net.cpp:(.text._ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN10tensorflow6TensorEED2Ev[_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN10tensorflow6TensorEED5Ev]+0x15): undefined reference to `tensorflow::Tensor::~Tensor()'
bazel-out/local_linux-opt/bin/AQ/src/_objs/AQ/AQ/src/nueral_net.o: In function `tensorflow::TTypes<float, 2ul, long>::Tensor tensorflow::Tensor::tensor<float, 2ul>()':
nueral_net.cpp:(.text._ZN10tensorflow6Tensor6tensorIfLm2EEENS_6TTypesIT_XT0_ElE6TensorEv[_ZN10tensorflow6Tensor6tensorIfLm2EEENS_6TTypesIT_XT0_ElE6TensorEv]+0x20): undefined reference to `tensorflow::Tensor::CheckTypeAndIsAligned(tensorflow::DataType) const'
nueral_net.cpp:(.text._ZN10tensorflow6Tensor6tensorIfLm2EEENS_6TTypesIT_XT0_ElE6TensorEv[_ZN10tensorflow6Tensor6tensorIfLm2EEENS_6TTypesIT_XT0_ElE6TensorEv]+0x2d): undefined reference to `tensorflow::TensorShape::CheckDimsEqual(int) const'
nueral_net.cpp:(.text._ZN10tensorflow6Tensor6tensorIfLm2EEENS_6TTypesIT_XT0_ElE6TensorEv[_ZN10tensorflow6Tensor6tensorIfLm2EEENS_6TTypesIT_XT0_ElE6TensorEv]+0x3a): undefined reference to `tensorflow::TensorShape::CheckDimsAtLeast(int) const'
nueral_net.cpp:(.text._ZN10tensorflow6Tensor6tensorIfLm2EEENS_6TTypesIT_XT0_ElE6TensorEv[_ZN10tensorflow6Tensor6tensorIfLm2EEENS_6TTypesIT_XT0_ElE6TensorEv]+0x64): undefined reference to `tensorflow::TensorShapeBase<tensorflow::TensorShape>::dim_size(int) const'
bazel-out/local_linux-opt/bin/AQ/src/_objs/AQ/AQ/src/nueral_net.o: In function `void std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, tensorflow::Tensor>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, tensorflow::Tensor> > >::_M_assign_aux<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, tensorflow::Tensor> const*>(std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, tensorflow::Tensor> const*, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, tensorflow::Tensor> const*, std::forward_iterator_tag)':
nueral_net.cpp:(.text._ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN10tensorflow6TensorEESaIS9_EE13_M_assign_auxIPKS9_EEvT_SF_St20forward_iterator_tag[_ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN10tensorflow6TensorEESaIS9_EE13_M_assign_auxIPKS9_EEvT_SF_St20forward_iterator_tag]+0x90): undefined reference to `tensorflow::Tensor::CopyFromInternal(tensorflow::Tensor const&, tensorflow::TensorShape const&)'
nueral_net.cpp:(.text._ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN10tensorflow6TensorEESaIS9_EE13_M_assign_auxIPKS9_EEvT_SF_St20forward_iterator_tag[_ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN10tensorflow6TensorEESaIS9_EE13_M_assign_auxIPKS9_EEvT_SF_St20forward_iterator_tag]+0xb5): undefined reference to `tensorflow::Tensor::~Tensor()'
nueral_net.cpp:(.text._ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN10tensorflow6TensorEESaIS9_EE13_M_assign_auxIPKS9_EEvT_SF_St20forward_iterator_tag[_ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN10tensorflow6TensorEESaIS9_EE13_M_assign_auxIPKS9_EEvT_SF_St20forward_iterator_tag]+0x11f): undefined reference to `tensorflow::Tensor::CopyFromInternal(tensorflow::Tensor const&, tensorflow::TensorShape const&)'
nueral_net.cpp:(.text._ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN10tensorflow6TensorEESaIS9_EE13_M_assign_auxIPKS9_EEvT_SF_St20forward_iterator_tag[_ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN10tensorflow6TensorEESaIS9_EE13_M_assign_auxIPKS9_EEvT_SF_St20forward_iterator_tag]+0x226): undefined reference to `tensorflow::TensorShapeRep::SlowCopyFrom(tensorflow::TensorShapeRep const&)'
nueral_net.cpp:(.text._ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN10tensorflow6TensorEESaIS9_EE13_M_assign_auxIPKS9_EEvT_SF_St20forward_iterator_tag[_ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN10tensorflow6TensorEESaIS9_EE13_M_assign_auxIPKS9_EEvT_SF_St20forward_iterator_tag]+0x38d): undefined reference to `tensorflow::Tensor::~Tensor()'
nueral_net.cpp:(.text._ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN10tensorflow6TensorEESaIS9_EE13_M_assign_auxIPKS9_EEvT_SF_St20forward_iterator_tag[_ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN10tensorflow6TensorEESaIS9_EE13_M_assign_auxIPKS9_EEvT_SF_St20forward_iterator_tag]+0x400): undefined reference to `tensorflow::TensorShapeRep::SlowCopyFrom(tensorflow::TensorShapeRep const&)'
bazel-out/local_linux-opt/bin/AQ/src/_objs/AQ/AQ/src/nueral_net.o: In function `PolicyNet(tensorflow::Session*, std::vector<FeedTensor, std::allocator<FeedTensor> >&, std::vector<std::array<double, 441ul>, std::allocator<std::array<double, 441ul> > >&, double, int)':
nueral_net.cpp:(.text._Z9PolicyNetPN10tensorflow7SessionERSt6vectorI10FeedTensorSaIS3_EERS2_ISt5arrayIdLm441EESaIS8_EEdi+0xb6): undefined reference to `tensorflow::TensorShapeBase<tensorflow::TensorShape>::TensorShapeBase(tensorflow::gtl::ArraySlice<long long>)'
nueral_net.cpp:(.text._Z9PolicyNetPN10tensorflow7SessionERSt6vectorI10FeedTensorSaIS3_EERS2_ISt5arrayIdLm441EESaIS8_EEdi+0xd1): undefined reference to `tensorflow::Tensor::Tensor(tensorflow::DataType, tensorflow::TensorShape const&)'
nueral_net.cpp:(.text._Z9PolicyNetPN10tensorflow7SessionERSt6vectorI10FeedTensorSaIS3_EERS2_ISt5arrayIdLm441EESaIS8_EEdi+0xe3): undefined reference to `tensorflow::TensorShapeRep::DestructorOutOfLine()'
nueral_net.cpp:(.text._Z9PolicyNetPN10tensorflow7SessionERSt6vectorI10FeedTensorSaIS3_EERS2_ISt5arrayIdLm441EESaIS8_EEdi+0xf7): undefined reference to `tensorflow::Tensor::CheckTypeAndIsAligned(tensorflow::DataType) const'
nueral_net.cpp:(.text._Z9PolicyNetPN10tensorflow7SessionERSt6vectorI10FeedTensorSaIS3_EERS2_ISt5arrayIdLm441EESaIS8_EEdi+0x104): undefined reference to `tensorflow::TensorShape::CheckDimsEqual(int) const'
nueral_net.cpp:(.text._Z9PolicyNetPN10tensorflow7SessionERSt6vectorI10FeedTensorSaIS3_EERS2_ISt5arrayIdLm441EESaIS8_EEdi+0x111): undefined reference to `tensorflow::TensorShape::CheckDimsAtLeast(int) const'
nueral_net.cpp:(.text._Z9PolicyNetPN10tensorflow7SessionERSt6vectorI10FeedTensorSaIS3_EERS2_ISt5arrayIdLm441EESaIS8_EEdi+0x146): undefined reference to `tensorflow::TensorShapeBase<tensorflow::TensorShape>::dim_size(int) const'
nueral_net.cpp:(.text._Z9PolicyNetPN10tensorflow7SessionERSt6vectorI10FeedTensorSaIS3_EERS2_ISt5arrayIdLm441EESaIS8_EEdi+0x1ee): undefined reference to `tensorflow::TensorShapeBase<tensorflow::TensorShape>::TensorShapeBase()'
nueral_net.cpp:(.text._Z9PolicyNetPN10tensorflow7SessionERSt6vectorI10FeedTensorSaIS3_EERS2_ISt5arrayIdLm441EESaIS8_EEdi+0x202): undefined reference to `tensorflow::Tensor::Tensor(tensorflow::DataType, tensorflow::TensorShape const&)'
functional_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.17+0x8f): undefined reference to `tensorflow::OpDefBuilder::Attr(tensorflow::StringPiece)'
functional_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.17+0xa3): undefined reference to `tensorflow::OpDefBuilder::Attr(tensorflow::StringPiece)'
functional_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.17+0xb7): undefined reference to `tensorflow::OpDefBuilder::Attr(tensorflow::StringPiece)'
functional_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.17+0xc6): undefined reference to `tensorflow::OpDefBuilder::SetShapeFn(tensorflow::Status (*)(tensorflow::shape_inference::InferenceContext*))'
functional_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.17+0xda): undefined reference to `tensorflow::OpDefBuilder::Doc(tensorflow::StringPiece)'
functional_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.17+0xe9): undefined reference to `tensorflow::register_op::OpDefBuilderReceiver::OpDefBuilderReceiver(tensorflow::register_op::OpDefBuilderWrapper<true> const&)'
functional_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.17+0x114): undefined reference to `tensorflow::OpDefBuilder::Input(tensorflow::StringPiece)'
functional_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.17+0x128): undefined reference to `tensorflow::OpDefBuilder::Input(tensorflow::StringPiece)'
functional_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.17+0x13c): undefined reference to `tensorflow::OpDefBuilder::Output(tensorflow::StringPiece)'
functional_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.17+0x150): undefined reference to `tensorflow::OpDefBuilder::Attr(tensorflow::StringPiece)'
functional_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.17+0x164): undefined reference to `tensorflow::OpDefBuilder::Attr(tensorflow::StringPiece)'
functional_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.17+0x178): undefined reference to `tensorflow::OpDefBuilder::Attr(tensorflow::StringPiece)'
functional_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.17+0x17f): undefined reference to `tensorflow::shape_inference::UnknownShape(tensorflow::shape_inference::InferenceContext*)'
functional_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.17+0x187): undefined reference to `tensorflow::OpDefBuilder::SetShapeFn(tensorflow::Status (*)(tensorflow::shape_inference::InferenceContext*))'
functional_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.17+0x19b): undefined reference to `tensorflow::OpDefBuilder::Doc(tensorflow::StringPiece)'
functional_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.17+0x1aa): undefined reference to `tensorflow::register_op::OpDefBuilderReceiver::OpDefBuilderReceiver(tensorflow::register_op::OpDefBuilderWrapper<true> const&)'
bazel-out/local_linux-opt/bin/tensorflow/core/libno_op_op_lib.lo(no_op.o): In function `__static_initialization_and_destruction_0(int, int) [clone .constprop.11]':
no_op.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.11+0x5c): undefined reference to `tensorflow::OpDefBuilder::OpDefBuilder(tensorflow::StringPiece)'
no_op.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.11+0x6b): undefined reference to `tensorflow::OpDefBuilder::SetShapeFn(tensorflow::Status (*)(tensorflow::shape_inference::InferenceContext*))'
no_op.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.11+0x7f): undefined reference to `tensorflow::OpDefBuilder::Doc(tensorflow::StringPiece)'
no_op.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.11+0x8e): undefined reference to `tensorflow::register_op::OpDefBuilderReceiver::OpDefBuilderReceiver(tensorflow::register_op::OpDefBuilderWrapper<true> const&)'
no_op.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.11+0x1bd): undefined reference to `tensorflow::OpDef::~OpDef()'
bazel-out/local_linux-opt/bin/tensorflow/core/libsendrecv_ops_op_lib.lo(sendrecv_ops.o): In function `__static_initialization_and_destruction_0(int, int) [clone .constprop.10]':
sendrecv_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.10+0x69): undefined reference to `tensorflow::OpDefBuilder::Input(tensorflow::StringPiece)'
sendrecv_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.10+0x7d): undefined reference to `tensorflow::OpDefBuilder::Attr(tensorflow::StringPiece)'
sendrecv_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.10+0x91): undefined reference to `tensorflow::OpDefBuilder::Attr(tensorflow::StringPiece)'
sendrecv_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.10+0xa5): undefined reference to `tensorflow::OpDefBuilder::Attr(tensorflow::StringPiece)'
sendrecv_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.10+0xb9): undefined reference to `tensorflow::OpDefBuilder::Attr(tensorflow::StringPiece)'
sendrecv_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.10+0xcd): undefined reference to `tensorflow::OpDefBuilder::Attr(tensorflow::StringPiece)'
bazel-out/local_linux-opt/bin/tensorflow/core/libsendrecv_ops_op_lib.lo(sendrecv_ops.o):sendrecv_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.10+0xe1): more undefined references to `tensorflow::OpDefBuilder::Attr(tensorflow::StringPiece)' follow
bazel-out/local_linux-opt/bin/tensorflow/core/libsendrecv_ops_op_lib.lo(sendrecv_ops.o): In function `__static_initialization_and_destruction_0(int, int) [clone .constprop.10]':
sendrecv_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.10+0xe9): undefined reference to `tensorflow::OpDefBuilder::SetIsStateful()'
sendrecv_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.10+0xf0): undefined reference to `tensorflow::shape_inference::UnknownShape(tensorflow::shape_inference::InferenceContext*)'
sendrecv_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.10+0xfb): undefined reference to `tensorflow::OpDefBuilder::SetShapeFn(tensorflow::Status (*)(tensorflow::shape_inference::InferenceContext*))'
sendrecv_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.10+0x10f): undefined reference to `tensorflow::OpDefBuilder::Doc(tensorflow::StringPiece)'
sendrecv_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.10+0x11e): undefined reference to `tensorflow::register_op::OpDefBuilderReceiver::OpDefBuilderReceiver(tensorflow::register_op::OpDefBuilderWrapper<true> const&)'
sendrecv_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.10+0x149): undefined reference to `tensorflow::OpDefBuilder::Output(tensorflow::StringPiece)'
sendrecv_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.10+0x15d): undefined reference to `tensorflow::OpDefBuilder::Attr(tensorflow::StringPiece)'
sendrecv_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.10+0x171): undefined reference to `tensorflow::OpDefBuilder::Attr(tensorflow::StringPiece)'
sendrecv_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.10+0x185): undefined reference to `tensorflow::OpDefBuilder::Attr(tensorflow::StringPiece)'
sendrecv_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.10+0x199): undefined reference to `tensorflow::OpDefBuilder::Attr(tensorflow::StringPiece)'
sendrecv_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.10+0x1ad): undefined reference to `tensorflow::OpDefBuilder::Attr(tensorflow::StringPiece)'
bazel-out/local_linux-opt/bin/tensorflow/core/libsendrecv_ops_op_lib.lo(sendrecv_ops.o):sendrecv_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.10+0x1c1): more undefined references to `tensorflow::OpDefBuilder::Attr(tensorflow::StringPiece)' follow
bazel-out/local_linux-opt/bin/tensorflow/core/libsendrecv_ops_op_lib.lo(sendrecv_ops.o): In function `__static_initialization_and_destruction_0(int, int) [clone .constprop.10]':
sendrecv_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.10+0x1c9): undefined reference to `tensorflow::OpDefBuilder::SetIsStateful()'
sendrecv_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.10+0x1d4): undefined reference to `tensorflow::OpDefBuilder::SetShapeFn(tensorflow::Status (*)(tensorflow::shape_inference::InferenceContext*))'
sendrecv_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.10+0x1e8): undefined reference to `tensorflow::OpDefBuilder::Doc(tensorflow::StringPiece)'
sendrecv_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.10+0x1f7): undefined reference to `tensorflow::register_op::OpDefBuilderReceiver::OpDefBuilderReceiver(tensorflow::register_op::OpDefBuilderWrapper<true> const&)'
sendrecv_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.10+0x222): undefined reference to `tensorflow::OpDefBuilder::Input(tensorflow::StringPiece)'
sendrecv_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.10+0x236): undefined reference to `tensorflow::OpDefBuilder::Attr(tensorflow::StringPiece)'
sendrecv_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.10+0x24a): undefined reference to `tensorflow::OpDefBuilder::Attr(tensorflow::StringPiece)'
sendrecv_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.10+0x25e): undefined reference to `tensorflow::OpDefBuilder::Attr(tensorflow::StringPiece)'
sendrecv_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.10+0x272): undefined reference to `tensorflow::OpDefBuilder::Attr(tensorflow::StringPiece)'
sendrecv_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.10+0x286): undefined reference to `tensorflow::OpDefBuilder::Attr(tensorflow::StringPiece)'
bazel-out/local_linux-opt/bin/tensorflow/core/libsendrecv_ops_op_lib.lo(sendrecv_ops.o):sendrecv_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.10+0x29a): more undefined references to `tensorflow::OpDefBuilder::Attr(tensorflow::StringPiece)' follow
bazel-out/local_linux-opt/bin/tensorflow/core/libsendrecv_ops_op_lib.lo(sendrecv_ops.o): In function `__static_initialization_and_destruction_0(int, int) [clone .constprop.10]':
sendrecv_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.10+0x2a2): undefined reference to `tensorflow::OpDefBuilder::SetIsStateful()'
sendrecv_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.10+0x2ad): undefined reference to `tensorflow::OpDefBuilder::SetShapeFn(tensorflow::Status (*)(tensorflow::shape_inference::InferenceContext*))'
sendrecv_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.10+0x2c1): undefined reference to `tensorflow::OpDefBuilder::Doc(tensorflow::StringPiece)'
sendrecv_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.10+0x2d0): undefined reference to `tensorflow::register_op::OpDefBuilderReceiver::OpDefBuilderReceiver(tensorflow::register_op::OpDefBuilderWrapper<true> const&)'
sendrecv_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.10+0x2fb): undefined reference to `tensorflow::OpDefBuilder::Output(tensorflow::StringPiece)'
sendrecv_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.10+0x30f): undefined reference to `tensorflow::OpDefBuilder::Attr(tensorflow::StringPiece)'
sendrecv_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.10+0x323): undefined reference to `tensorflow::OpDefBuilder::Attr(tensorflow::StringPiece)'
sendrecv_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.10+0x337): undefined reference to `tensorflow::OpDefBuilder::Attr(tensorflow::StringPiece)'
sendrecv_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.10+0x34b): undefined reference to `tensorflow::OpDefBuilder::Attr(tensorflow::StringPiece)'
sendrecv_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.10+0x35f): undefined reference to `tensorflow::OpDefBuilder::Attr(tensorflow::StringPiece)'
bazel-out/local_linux-opt/bin/tensorflow/core/libsendrecv_ops_op_lib.lo(sendrecv_ops.o):sendrecv_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.10+0x373): more undefined references to `tensorflow::OpDefBuilder::Attr(tensorflow::StringPiece)' follow
bazel-out/local_linux-opt/bin/tensorflow/core/libsendrecv_ops_op_lib.lo(sendrecv_ops.o): In function `__static_initialization_and_destruction_0(int, int) [clone .constprop.10]':
sendrecv_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.10+0x37b): undefined reference to `tensorflow::OpDefBuilder::SetIsStateful()'
sendrecv_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.10+0x386): undefined reference to `tensorflow::OpDefBuilder::SetShapeFn(tensorflow::Status (*)(tensorflow::shape_inference::InferenceContext*))'
sendrecv_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.10+0x39a): undefined reference to `tensorflow::OpDefBuilder::Doc(tensorflow::StringPiece)'
sendrecv_ops.cc:(.text.startup._Z41__static_initialization_and_destruction_0ii.constprop.10+0x3a9): undefined reference to `tensorflow::register_op::OpDefBuilderReceiver::OpDefBuilderReceiver(tensorflow::register_op::OpDefBuilderWrapper<true> const&)'
bazel-out/local_linux-opt/bin/tensorflow/core/libcore_cpu_base.lo(algorithm.o): In function `tensorflow::DFS(tensorflow::Graph const&, std::function<void (tensorflow::Node*)> const&, std::function<void (tensorflow::Node*)> const&)':
algorithm.cc:(.text._ZN10tensorflow3DFSERKNS_5GraphERKSt8functionIFvPNS_4NodeEEES9_+0x223): undefined reference to `tensorflow::Node::out_nodes() const'
bazel-out/local_linux-opt/bin/tensorflow/core/libcore_cpu_base.lo(algorithm.o): In function `tensorflow::FixupSourceAndSinkEdges(tensorflow::Graph*)':
algorithm.cc:(.text._ZN10tensorflow23FixupSourceAndSinkEdgesEPNS_5GraphE+0x29): undefined reference to `tensorflow::Graph::kControlSlot'
algorithm.cc:(.text._ZN10tensorflow23FixupSourceAndSinkEdgesEPNS_5GraphE+0x102): undefined reference to `tensorflow::Graph::AddEdge(tensorflow::Node*, int, tensorflow::Node*, int)'
algorithm.cc:(.text._ZN10tensorflow23FixupSourceAndSinkEdgesEPNS_5GraphE+0x135): undefined reference to `tensorflow::Graph::kControlSlot'
algorithm.cc:(.text._ZN10tensorflow23FixupSourceAndSinkEdgesEPNS_5GraphE+0x146): undefined reference to `tensorflow::Graph::AddEdge(tensorflow::Node*, int, tensorflow::Node*, int)'
bazel-out/local_linux-opt/bin/tensorflow/core/libcore_cpu_base.lo(algorithm.o): In function `tensorflow::PruneForReverseReachability(tensorflow::Graph*, std::unordered_set<tensorflow::Node const*, std::hash<tensorflow::Node const*>, std::equal_to<tensorflow::Node const*>, std::allocator<tensorflow::Node const*> >)':
algorithm.cc:(.text._ZN10tensorflow27PruneForReverseReachabilityEPNS_5GraphESt13unordered_setIPKNS_4NodeESt4hashIS5_ESt8equal_toIS5_ESaIS5_EE+0x157): undefined reference to `tensorflow::Node::name[abi:cxx11]() const'
algorithm.cc:(.text._ZN10tensorflow27PruneForReverseReachabilityEPNS_5GraphESt13unordered_setIPKNS_4NodeESt4hashIS5_ESt8equal_toIS5_ESaIS5_EE+0x27b): undefined reference to `tensorflow::Node::in_nodes() const'
algorithm.cc:(.text._ZN10tensorflow27PruneForReverseReachabilityEPNS_5GraphESt13unordered_setIPKNS_4NodeESt4hashIS5_ESt8equal_toIS5_ESaIS5_EE+0x42d): undefined reference to `tensorflow::Node::name[abi:cxx11]() const'
algorithm.cc:(.text._ZN10tensorflow27PruneForReverseReachabilityEPNS_5GraphESt13unordered_setIPKNS_4NodeESt4hashIS5_ESt8equal_toIS5_ESaIS5_EE+0x440): undefined reference to `tensorflow::Node::name[abi:cxx11]() const'
algorithm.cc:(.text._ZN10tensorflow27PruneForReverseReachabilityEPNS_5GraphESt13unordered_setIPKNS_4NodeESt4hashIS5_ESt8equal_toIS5_ESaIS5_EE+0x6d5): undefined reference to `tensorflow::Graph::RemoveNode(tensorflow::Node*)'
bazel-out/local_linux-opt/bin/tensorflow/core/libcore_cpu_base.lo(tensor_id.o): In function `tensorflow::ParseTensorName(tensorflow::StringPiece)':
tensor_id.cc:(.text._ZN10tensorflow15ParseTensorNameENS_11StringPieceE+0x89): undefined reference to `tensorflow::Graph::kControlSlot'
bazel-out/local_linux-opt/bin/tensorflow/core/libcore_cpu_base.lo(validate.o): In function `tensorflow::graph::ValidateGraphDef(tensorflow::GraphDef const&, tensorflow::OpRegistryInterface const&)':
validate.cc:(.text._ZN10tensorflow5graph16ValidateGraphDefERKNS_8GraphDefERKNS_19OpRegistryInterfaceE+0x13): undefined reference to `tensorflow::_VersionDef_default_instance_'
validate.cc:(.text._ZN10tensorflow5graph16ValidateGraphDefERKNS_8GraphDefERKNS_19OpRegistryInterfaceE+0x7a): undefined reference to `tensorflow::OpRegistryInterface::LookUpOpDef(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, tensorflow::OpDef const**) const'
validate.cc:(.text._ZN10tensorflow5graph16ValidateGraphDefERKNS_8GraphDefERKNS_19OpRegistryInterfaceE+0x92): undefined reference to `tensorflow::ValidateNodeDef(tensorflow::NodeDef const&, tensorflow::OpDef const&)'
validate.cc:(.text._ZN10tensorflow5graph16ValidateGraphDefERKNS_8GraphDefERKNS_19OpRegistryInterfaceE+0xaa): undefined reference to `tensorflow::CheckOpDeprecation(tensorflow::OpDef const&, int)'
bazel-out/local_linux-opt/bin/tensorflow/core/util/tensor_bundle/libnaming.a(naming.o): In function `tensorflow::MetaFilename[abi:cxx11](tensorflow::StringPiece)':
naming.cc:(.text._ZN10tensorflow12MetaFilenameB5cxx11ENS_11StringPieceE+0x19): undefined reference to `tensorflow::strings::Printf[abi:cxx11](char const*, ...)'
bazel-out/local_linux-opt/bin/tensorflow/core/util/tensor_bundle/libnaming.a(naming.o): In function `tensorflow::DataFilename[abi:cxx11](tensorflow::StringPiece, int, int)':
naming.cc:(.text._ZN10tensorflow12DataFilenameB5cxx11ENS_11StringPieceEii+0x1f): undefined reference to `tensorflow::strings::Printf[abi:cxx11](char const*, ...)'
collect2: error: ld returned 1 exit status
Target //AQ/src:AQ failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 18.153s, Critical Path: 17.81s
FAILED: Build did NOT complete successfully
@allenlavoie
Copy link
Member

You'll need to build with --config=monolithic, or get the maintainer to start using TensorFlow's tf_cc_test/tf_cc_binary rules. We've started building with an explicit shared object, and Bazel will not (yet) link those in transitively.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants