Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 579958 - dev-lang/go[gccgo] fails to build with =sys-devel/gcc-5.3.0[go]
Summary: dev-lang/go[gccgo] fails to build with =sys-devel/gcc-5.3.0[go]
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: William Hubbs
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2016-04-14 13:20 UTC by Andrius Štikonas
Modified: 2016-04-28 16:34 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrius Štikonas 2016-04-14 13:20:01 UTC
go failed to bootstrap with gccgo. My gcc version is 5.3.0 (compiled on March 3, so after go-5 was enabled).

Build log:

[ebuild     U  ] dev-lang/go-1.6.1 [1.6-r2] USE="gccgo%*" 

Would you like to merge these packages? [Yes/No] 

>>> Verifying ebuild manifests
>>> Running pre-merge checks for dev-lang/go-1.6.1

>>> Emerging (1 of 1) dev-lang/go-1.6.1::gentoo
 * go1.6.1.src.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                                                                                           [ ok ]
>>> Unpacking source...
>>> Unpacking go1.6.1.src.tar.gz to /var/tmp/portage/dev-lang/go-1.6.1/work
>>> Source unpacked in /var/tmp/portage/dev-lang/go-1.6.1/work
>>> Preparing source in /var/tmp/portage/dev-lang/go-1.6.1/work/go ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-lang/go-1.6.1/work/go ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-lang/go-1.6.1/work/go ...
##### Building Go bootstrap tool.
cmd/dist
gcc-config: error: could not run/locate 'go'


Reproducible: Always
Comment 1 Andrius Štikonas 2016-04-14 13:20:54 UTC
Sorry for the typo, gcc was compiled on March 30.
Comment 2 Andrius Štikonas 2016-04-19 14:46:39 UTC
Looks like /usr/bin/go-5 can only be run from that folder and does not work when it is symlinked in some other folder
Comment 3 Zac Medico gentoo-dev 2016-04-19 16:39:27 UTC
Apparently the gcc-config wrapper can't be symlinked. It was my patch that led to this problem, so I went ahead and fixed it:

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf6b2654d8d63ffb965881f58d49eb7f832c681c
Comment 4 Andrius Štikonas 2016-04-20 20:58:59 UTC
Thanks! Tested it on amd64 and it worked. However, bootstrap doesn't work on ~arm, it gets stuck in an infinite loop (cmd/dist just never finishes). I guess some bug in gcc...
Comment 5 jy6x2b32pie9 2016-04-28 08:36:22 UTC
Exact same bug is back with go-1.6.2
Comment 6 Zac Medico gentoo-dev 2016-04-28 15:47:58 UTC
(In reply to jy6x2b32pie9 from comment #5)
> Exact same bug is back with go-1.6.2

Fixed now:

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=665cebe34f6e452bd138bc6749804e6ffc1cc865
Comment 7 Andrius Štikonas 2016-04-28 15:53:17 UTC
(In reply to Zac Medico from comment #6)
> (In reply to jy6x2b32pie9 from comment #5)
> > Exact same bug is back with go-1.6.2
> 
> Fixed now:
> 
> https://gitweb.gentoo.org/repo/gentoo.git/commit/
> ?id=665cebe34f6e452bd138bc6749804e6ffc1cc865

Can you also fix it in -9999 ebuild otherwise it will keep coming back.
Comment 8 Zac Medico gentoo-dev 2016-04-28 16:34:26 UTC
(In reply to Andrius Štikonas from comment #7)
> Can you also fix it in -9999 ebuild otherwise it will keep coming back.

Fixed now:

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9d3e68a0ce0bb76b0fc1f2e58877dbaac63daaa