Bug 1865441 - cannot compile atomic-openshift with recent golang
Summary: cannot compile atomic-openshift with recent golang
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: openshift-apiserver
Version: 3.11.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 3.11.z
Assignee: Stefan Schimanski
QA Contact: Ke Wang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-08-03 21:06 UTC by Luke Meyer
Modified: 2020-09-16 07:47 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-09-16 07:46:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift origin pull 25416 0 None closed Bug 1865441: UPSTREAM: 286: Bump github.com/google/certificate-transparency-go to v1.0.20 to compile with golang >= 1.11 2020-10-09 14:46:36 UTC
Red Hat Product Errata RHBA-2020:3695 0 None None None 2020-09-16 07:46:59 UTC

Description Luke Meyer 2020-08-03 21:06:23 UTC
3.11 atomic-openshift has always built with go 1.10; we're trying to compile now with 1.12 (should probably make it 1.13, but I imagine this problem will apply there too).

We ran into an incompatibility: http://download.eng.bos.redhat.com/brewroot/work/tasks/4028/30504028/build.log

++ Building go targets for windows/amd64: cmd/hypershift cmd/openshift cmd/oc cmd/oadm cmd/template-service-broker cmd/openshift-node-config vendor/k8s.io/kubernetes/cmd/hyperkube
# github.com/openshift/origin/vendor/github.com/google/certificate-transparency-go/x509
vendor/github.com/google/certificate-transparency-go/x509/root_windows.go:112:3: cannot use uintptr(unsafe.Pointer(sslPara)) (type uintptr) as type syscall.Pointer in field value

A quick look indicates this just needs an update to deps:
https://coreos.slack.com/archives/CB48XQ4KZ/p1596460111413300

It seems entirely likely that there are more waiting to be found when this is fixed. Can a domain expert please get this build working under golang 1.13 so that we can make the switch? I'm happy to run brew builds to test PRs but that'll be a slow way to iterate.

Comment 7 errata-xmlrpc 2020-09-16 07:46:50 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (OpenShift Container Platform 3.11.286 bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:3695


Note You need to log in before you can comment on or make changes to this bug.