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 does not build on ubuntu x86_64 running on Apple Silicon #6049

Closed
RahulRachuri opened this issue Nov 15, 2021 · 3 comments
Closed

Bazel does not build on ubuntu x86_64 running on Apple Silicon #6049

RahulRachuri opened this issue Nov 15, 2021 · 3 comments

Comments

@RahulRachuri
Copy link

  • [x ] I have tried with the latest version of Docker Desktop
  • [ x] I have tried disabling enabled experimental features
  • [ x] I have uploaded Diagnostics
  • Diagnostics ID: 737066C7-64A6-46AA-AECF-E948777BEB47/20211115183649

Expected behavior

Should be able to build bazel in Ubuntu.

Actual behavior

Bazel shows that it successfully installed, but produces the following error message when running bazel or any other command using bazel:
Opening zip "/proc/self/exe": lseek(): Bad file descriptor FATAL: Failed to open '/proc/self/exe' as a zip file: (error: 9): Bad file descriptor

Information

  • macOS version: Monterey 12.0.1
  • Intel or Apple chip: Apple M1
  • Docker version: 4.1.1 (69879)

I have raised this issue with the bazel community, and they said that bazel is supposed to build and that this might have something to do with the way docker emulates x86_64 architectures on ARM chips.

Steps to reproduce the behavior

  1. Start a container for ubuntu x86_64 on an Apple Silicon Mac using --platform linux/amd64
  2. Install bazel using any of the approaches mentioned here.
@docker-robott
Copy link
Collaborator

Issues go stale after 90 days of inactivity.
Mark the issue as fresh with /remove-lifecycle stale comment.
Stale issues will be closed after an additional 30 days of inactivity.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle stale

@tonistiigi
Copy link
Member

This is a known issue in qemu. https://patchwork.kernel.org/project/qemu-devel/patch/[email protected]/ is one attempt to fix but not merged. Another moby/qemu@e662b98

@docker-robott
Copy link
Collaborator

Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle locked

@docker docker locked and limited conversation to collaborators Apr 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants