tensorflow: Error compiling iterator_ops.cc when building from source with MSVC 2017

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10
  • TensorFlow installed from (source or binary): Source
  • TensorFlow version: latest from git - 1.12.0
  • Python version: 2.7
  • Bazel version (if compiling from source): 0.19.2
  • GCC/Compiler version (if compiling from source):
  • CUDA/cuDNN version: N/A
  • GPU model and memory: NVIDIA GeForce 940MX 4096mb

When building tensorflow from source using bazel on windows 10 I encountered an error in iterator_ops.cc. To the best of my ability I think the error that stopped the build was "binary '*': no operator found which takes a left-hand operand of type 'const tensorflow::OpInputList::Iterator' (or there is no acceptable conversion)" But I’m not familliar with tensorflow or the building process being used.

Provide the exact sequence of commands / steps that you executed before running into the problem bazel build :loader (loader being a barebones .cc file with tensorflow as a dependancy)

Any other info / logs The relevant build logs: (somewhat long error message) https://pastebin.com/akqRxB0P

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 16 (4 by maintainers)

Most upvoted comments

I’ll give it a go with Python 3.6 and see how that goes. It takes over an hour so I’ll have to get back to you