libgo patch committed: Update to Go1.14beta1
Ian Lance Taylor
iant@golang.org
Thu Jan 23 00:07:00 GMT 2020
On Wed, Jan 22, 2020 at 12:18 PM Rainer Orth
<ro@cebitec.uni-bielefeld.de> wrote:
>
> > I've committed a patch to update libgo to Go 1.14beta1. As usual with
> > these updates the patch is far too large to include in this e-mail
> > message. I've included the diffs for gccgo-specific files.
> > Bootstrapped and ran Go tests on x86_64-pc-linux-gnu. Committed to
> > mainline.
>
> the patch broke Solaris bootstrap:
>
> /vol/gcc/src/hg/master/local/libgo/go/runtime/os_only_solaris.go:11:1: error: redefinition of 'getncpu'
> 11 | func getncpu() int32 {
> | ^
> /vol/gcc/src/hg/master/local/libgo/go/runtime/os3_solaris.go:20:1: note: previous definition of 'getncpu' was here
> 20 | func getncpu() int32 {
> | ^
>
> There are 3 definitions in the Solaris/Illumos space:
>
> * os_only_solaris.go is guarded by !illumos
>
> * os3_solaris.go has no explicit guard
>
> * illumos hat its own one in os_illumos.go
>
> so the os3_solaris.go one can go.
>
> /vol/gcc/src/hg/master/local/libgo/go/runtime/stubs2.go:40:3: error: osinit is not defined
> 40 | //go:linkname osinit runtime.osinit
> | ^
>
> Upstream has a definition in os3_solaris.go.
>
> The following patch allows compilation to succeed.
Thanks, I already committed a patch before I got to your e-mail.
Sorry for the duplicate work.
Ian
More information about the Gcc-patches
mailing list