Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 681740 - dev-lang/go-1.12.1 fails to compile on ARM - ERROR: dev-lang/go-1.12.1::gentoo failed (compile phase): build failed (no error message)
Summary: dev-lang/go-1.12.1 fails to compile on ARM - ERROR: dev-lang/go-1.12.1::gento...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM Linux
: Normal normal (vote)
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-25 14:44 UTC by Nuno
Modified: 2019-12-29 19:28 UTC (History)
1 user (show)

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


Attachments
emerge --info '=dev-lang/go-1.12.1::gentoo' (emerge-info.txt,5.91 KB, text/plain)
2019-03-25 14:44 UTC, Nuno
Details
environment (environment.gz,13.38 KB, application/gzip)
2019-03-25 14:45 UTC, Nuno
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nuno 2019-03-25 14:44:40 UTC
Created attachment 570718 [details]
emerge --info '=dev-lang/go-1.12.1::gentoo'

dev-lang/go-1.11.5 also fails to compile.

emerge pretend:

[ebuild     U ] dev-lang/go-1.12.1 [1.10.1] USE="(-gccgo)"


build.log:

```
 * Package:    dev-lang/go-1.12.1
 * Repository: gentoo
 * Maintainer: williamh@gentoo.org
 * USE:        arm elibc_glibc kernel_linux userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking go1.12.1.src.tar.gz to /var/tmp/portage/dev-lang/go-1.12.1/work
>>> Unpacking go-linux-amd64-bootstrap-1.8.tbz to /var/tmp/portage/dev-lang/go-1.12.1/work
>>> Unpacking go-linux-arm-bootstrap-1.8.tbz to /var/tmp/portage/dev-lang/go-1.12.1/work
>>> Unpacking go-linux-arm64-bootstrap-1.8.tbz to /var/tmp/portage/dev-lang/go-1.12.1/work
>>> Unpacking go-linux-ppc64-bootstrap-1.8.tbz to /var/tmp/portage/dev-lang/go-1.12.1/work
>>> Unpacking go-linux-ppc64le-bootstrap-1.8.tbz to /var/tmp/portage/dev-lang/go-1.12.1/work
>>> Unpacking go-linux-s390x-bootstrap-1.8.tbz to /var/tmp/portage/dev-lang/go-1.12.1/work
>>> Unpacking go-linux-386-bootstrap-1.8.tbz to /var/tmp/portage/dev-lang/go-1.12.1/work
>>> Unpacking go-freebsd-amd64-bootstrap-1.8.tbz to /var/tmp/portage/dev-lang/go-1.12.1/work
>>> Unpacking go-freebsd-386-bootstrap-1.8.tbz to /var/tmp/portage/dev-lang/go-1.12.1/work
>>> Unpacking go-darwin-amd64-bootstrap-1.8.tbz to /var/tmp/portage/dev-lang/go-1.12.1/work
>>> Unpacking go-solaris-amd64-bootstrap-1.8.tbz to /var/tmp/portage/dev-lang/go-1.12.1/work
>>> Source unpacked in /var/tmp/portage/dev-lang/go-1.12.1/work
>>> Preparing source in /var/tmp/portage/dev-lang/go-1.12.1/work/go ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-lang/go-1.12.1/work/go ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-lang/go-1.12.1/work/go ...
Building Go cmd/dist using /var/tmp/portage/dev-lang/go-1.12.1/work/go-linux-arm-bootstrap.
 * ERROR: dev-lang/go-1.12.1::gentoo failed (compile phase):
 *   build failed
 * 
 * Call stack:
 *     ebuild.sh, line 124:  Called src_compile
 *   environment, line 1150:  Called die
 * The specific snippet of code:
 *       ./make.bash || die "build failed"
 * 
 * If you need support, post the output of `emerge --info '=dev-lang/go-1.12.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/go-1.12.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-lang/go-1.12.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/go-1.12.1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-lang/go-1.12.1/work/go/src'
 * S: '/var/tmp/portage/dev-lang/go-1.12.1/work/go'
```
Comment 1 Nuno 2019-03-25 14:45:51 UTC
Created attachment 570720 [details]
environment
Comment 2 William Hubbs gentoo-dev 2019-03-31 19:42:36 UTC
@arm:
Go 1.12.1 is stable on arm, so if you can assist me with
figuring out what is going on here it would be greatly appreciated.

Thanks,

William
Comment 3 Nuno 2019-08-29 22:10:41 UTC
dev-lang/go-1.12.5 is also affected. Tried both with and without 'system-bootstrap'.

emerge -pqv '=dev-lang/go-1.12.5::gentoo'
[ebuild     U ] dev-lang/go-1.12.5 [1.12.1] USE="system-bootstrap%* -gccgo"


 * Package:    dev-lang/go-1.12.5
 * Repository: gentoo
 * Maintainer: williamh@gentoo.org
 * USE:        arm elibc_glibc kernel_linux system-bootstrap userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking go1.12.5.src.tar.gz to /var/tmp/portage/dev-lang/go-1.12.5/work
>>> Source unpacked in /var/tmp/portage/dev-lang/go-1.12.5/work
>>> Preparing source in /var/tmp/portage/dev-lang/go-1.12.5/work/go ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-lang/go-1.12.5/work/go ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-lang/go-1.12.5/work/go ...
Building Go cmd/dist using /usr/lib/go.
 * ERROR: dev-lang/go-1.12.5::gentoo failed (compile phase):
 *   build failed
 * 
 * Call stack:
 *     ebuild.sh, line 124:  Called src_compile
 *   environment, line 1169:  Called die
 * The specific snippet of code:
 *       ./make.bash || die "build failed"
 * 
 * If you need support, post the output of `emerge --info '=dev-lang/go-1.12.5::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/go-1.12.5::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-lang/go-1.12.5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/go-1.12.5/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-lang/go-1.12.5/work/go/src'
 * S: '/var/tmp/portage/dev-lang/go-1.12.5/work/go'


------

I tried running './make.bash' manually and it works...

portage@banana:~/dev-lang/go-1.12.5/work/go/src$ ./make.bash
Building Go cmd/dist using /usr/lib/go.
Building Go toolchain1 using /usr/lib/go.
Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1.
Building Go toolchain2 using go_bootstrap and Go toolchain1.
Building Go toolchain3 using go_bootstrap and Go toolchain2.
Building packages and commands for linux/arm.
---
Installed Go for linux/arm in /var/tmp/portage/dev-lang/go-1.12.5/work/go
Installed commands in /var/tmp/portage/dev-lang/go-1.12.5/work/go/bin
portage@banana:~/dev-lang/go-1.12.5/work/go/src$ 


Anything else I can try to debug this, let me know. Meanwhile, I've been updating go using a binary package from another host.
Comment 4 Nuno 2019-12-29 19:28:21 UTC
dev-lang/go-1.12.13 still affected. Tried both with and without system-bootstrap:

[ebuild     U ] dev-lang/go-1.12.13 [1.12.5] USE="-gccgo -system-bootstrap"
[ebuild     U ] dev-lang/go-1.12.13 [1.12.5] USE="system-bootstrap* -gccgo"



build.log:

>  * Package:    dev-lang/go-1.12.13
>  * Repository: gentoo
>  * Maintainer: williamh@gentoo.org
>  * USE:        arm elibc_glibc kernel_linux system-bootstrap userland_GNU
>  * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
> >>> Unpacking source...
> >>> Unpacking go1.12.13.src.tar.gz to /var/tmp/portage/dev-lang/go-1.12.13/work
> >>> Source unpacked in /var/tmp/portage/dev-lang/go-1.12.13/work
> >>> Preparing source in /var/tmp/portage/dev-lang/go-1.12.13/work/go ...
> >>> Source prepared.
> >>> Configuring source in /var/tmp/portage/dev-lang/go-1.12.13/work/go ...
> >>> Source configured.
> >>> Compiling source in /var/tmp/portage/dev-lang/go-1.12.13/work/go ...
> Building Go cmd/dist using /usr/lib/go.
>  * ERROR: dev-lang/go-1.12.13::gentoo failed (compile phase):
>  *   build failed
>  * 
>  * Call stack:
>  *     ebuild.sh, line 125:  Called src_compile
>  *   environment, line 1169:  Called die
>  * The specific snippet of code:
>  *       ./make.bash || die "build failed"
>  * 
>  * If you need support, post the output of `emerge --info '=dev-lang/go-1.12.13::gentoo'`,
>  * the complete build log and the output of `emerge -pqv '=dev-lang/go-1.12.13::gentoo'`.
>  * The complete build log is located at '/var/tmp/portage/dev-lang/go-1.12.13/temp/build.log'.
>  * The ebuild environment file is located at '/var/tmp/portage/dev-lang/go-1.12.13/temp/environment'.
>  * Working directory: '/var/tmp/portage/dev-lang/go-1.12.13/work/go/src'
>  * S: '/var/tmp/portage/dev-lang/go-1.12.13/work/go'