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
cmd/go: cross-compiling package tests emits errors to stderr yet 0 exit code #62123
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
GoCommand
cmd/go
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
Comments
dmitshur
added
the
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
label
Aug 17, 2023
bcmills
added
GoCommand
cmd/go
compiler/runtime
Issues related to the Go compiler and/or runtime.
labels
Aug 23, 2023
@cherrymui says that this is actually a successful (well, probably :)) compilation, just some additional (possibly confusing) output is printed. |
Change https://go.dev/cl/522239 mentions this issue: |
cellularmitosis
pushed a commit
to cellularmitosis/go
that referenced
this issue
Aug 24, 2023
…enabled Fixes golang#46330. Fixes golang#62123. Updates golang#31544. Change-Id: I023aa2bdb5a24e126a0de5192a077e8cf1a0a67c Reviewed-on: https://go-review.googlesource.com/c/go/+/522239 Run-TryBot: Bryan Mills <bcmills@google.com> Auto-Submit: Bryan Mills <bcmills@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
dmitshur
added
NeedsFix
The path to resolution is known, but the work has not been done.
and removed
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
labels
Sep 6, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
GoCommand
cmd/go
NeedsFix
The path to resolution is known, but the work has not been done.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes, with Go 1.21.0. (See #61960 (comment).)
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I used a linux/amd64 host and attempted to cross-compile a simple Go package and its tests to android/amd64, one of Go's ports. Here's a somewhat minified way to reproduce the issue:
What did you expect to see?
Either successful compilation, no output to stderr, and 0 exit code,
or a clearly failed compilation and a non-zero exit code.
What did you see instead?
Output to stderr that looks like an error, but exit code 0.
I spotted this in LUCI (#61960), where we try to rely on
go test -c -o=/dev/null
to catch compilation errors on all supported Go ports.CC @bcmills, @ianlancetaylor.
The text was updated successfully, but these errors were encountered: