-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: go list -e -compiled -json does not populate Error when cgo preprocessing fails #38990
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
Comments
This has the same root cause as the two linked issues: #34229 and #25842 Currently, |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
I have hidden a bunch of off-topic comments for this issue. Folks, if you are dealing with a problem that does not match the problem described in the issue title, please either file a separate issue or start a thread on |
This comment was marked as off-topic.
This comment was marked as off-topic.
Unfortunately, I can't reproduce this issue on 1.22 so perhaps it was already fixed :D Let me know if you are still running into this issue! |
Timed out in state WaitingForInfo. Closing. (I am just a bot, though. Please speak up if this is a mistake or you have the requested information.) |
Hi @samthanawalla , I just encountered this issue on Go 1.22.9:
If you want I could try to see if I can create a setup that allows you to reproduce the error, though this would probably take me 1 - 2 days I did resolve it by fixing a broken dependency, but just wanted to mention that this problem does still occur! |
@jessegeens Have you encountered this on Go 1.23+? (Go 1.22 is no longer supported) |
Having the same issue with Go 1.24 |
What version of Go are you using (
go version
)?What's wrong
When cgo preprocessing fails,
go list -json -compiled -e
prints an error on stderr and exits with a non-zero status, but it does not populate the Error field of the package. It is possible to detect that something went wrong because CompiledGoFiles isn't populated, but we can't tell why it failed. Two common reasons are a missing C compiler, and missing libraries.Example output
Related: #34229 and #25842
/cc @bcmills @matloob @heschik
The text was updated successfully, but these errors were encountered: