Re: Go 1.4.3 failing on core-updates
Leo Famulari skribis: > On Mon, Oct 17, 2016 at 10:23:08AM +0200, Andy Wingo wrote: >> On Sat 15 Oct 2016 22:12, Leo Famulari writes: >> >> > # net >> > cannot load DWARF output from $WORK/net/_obj//_cgo_.o: decoding dwarf >> > section info at offset 0x4: unsupported version 0 >> > # os/user >> > cannot load DWARF output from $WORK/os/user/_obj//_cgo_.o: decoding dwarf >> > section info at offset 0x4: unsupported version 0 >> >> Probably this is due to a version change in GCC or the toolchain -- this >> part of go is designed to interoperate with GCC in some way. Try fixing >> the version of the toolchain to something older, perhaps? > > It turns out that Go 1.4.3's cgo (the Go interface to C code) doesn't > work with Binutils > 2.27: > > https://github.com/golang/go/issues/16906 > > We are still able to use Go 1.4.3 to bootstrap later versions of Go if > we disable cgo, as I did in 04a95a4fd66. Great, thanks! Ludo’.
Re: Go 1.4.3 failing on core-updates
On Mon, Oct 17, 2016 at 10:23:08AM +0200, Andy Wingo wrote: > On Sat 15 Oct 2016 22:12, Leo Famulari writes: > > > # net > > cannot load DWARF output from $WORK/net/_obj//_cgo_.o: decoding dwarf > > section info at offset 0x4: unsupported version 0 > > # os/user > > cannot load DWARF output from $WORK/os/user/_obj//_cgo_.o: decoding dwarf > > section info at offset 0x4: unsupported version 0 > > Probably this is due to a version change in GCC or the toolchain -- this > part of go is designed to interoperate with GCC in some way. Try fixing > the version of the toolchain to something older, perhaps? It turns out that Go 1.4.3's cgo (the Go interface to C code) doesn't work with Binutils > 2.27: https://github.com/golang/go/issues/16906 We are still able to use Go 1.4.3 to bootstrap later versions of Go if we disable cgo, as I did in 04a95a4fd66.
Re: Go 1.4.3 failing on core-updates
On Sat 15 Oct 2016 22:12, Leo Famulari writes: > # net > cannot load DWARF output from $WORK/net/_obj//_cgo_.o: decoding dwarf section > info at offset 0x4: unsupported version 0 > # os/user > cannot load DWARF output from $WORK/os/user/_obj//_cgo_.o: decoding dwarf > section info at offset 0x4: unsupported version 0 Probably this is due to a version change in GCC or the toolchain -- this part of go is designed to interoperate with GCC in some way. Try fixing the version of the toolchain to something older, perhaps? Andy
Go 1.4.3 failing on core-updates
Go version 1.4.3, which is required to build the latest Go version, is failing to build on core-updates: https://hydra.gnu.org/build/1493335 Here's the tail of the log: -- archive/tar go/doc crypto/elliptic cmd/addr2line encoding/asn1 crypto/rand crypto/dsa cmd/cgo go/format crypto/rsa cmd/fix cmd/gofmt go/build crypto/ecdsa crypto/x509/pkix cmd/nm cmd/objdump cmd/pprof/internal/plugin html/template cmd/pprof/internal/symbolizer cmd/pprof/internal/symbolz cmd/yacc archive/zip cmd/pprof/internal/report compress/lzw compress/zlib database/sql/driver database/sql encoding/csv encoding/gob image/gif image/png runtime/debug testing testing/iotest cmd/pprof/internal/commands testing/quick text/scanner cmd/pprof/internal/driver runtime/cgo net os/user # net cannot load DWARF output from $WORK/net/_obj//_cgo_.o: decoding dwarf section info at offset 0x4: unsupported version 0 # os/user cannot load DWARF output from $WORK/os/user/_obj//_cgo_.o: decoding dwarf section info at offset 0x4: unsupported version 0 phase `build' failed after 15.9 seconds builder for `/gnu/store/gs9r320hhlmi87k3xbswng57icxsxv4n-go-1.4.3.drv' failed with exit code 1 @ build-failed /gnu/store/gs9r320hhlmi87k3xbswng57icxsxv4n-go-1.4.3.drv - 1 builder for `/gnu/store/gs9r320hhlmi87k3xbswng57icxsxv4n-go-1.4.3.drv' failed with exit code 1 guix build: error: build failed: build of `/gnu/store/gs9r320hhlmi87k3xbswng57icxsxv4n-go-1.4.3.drv' failed -- Any ideas?