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

Build fails missing libisl when /usr/local is blocked from sandbox access on MacOS x86_64 #25

Closed
akesling opened this issue Jun 12, 2024 · 2 comments

Comments

@akesling
Copy link

Observed behavior

Build fails on MacOS, complaining of libisl not being available under /usr/local when --sandbox_block_path=/usr/local is provided to build command. See https://gist.github.com/akesling/2b2d059cd6fc1e5257026e562b7f933a for build error output.

Note that --sandbox_block_path=/usr/local helps mitigate non-hermetic library inclusion on MacOS. See bazelbuild/bazel#10472 (comment) for context.

Reproduction

See musl-isl-repro branch in reproduction repo for a full reproduction.

Steps

  1. Include musl-toolchain in WORKSPACE
  2. Add build --sandbox_block_path=/usr/local to .bazelrc
  3. Configure a build transition for @io_bazel_rules_go//go/toolchain:linux_amd64_cgo
  4. Build cross-compiling target
@illicitonion
Copy link
Collaborator

This was fixed in #23 and released in 0.1.13 :)

@akesling
Copy link
Author

Confirmed. Updating to 0.1.13 fixes this issue.

Thank you!

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