Skip to content
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: TestScript/build_overlay broken when gccgo is present as of CL 421879 #54761

Open
bcmills opened this issue Aug 29, 2022 · 4 comments
Open
Assignees
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@bcmills
Copy link
Member

bcmills commented Aug 29, 2022

https://go.dev/cl/421879 caused go build --compiler=gccgo to fail when the installed gccgo predates the runtime/cgo changes in that CL.

I'm not sure what exactly, if anything, we should do about that, since we can't in general make assumptions about which gccgo the user may have installed.

@ianlancetaylor, @cuonglm: any suggestions? (For now I'm going to disable that part of the test.)

@bcmills bcmills added NeedsDecision Feedback is required from experts, contributors, and/or the community before a change can be made. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. labels Aug 29, 2022
@bcmills bcmills added this to the Go1.20 milestone Aug 29, 2022
@gopherbot gopherbot removed the NeedsDecision Feedback is required from experts, contributors, and/or the community before a change can be made. label Aug 29, 2022
@gopherbot
Copy link

gopherbot commented Aug 29, 2022

Change https://go.dev/cl/426496 mentions this issue: cmd/go: skip gccgo cgo tests in TestScript/build_overlay

gopherbot pushed a commit that referenced this issue Aug 29, 2022
cgo builds with -compiler=gccgo are broken as of CL 421879.

For #54761.
Updates #46731.

Change-Id: I0306b0bd96669f70279fc96814cc72d934a1ad6e
Reviewed-on: https://go-review.googlesource.com/c/go/+/426496
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
@gopherbot
Copy link

gopherbot commented Aug 30, 2022

Change https://go.dev/cl/426155 mentions this issue: cmd/cgo: use //go:notinheap if building with gccgo

@ianlancetaylor
Copy link
Contributor

ianlancetaylor commented Sep 20, 2022

For the record, while I haven't looked at this specific issue yet, the general goal is for cmd/go to test what gccgo features are supported, and use those.

@bcmills
Copy link
Member Author

bcmills commented Sep 20, 2022

That makes sense. Perhaps at some point after https://go.dev/cl/420054 lands we should add a script condition for gccgo features in script tests?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

3 participants