Skip to content

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

Closed
@xxoopro

Description

@xxoopro

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions