tensorflow: bazel build on windows10 failed

System information

  • OS Platform and Distribution : windows10
  • TensorFlow installed from : source
  • TensorFlow version: 1.11.0
  • Python version: Python 3.6.3 :: Anaconda custom (64-bit)
  • Installed using virtualenv? pip? conda?: conda
  • Bazel version (if compiling from source): 0.19.0 not from source

only cpu version.

I followed the instruction from tensorflow official site.

When I entered bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package An error occurred

WARNING: The following rc files are no longer being read, please transfer their contents or import their path into one of the standard rc files:
d:\tensorflow-1.11.0/.bazelrc
d:\tensorflow-1.11.0/tools/bazel.rc
ERROR: SymlinkDirectories(C:\Users\Administrator/_bazel_Administrator/install/46e308c2aba33f6ef6ad7b7f2c018098, c:\users\administrator\_bazel_administrator\buk4ctdf/install): CreateJunction:
FATAL: failed to create installation symlink 'c:\users\administrator\_bazel_administrator\buk4ctdf/install': success

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 22 (10 by maintainers)

Most upvoted comments

I entered python ./configure.py. Then the Windows PowerShell print “Extracting Bazel installation…” Then the exception occurred. I followed the instruction and opened my visual studio to debug. It said there was an exception unhandled at 0x00007FF8C0EA4D3B(ntdll.dll)(in bazel.exe): 0xC0000374: the heap was broken.(Parameter:0x0000FF8C0F097B0) Followed is the screenshot. https://suall-my.sharepoint.com/:i:/g/personal/46093_officeent_top/EYkLTu1cSV9Lr0aIweN7diYBEHlat0rJDX9pfLK0i6e8iw?e=AeVcDK

If I ignore the exception, the configuration process can still be completed. But If I enter bazel build then, the error mentioned above occur.