cjweeks/tensorflow-cmake

Can't Find Eigen Version

kevindean87 opened this issue · 10 comments

Made it through building tensorflow with bazel (and have copied all necessary files to /usr/local/). Now trying to go through installing Eigen locally but running into a problem. The script, eigen.sh, cannot find the "eigen_version" from /tensorflow/workspace.bzl.

this is the command:
sudo ./eigen.sh install ../tensorflow (using default install and current directory for download)

this is the error from the terminal:
Finding Eigen version in ../tensorflow using method 0...
Finding Eigen version in ../tensorflow using method 1...
Finding Eigen version in ../tensorflow using method 2...
Failure: could not find Eigen version in ../tensorflow

Going through eigen.sh (line by line), I found that it finds EIGEN_TEXT:
grep -Pzo ${EIGEN_REGEX} ${TF_DIR}/tensorflow/workspace.bzl
native.new_http_archive(
name = "eigen_archive",
urls = [
"http://bazel-mirror.storage.googleapis.com/bitbucket.org/eigen/eigen/get/60578b474802.tar.gz",
"https://bitbucket.org/eigen/eigen/get/60578b474802.tar.gz",
],
sha256 = "7527cda827aff351981ebd910012e16be4d899c28a9ae7f143ae60e7f3f7b83d",
strip_prefix = "eigen-eigen-60578b474802",
build_file = str(Label("//third_party:eigen.BUILD")

however, it cannot find the EIGEN_ARCHIVE_HASH_REGEX or EIGEN_HASH_REGEX
(these return nothing)

grep -Pzo ${EIGEN_ARCHIVE_HASH_REGEX} ${TF_DIR}/tensorflow/workspace.bzl
grep -Pzo ${EIGEN_HASH_REGEX} ${TF_DIR}/tensorflow/workspace.bzl

Don't you want to resolve this bug?

Bump... I have the same issue. @cjweeks any idea as to whats going on?

Hello, and I am very sorry for the significantly late reply. I have the following questions for each of you who are experiencing this bug:

  1. What version of TensorFlow are you using?
  2. What Linux distribution / version are you using?

I am currently using the latest master branch of TensorFlow with Ubuntu 16.04 LTS, and I do not encounter this problem. My command is identical to yours. If you are using an older version of TensorFlow, this may very well be the problem; that should be a relatively easy fix.

I had previously and still have the same issue.
I just pulled and recompiled the latest state of the master branch of the tensorflow-repo at this commit.

I'm using Ubuntu 16.04.1 LTS.

I am using 14.04 and lastest master branch of tensorflow.

I have added a rule that should account for the problems you all have addressed. In my case, the script successfully finds Eigen on Ubuntu 16.04 at the TensorFlow commit that @ShapingView referenced. Please try this new version on your our own, and let me know of its success.

@cjweeks I tested it and it works!
Sorry for the late reply, and thanks for your help!

No problem at all. Please let me know if any other issues arise.

I am receiving "Finding Eigen version in /home/xxxxxxx/tensorflow using method 0 "followed by "Command failed - script terminated." I placed all of this scripts in your repo in the tensorflow root directory and I am running Cenos7. Any help on this issue is appreciated.