Skip to content

CodeQL fails to run on Apple M4 Pro with "Bad CPU type in executable" error #19286

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

Closed
xxoopro opened this issue Apr 11, 2025 · 1 comment
Closed
Labels
question Further information is requested

Comments

@xxoopro
Copy link

xxoopro commented Apr 11, 2025

I'm encountering a runtime error when trying to run CodeQL on my ​Apple M4 Pro​ (Mac mini Pro, macOS 15.3.1). The CLI fails with a CPU architecture mismatch, despite using the latest CodeQL version.

​Environment Details​
​Host:​​ Mac mini Pro (Apple M4 Pro)
​macOS Version:​​ 15.3.1 (24D70)
​CodeQL Version:​​ 2.21.0
​Command Executed:​​

cli/codeql database create qldb-test -s ~/Downloads/test-V1.1.3 -l java --overwrite -c "mvn clean compile -Dmaven.test.skip"

Error Observed​ The command fails with:

Image

@xxoopro xxoopro added the question Further information is requested label Apr 11, 2025
@xxoopro
Copy link
Author

xxoopro commented Apr 11, 2025

/usr/sbin/softwareupdate --install-rosetta

@xxoopro xxoopro closed this as completed Apr 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant