-
Notifications
You must be signed in to change notification settings - Fork 351
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
Codeql create golang database error on macos #863
Comments
Thanks for raising your issue. Mac M1 support is still in beta. Please make sure to read about all of the requirements for running on an M1. If you have fulfilled all of these requirements and are still seeing the error, please run the command with maximum verbosity and attach the logs created to this issue. |
I have met the requirements mentioned in the document. Codeql can create databases in python and javascript, but errors will occur in go and Java. This is the log of my go database creation. build-tracer.log
database-create-20220103.152847.727.log
|
Hmm, there is a known issue with tracing Java builds on M1 that will be fixed in the next release: github/codeql-cli-binaries#101 Looking at that log, this appears to be a separate issue however. @AlexDenisov do you agree? |
@edoardopirovano it manifests in a different way, but the root cause is the same. @p1keman at this point I can recommend either using CodeQL 2.7.1, or waiting for the next release (which is around the corner, but no exact ETA yet). |
Very good, I switched to codeql v2.7.1, can create a go database, thank you |
codeql-cli v2.7.3
golang v1.17.5
M1 macOS Monterey v12.0.1
I have installed go and added it to the environment variable. I tried adding go environment variables to .zshrc and /etc/paths, but none of them worked.
% go version
go version go1.17.5 darwin/arm64
% codeql database create --language=go test --source-root=../codeql-study --overwrite
Initializing database at /codeql-study/test.
Running build command: [/codeql/cli/codeql/go/tools/autobuild.sh]
[2022-01-02 19:00:46] [build-stderr] 2022/01/02 19:00:46 Unable to run the go command, is it installed?
[2022-01-02 19:00:46] [build-stderr] Error: signal: abort trap
[2022-01-02 19:00:46] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/codeql/cli/codeql/tools/osx64/preload_tracer, /codeql/cli/codeql/go/tools/autobuild.sh])
A fatal error occurred: Exit status 1 from command: [/codeql/cli/codeql/go/tools/autobuild.sh]
The text was updated successfully, but these errors were encountered: