On Tue, Sep 10, 2019 at 11:54 PM Andreas Schwab <sch...@linux-m68k.org> wrote: > > On Sep 10 2019, Ian Lance Taylor <i...@golang.org> wrote: > > > On Mon, Sep 9, 2019 at 2:00 PM Andreas Schwab <sch...@linux-m68k.org> wrote: > >> > >> ../../../libgo/go/golang.org/x/sys/cpu/cpu.go:17:30: error: reference to > >> undefined name ‘cacheLineSize’ > >> 17 | type CacheLinePad struct{ _ [cacheLineSize]byte } > >> | ^ > >> ../../../libgo/go/golang.org/x/sys/cpu/cpu_linux.go:56:2: error: reference > >> to undefined name ‘doinit’ > >> 56 | doinit() > >> | ^ > > > > Thanks, should be fixed by SVN revision 275611, just committed. > > Nope. > > ../../../libgo/go/golang.org/x/sys/cpu/cpu_linux.go:56:2: error: reference to > undefined name 'doinit' > 56 | doinit() > | ^ > make[4]: *** [golang.org/x/sys/cpu.lo] Error 1
Bother, sorry. I just committed this patch. Perhaps this will fix it. Ian
Index: gcc/go/gofrontend/MERGE =================================================================== --- gcc/go/gofrontend/MERGE (revision 275648) +++ gcc/go/gofrontend/MERGE (working copy) @@ -1,4 +1,4 @@ -1f4ce28409a2d9d4045b1085de55c46de8759d1c +27b2311fa460b1dd76fb3a796c7c05ebedc64df2 The first line of this file holds the git revision number of the last merge done from the gofrontend repository. Index: libgo/go/golang.org/x/sys/cpu/cpu_linux_other.go =================================================================== --- libgo/go/golang.org/x/sys/cpu/cpu_linux_other.go (nonexistent) +++ libgo/go/golang.org/x/sys/cpu/cpu_linux_other.go (working copy) @@ -0,0 +1,9 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build !amd64,!amd64p32,!386,!arm64,!ppc64,!ppc64le,!s390x + +package cpu + +func doinit() {}