binutils-2.27: dev-lang/go fails to build |
|||||
Issue descriptiondev-lang/go (as well as the cross-compiler packages cross-x86_64-cros-linux-gnu/go and cross-armv7a-cros-linux-gnueabi/go) fail to build with binutils-2.27 emerged into the chroot: The ebuild fails with: # os/user cannot load DWARF output from $WORK/os/user/_obj//_cgo_.o: decoding dwarf section info at offset 0x4: unsupported version 0 # net cannot load DWARF output from $WORK/net/_obj//_cgo_.o: decoding dwarf section info at offset 0x4: unsupported version 0
,
Apr 19 2017
I like 3) how much savings are we getting by compressed debug sections?
,
Apr 19 2017
I haven't checked yet. Will evaluate this at a later stage once all the build issues are fixed.
,
Apr 20 2017
on the sdk side, i don't think we'd save too much disk space. we're using <200MB in /usr/lib/debug. on the board side, we would save space when the debug files are installed. but we also set up some logic to speed that up by not downloading in the first place. pretty sure we're talking hundreds of megs per sysroot. might be interesting to see about cpu usage overhead ...
,
Apr 22 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/overlays/chromiumos-overlay/+/a331ad33b8d4ddf088225aae1602e57c77cc3ca0 commit a331ad33b8d4ddf088225aae1602e57c77cc3ca0 Author: Rahul Chaudhry <rahulchaudhry@chromium.org> Date: Sat Apr 22 04:57:35 2017 dev-lang/go: disable Cgo when building the bootstrap compiler. Newer versions of binutils (>= binutils 2.26) compress debug sections for linux/x86 by default. Compressed debug sections are not supported by older versions of the Go toolchain (< go1.6). We use Go 1.4 to bootstrap the build for the latest release of Go. The bootstrap compiler fails to build with newer version of binutils installed in the chroot. The issue only shows up when using Cgo. Build fails while building the standard library packages that use Cgo (e.g. "os/user" and "net"). This change disables Cgo when building the bootstrap compiler. The bootstrap compiler is only used to build the latest release. There is no change for building the latest release, i.e. the host and cross compilers installed in the chroot still have Cgo enabled. BUG= chromium:712784 TEST='sudo emerge dev-lang/go' succeeded with binutils 2.27 installed in the chroot. Change-Id: I7517fe368496515c312e0360fd5c2f8f5be823c6 Reviewed-on: https://chromium-review.googlesource.com/482599 Commit-Ready: Rahul Chaudhry <rahulchaudhry@chromium.org> Tested-by: Rahul Chaudhry <rahulchaudhry@chromium.org> Reviewed-by: Rahul Chaudhry <rahulchaudhry@chromium.org> [modify] https://crrev.com/a331ad33b8d4ddf088225aae1602e57c77cc3ca0/dev-lang/go/go-1.8.1.ebuild [add] https://crrev.com/a331ad33b8d4ddf088225aae1602e57c77cc3ca0/dev-lang/go/go-1.8.1-r1.ebuild
,
Apr 25 2017
,
May 30 2017
,
Aug 1 2017
,
Aug 3 2017
Closing. Please reopen it if its not fixed. Thanks! |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by rahulchaudhry@chromium.org
, Apr 19 2017