-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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/cgo: regression in Kubernetes build on ppc64le due to commit 90df377 #28772
Comments
Easier repro, not involving Kubernetes:
(And in case that repro changes, this repro'd for me at its git rev b364b296c7320f5d3dc084aa536a3dba33b68f90) |
Standalone reproduction: package p
/*
#define constant 1
static void function(char **p, unsigned int i) {}
*/
import "C"
const constant = C.constant
func F() {
var pc *C.char
C.function(&pc, constant)
} |
Change https://golang.org/cl/149858 mentions this issue: |
Fixes #28772 Change-Id: I9446d95fb73fbcbb1cd9a4d2156ebc91bc9e91cb Reviewed-on: https://go-review.googlesource.com/c/149858 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Change https://golang.org/cl/151600 mentions this issue: |
An untyped constant can be defined in any input file, we shouldn't segregate them by file. Updates #28772 Change-Id: I0347f15236833bb511eb49f86c449ee9241b0a25 Reviewed-on: https://go-review.googlesource.com/c/151600 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Andrew Bonventre <andybons@golang.org>
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Build of Kubernetes with upstream golang started failing with the above commit.
To reproduce the build:
cd $GOPATH/src/k8s.io
git clone https://github.com/kubernetes/kubernetes.git
export K8S_DIR=${GOPATH}/src/k8s.io/kubernetes
export K8S_BIN=${K8S_DIR}/_output/bin
cd ${K8S_DIR}
make all
What did you expect to see?
Successful build
What did you see instead?
@ianlancetaylor
The text was updated successfully, but these errors were encountered: