Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tensorflow and Raspberry Pi Error: Building from Source #143

Open
yashn35 opened this issue Mar 31, 2018 · 1 comment
Open

Tensorflow and Raspberry Pi Error: Building from Source #143

yashn35 opened this issue Mar 31, 2018 · 1 comment

Comments

@yashn35
Copy link

yashn35 commented Mar 31, 2018

I am trying to run a command to install Tensorflow from source, I use Bazel to install from source (This is being done a raspberry pi -- Linux OS software).

I followed the necessary steps of building from source (IMPORTANT Detail: I have to Bazel version 0.10.0 because it says that is the only version that is compatible for Tensorflowflow) So then, this what I am trying to do on my raspberry pi:

./configure

bazel build -c opt --copt="-mfpu=neon-vfpv4" --copt="-funsafe-math-optimizations" --copt="-ftree-vectorize" --copt="-fomit-frame-pointer" --local_resources 1024,1.0,1.0 --verbose_failures tensorflow/tools/pip_package:build_pip_package

I get the following error when I run it (This is a super long installation and it was almost done installing all the files and then it suddenly said the build failed, and bazel couldn't be built. Does anyone know how to fix or have resources on how to fix this error)?

Here is the error message that I get:

collect2: error: ld returned 1 exit status Target //tensorflow/tools/pip_package:build_pip_package failed to build

I would appreciate help as soon as someone gets a chance!

@benax-rw
Copy link

Facing the similar issue when I run ./configure I get two errors as below:

ERROR: /home/pi/tf/tensorflow/third_party/toolchains/clang6/repo.bzl:25:19: Traceback (most recent call last):
File "/home/pi/tf/tensorflow/third_party/toolchains/clang6/repo.bzl", line 22
repository_rule(implementation = _clang6_configu..., ...')))})
File "/home/pi/tf/tensorflow/third_party/toolchains/clang6/repo.bzl", line 25, in repository_rule
attr.label(default = str(Label('//third_par...')))
expected Label or Label-returning function or NoneType for 'default' while calling label but got string instead: //third_party/toolchains/clang6:clang.BUILD.
ERROR: error loading package '': Extension file 'third_party/toolchains/clang6/repo.bzl' has errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants