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

How to troubleshoot this: ERROR: infinite symlink expansion detected #5763

Closed
yurivict opened this issue Aug 3, 2018 · 7 comments
Closed
Labels
team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file.

Comments

@yurivict
Copy link

yurivict commented Aug 3, 2018

I'm getting the tensorflow build failure: tensorflow/tensorflow#21366

How can I find what link is bazel talking about? Could you please include it in the error message?

@ittaiz
Copy link
Member

ittaiz commented Aug 4, 2018 via email

@yurivict
Copy link
Author

yurivict commented Aug 5, 2018

By tracing system calls I found that this link caused the problem:

/usr/ports/science/py-tensorflow/work-py27/tensorflow-1.10.0-rc1/bazel_ot/2cc1156aa366d993caf19cae8ee5ba0d/external/org_tensorflow
->
/usr/ports/science/py-tensorflow/work-py27/tensorflow-1.10.0-rc1

It isn't necessarily an error to have such link, even though it is cyclic. bazel should only fail when it actually becomes a problem, ex. system call fails (ELOOP/EMLINK/etc).

The tensorflow build itself creates this link. Somebody from bazel or tensorflow team, please advise.

@yurivict
Copy link
Author

Do google projects like bazel have management?

Why does google promote bazel and projects based on it and then doesn't fix bugs in them like this one?

@ittaiz
Copy link
Member

ittaiz commented Aug 23, 2018 via email

@yurivict
Copy link
Author

I don't see the point of bazel. Why is it needed? Is cmake/meson not enough? cmake and meson work fine for thousands of other projects. bazel is an internal google tool. Why would anybody else be interested in helping google fix bugs in their internal tools ...

@dslomov dslomov added team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. and removed team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. untriaged labels Nov 26, 2018
@dslomov
Copy link
Contributor

dslomov commented Dec 7, 2018

Looks like tf's build issue.

@dslomov dslomov closed this as completed Dec 7, 2018
@robinp
Copy link

robinp commented Jan 22, 2019

(Cross-posting from tf issue, with more details here)

FYI I saw a remedy in https://github.com/NixOS/nixpkgs/blob/57004738b168663bb4053c6737053e0039cc6259/pkgs/development/tools/build-managers/bazel/python-bin-path-test.nix which is to use bazel --output_base=/something/other/path.

The issue seems to be when $HOME is pointed inside the workspace. Bazel creates a symlink mirror of the WORKSPACE (at least its top) in a cache dir inside its output_base, which defaults to like inside $HOME... which leads to recursive symlinks.

I wonder why is this cycle not a warning, that is just not traversed subsequently.

So a remedy is to define output_base to be outside home. Alternatively, try not to point $HOME inside the workspace (rather push the workspace dir into a $HOME subdir).

@philwo philwo added the team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website label Jun 15, 2020
@philwo philwo removed the team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website label Nov 29, 2021
taylormonacelli added a commit to taylormonacelli/navylie that referenced this issue Oct 19, 2023
taylormonacelli added a commit to taylormonacelli/navylie that referenced this issue Oct 19, 2023
taylormonacelli added a commit to taylormonacelli/navylie that referenced this issue Oct 19, 2023
taylormonacelli added a commit to taylormonacelli/navylie that referenced this issue Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file.
Projects
None yet
Development

No branches or pull requests

6 participants