Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 549598 - dev-lang/go-bootstrap: Build fails with FEATURES=splitdebug
Summary: dev-lang/go-bootstrap: Build fails with FEATURES=splitdebug
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
: 558400 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-05-15 23:26 UTC by Geoff Levand
Modified: 2015-08-23 15:41 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
bug fix patch (file_549598.txt,1.27 KB, text/plain)
2015-05-15 23:26 UTC, Geoff Levand
Details
dev-lang/go-bootstrap: avoid stripping test data files (0001-dev-lang-go-bootstrap-avoid-stripping-test-data-file.patch,1.72 KB, patch)
2015-08-21 20:44 UTC, mike@marineau.org
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Geoff Levand 2015-05-15 23:26:28 UTC
Created attachment 403352 [details]
bug fix patch

When emerging with FEATURES=splitdebug dev-lang/go and dev-lang/go-bootstrap have the same debug build-id for the file src/debug/dwarf/testdata/typedef.elf.

 * Detected file collision(s):
 * 
 *      /usr/lib/debug/.build-id/3c/bafbed5802dff5c21b34efcb0c6eb249a408ac.debug
 *      /usr/lib/debug/.build-id/3c/bafbed5802dff5c21b34efcb0c6eb249a408ac
Comment 1 Geoff Levand 2015-05-22 17:12:14 UTC
bump
Comment 2 Mike Gilbert gentoo-dev 2015-05-23 15:14:49 UTC
You probably need to rebuild gcc; the build-id stuff has been disabled for months.

See bug 526144.
Comment 3 Marien Zwart (RETIRED) gentoo-dev 2015-08-21 09:09:41 UTC
Reopening, it's slightly more interesting than that.

I'm getting this with a fairly recently built gcc-4.9.3 (from July 2nd this year, so half a year more recent than that bug).

The collision is on:

 * dev-lang/go-1.4.2:0::gentoo
 *      /usr/lib/debug/.build-id/3c/bafbed5802dff5c21b34efcb0c6eb249a408ac
 *      /usr/lib/debug/.build-id/3c/bafbed5802dff5c21b34efcb0c6eb249a408ac.debug

The former is a symlink to /usr/lib/go/src/debug/dwarf/testdata/typedef.elf.

This is in fact a testdata file that's included in the go1.4.2.src.tar.gz tarball:

% tar xf /usr/portage/distfiles/go1.4.2.src.tar.gz
% file ./go/src/debug/dwarf/testdata/typedef.elf
./go/src/debug/dwarf/testdata/typedef.elf: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.15, BuildID[sha1]=3cbafbed5802dff5c21b34efcb0c6eb249a408ac, not stripped

I suspect the toolchain used to create this file had "the build-id stuff" enabled, and that's biting us.

The source for the testdata file seems to be included (go/src/debug/dwarf/testdata/typedef.c). One workaround might be to rebuild the testdata file in the ebuild. Another workaround might be to remove the problematic testdata from go-bootstrap, only keeping it in go proper.

In the mean time, I'll go see if downgrading go works around this.
Comment 4 Marien Zwart (RETIRED) gentoo-dev 2015-08-21 09:11:23 UTC
...that was a silly suggestion, there is no older go ebuild in the tree.
Comment 5 mike@marineau.org 2015-08-21 20:44:17 UTC
Created attachment 409784 [details, diff]
dev-lang/go-bootstrap: avoid stripping test data files

Another way to resolve this issue is to simply avoid stripping test data files as the latest go-9999 ebuild does. Here's a ebuild patch to do just that :)
Comment 6 Marien Zwart (RETIRED) gentoo-dev 2015-08-23 09:03:03 UTC
*** Bug 558400 has been marked as a duplicate of this bug. ***
Comment 7 William Hubbs gentoo-dev 2015-08-23 15:41:17 UTC
The patch in comment #5 was applied, thanks much.
Let me know if this is still an issue.

William