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

fix: /lib64/ld-linux-x86-64.so.2 not found on arm64 container #216

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

trganda
Copy link
Contributor

@trganda trganda commented Jun 24, 2024

When open the dev container on arm machine, e.g. M1 chip mac, the following error will happen in CodeQL Extension Log

Resolving RAM settings using CodeQL CLI: resolve ram -v --log-to-stderr --format json --ram 2048...
Failed to run 'codeql version'. Reason: Checking CodeQL version failed: OrbStack ERROR: Dynamic loader not found: /lib64/ld-linux-x86-64.so.2

This usually means that you're running an x86 program on an arm64 OS without multi-arch libraries.
To fix this, you can:
  1. Use an Intel (amd64) container to run this program; or
  2. Install multi-arch libraries in this container.

This can also be caused by running a glibc executable in a musl distro (e.g. Alpine), or vice versa.

It can be fix by install an amd64 architecture libc6 package. I have added a oncreate.sh for devcontainer.json on onCreateCommand field.

@aeisenberg
Copy link
Contributor

Thanks for your contribution and apologies for taking so long to respond. Your PR looks benign, but I haven't tried this myself, so I can't confirm it is working. Can you explain your use case a little more?

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

Successfully merging this pull request may close these issues.

2 participants