Advertisement
Alpy

Bazel Error

Aug 18th, 2016
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.48 KB | None | 0 0
  1. .............................
  2. INFO: Waiting for response from Bazel server (pid 4367)...
  3. INFO: Found 1 target...
  4. ERROR: /home/alpy/tensorflow/tensorflow/cpp_api/BUILD:11:1: C++ compilation of rule '//tensorflow/cpp_api:conversion' failed: gcc failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -Wall -Wl,-z,-relro,-z,now -B/usr/bin -B/usr/bin -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer ... (remaining 114 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.
  5. In file included from ./tensorflow/core/platform/default/logging.h:23:0,
  6. from ./tensorflow/core/platform/logging.h:25,
  7. from ./tensorflow/core/lib/gtl/array_slice_internal.h:32,
  8. from ./tensorflow/core/lib/gtl/array_slice.h:101,
  9. from ./tensorflow/core/framework/types.h:33,
  10. from ./tensorflow/core/framework/type_traits.h:22,
  11. from ./tensorflow/core/framework/allocator.h:25,
  12. from ./tensorflow/core/framework/tensor.h:21,
  13. from ./tensorflow/core/public/session.h:23,
  14. from tensorflow/cpp_api/conversion.h:13,
  15. from tensorflow/cpp_api/conversion.cc:1:
  16. ./tensorflow/core/platform/default/logging.h: In instantiation of 'std::__cxx11::string* tensorflow::internal::Check_LTImpl(const T1&, const T2&, const char*) [with T1 = unsigned int; T2 = int; std::__cxx11::string = std::__cxx11::basic_string<char>]':
  17. ./tensorflow/core/framework/tensor_shape.h:204:5: required from here
  18. ./tensorflow/core/platform/default/logging.h:197:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  19. TF_DEFINE_CHECK_OP_IMPL(Check_LT, < )
  20. ^
  21. ./tensorflow/core/platform/macros.h:54:29: note: in definition of macro 'TF_PREDICT_TRUE'
  22. #define TF_PREDICT_TRUE(x) (x)
  23. ^
  24. ./tensorflow/core/platform/default/logging.h:197:1: note: in expansion of macro 'TF_DEFINE_CHECK_OP_IMPL'
  25. TF_DEFINE_CHECK_OP_IMPL(Check_LT, < )
  26. ^
  27. In file included from /usr/local/include/eigen3/unsupported/Eigen/CXX11/Tensor:127:0,
  28. from tensorflow/cpp_api/conversion.h:10,
  29. from tensorflow/cpp_api/conversion.cc:1:
  30. /usr/local/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorMap.h: In instantiation of 'Eigen::TensorMap<PlainObjectType, Options_>::Scalar& Eigen::TensorMap<PlainObjectType, Options_>::operator()(Eigen::TensorMap<PlainObjectType, Options_>::Index, Eigen::TensorMap<PlainObjectType, Options_>::Index, IndexTypes ...) [with IndexTypes = {int, int}; PlainObjectType = Eigen::Tensor<float, 2, 1, long int>; int Options_ = 16; Eigen::TensorMap<PlainObjectType, Options_>::Scalar = float; Eigen::TensorMap<PlainObjectType, Options_>::Index = long int]':
  31. tensorflow/cpp_api/conversion.cc:213:26: required from here
  32. /usr/local/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorMap.h:234:7: error: static assertion failed: Number of indices used to access a tensor coefficient must be equal to the rank of the tensor.
  33. static_assert(sizeof...(otherIndices) + 2 == NumIndices || NumIndices == Dynamic, "Number of indices used to access a tensor coefficient must be equal to the rank of the tensor.");
  34. ^
  35. /usr/local/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorMap.h:237:123: error: no matching function for call to 'Eigen::DSizes<long int, 2>::IndexOfRowMajor(Eigen::array<long int, 4ul>)'
  36. const Index index = m_dimensions.IndexOfRowMajor(array<Index, NumDims>{{firstIndex, secondIndex, otherIndices...}});
  37. ^
  38. In file included from /usr/local/include/eigen3/unsupported/Eigen/CXX11/Tensor:79:0,
  39. from tensorflow/cpp_api/conversion.h:10,
  40. from tensorflow/cpp_api/conversion.cc:1:
  41. /usr/local/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDimensions.h:328:52: note: candidate: DenseIndex Eigen::DSizes<DenseIndex, NumDims>::IndexOfRowMajor(Eigen::array<DenseIndex, NumDims>&) const [with DenseIndex = long int; int NumDims = 2; Eigen::array<DenseIndex, NumDims> = std::array<long int, 2ul>]
  42. EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE DenseIndex IndexOfRowMajor(const array<DenseIndex, NumDims>& indices) const {
  43. ^
  44. /usr/local/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDimensions.h:328:52: note: no known conversion for argument 1 from 'Eigen::array<long int, 4ul> {aka std::array<long int, 4ul>}' to 'Eigen::array<long int, 2ul>& {aka const std::array<long int, 2ul>&}'
  45. In file included from /usr/local/include/eigen3/unsupported/Eigen/CXX11/Tensor:127:0,
  46. from tensorflow/cpp_api/conversion.h:10,
  47. from tensorflow/cpp_api/conversion.cc:1:
  48. /usr/local/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorMap.h:240:123: error: no matching function for call to 'Eigen::DSizes<long int, 2>::IndexOfColMajor(Eigen::array<long int, 4ul>)'
  49. const Index index = m_dimensions.IndexOfColMajor(array<Index, NumDims>{{firstIndex, secondIndex, otherIndices...}});
  50. ^
  51. In file included from /usr/local/include/eigen3/unsupported/Eigen/CXX11/Tensor:79:0,
  52. from tensorflow/cpp_api/conversion.h:10,
  53. from tensorflow/cpp_api/conversion.cc:1:
  54. /usr/local/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDimensions.h:325:52: note: candidate: DenseIndex Eigen::DSizes<DenseIndex, NumDims>::IndexOfColMajor(Eigen::array<DenseIndex, NumDims>&) const [with DenseIndex = long int; int NumDims = 2; Eigen::array<DenseIndex, NumDims> = std::array<long int, 2ul>]
  55. EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE DenseIndex IndexOfColMajor(const array<DenseIndex, NumDims>& indices) const {
  56. ^
  57. /usr/local/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDimensions.h:325:52: note: no known conversion for argument 1 from 'Eigen::array<long int, 4ul> {aka std::array<long int, 4ul>}' to 'Eigen::array<long int, 2ul>& {aka const std::array<long int, 2ul>&}'
  58. Target //tensorflow/cpp_api:cpp_api failed to build
  59. Use --verbose_failures to see the command lines of failed build steps.
  60. INFO: Elapsed time: 119.072s, Critical Path: 53.94s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement