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

Bazel floods homedir with files when building Flax #21328

Open
VRehnberg opened this issue Sep 5, 2024 · 3 comments
Open

Bazel floods homedir with files when building Flax #21328

VRehnberg opened this issue Sep 5, 2024 · 3 comments
Milestone

Comments

@VRehnberg
Copy link
Contributor

When building Flax from https://github.com/easybuilders/easybuild-easyconfigs/pull/21039/files build errors out with error message:

/cephyr/users/c3-builder/Alvis/.cache/bazel/_bazel_c3-builder/8408e517ae040ba22f0bf974451c879f/sandbox/linux-sandbox/38 (Disk quota exceeded)

Probably should use same solution of giving --install_base and --output_user_root as done in https://github.com/easybuilders/easybuild-easyblocks/pull/1519/files

@lexming
Copy link
Contributor

lexming commented Sep 5, 2024

There is also --output-base which puts all scratch and build output below this directory. This is one level below output_user_root and does not affect install files.
See https://bazel.build/remote/output-directories

Example to use in a similar way to what we do with CMake:

bazel --output_base=%(builddir)s/easybuild_obj build

@boegel
Copy link
Member

boegel commented Sep 11, 2024

Can this be done via environment variables?

Since in the case of Flax, we're not running bazel ourselves (it's not even provided as a build dependency...)

@boegel boegel added this to the 4.x milestone Sep 11, 2024
@branfosj
Copy link
Member

The outputRoot directory defaults to ${XDG_CACHE_HOME}/bazel (or ~/.cache/bazel, if the XDG_CACHE_HOME environment variable is not set) on Linux

So we'd need to set XDG_CACHE_HOME for this build and, maybe, anything using Bazel to buiod.

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

No branches or pull requests

4 participants