How to Build SyntaxNet

The missing zlib.BUILD file can be found in

Follow the steps in


  • download jpeg.BUILD.txt, png.BUILD.txt, and WORKSPACE.txt from @srsaharoy ‘s message #623 (comment) . (the 2nd post with attachments) and place these files in the tensorflow lib without the .txt extension instead of the existing files (in my case ~/git/tensorflow/tensorflow).
  • create folder with external source files: ~/git/tensorflow/fix/files/re2 ~/git/tensorflow/fix/files/jpeg-9a/jpeg-9a ~/git/tensorflow/fix/files/gemmlowp ~/git/tensorflow/fix/files/libpng-1.2.53/libpng-1.2.53 ~/git/tensorflow/fix/files/six-1.10.0 Note the dir-in-dir for jpeg-9a and libpng-1.2.53. This is necessary.
  • change paths in WORKSPACE file to match the location of the aux source files
  • bazel shutdown
  • bazel build -c opt //tensorflow/cc:tutorials_example_trainer

EDIT: the path for ‘six’ in WORKSPACE needs to point to the folder that contains six-1.10.0, e.g.:
path = “/home/…/git/tensorflow/fix/files”
This is because six.BUILD searches the sources in “six-1.10.0/”.

EDIT: (for commit a108da2 16-DEC-2015) download & extract ; change eigen_archive to new_local_repository with path = “/home/…/git/tensorflow/fix/files”

This may be also true for other modules.