Skip to content

Fixes issue when linking of rule '//tensorflow/contrib/lite/toco:toco… - #16838

Merged
jhseu merged 2 commits into
tensorflow:masterfrom
frankgh:fix-toco-build-error
Feb 7, 2018
Merged

jhseu merged 2 commits into
tensorflow:masterfrom
frankgh:fix-toco-build-error

Conversation

@frankgh

@frankgh frankgh commented Feb 7, 2018

Copy link
Copy Markdown
Contributor

Fixes issue when linking of rule '//tensorflow/contrib/lite/toco:toco' fails because LD_LIBRARY_PATH is not configured. The workaround is to add --action_env="LD_LIBRARY_PATH=${LD_LIBRARY_PATH}" to bazel build as described here https://stackoverflow.com/questions/47080760/tensorflow-fails-to-compile/47295278#47295278.

Related to issue: #15142 (comment)

…' fails because LD_LIBRARY_PATH is not configured
@frankgh

frankgh commented Feb 7, 2018 •

Copy link
Copy Markdown
Contributor Author

The issue happens when building TensorFlow with CUDA support when running ./configure and then running bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package

@jhseu
jhseu requested a review from gunan February 7, 2018 19:03
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Feb 7, 2018
@jhseu
jhseu merged commit 8d6f10f into tensorflow:master Feb 7, 2018
@JackHunt

Copy link
Copy Markdown

Hi, is this fix planned to be merged in to r1.5?

@gunan

gunan commented Feb 16, 2018

Copy link
Copy Markdown
Contributor

As we are very close to 1.6 final, we probably wont backport this fix into 1.5.

sandeepngupta added a commit to sandeepngupta/tensorflow that referenced this pull request Feb 23, 2018
tensorflow#16838)

* Fixes issue when linking of rule '//tensorflow/contrib/lite/toco:toco' fails because LD_LIBRARY_PATH is not configured

* Check if LD_LIBRARY_PATH is in environ_cp
gunan pushed a commit that referenced this pull request Feb 24, 2018
#16838) (#17229)

* Fixes issue when linking of rule '//tensorflow/contrib/lite/toco:toco' fails because LD_LIBRARY_PATH is not configured

* Check if LD_LIBRARY_PATH is in environ_cp
@petacube

Copy link
Copy Markdown

still broken in both master and tf 1.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants