Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dev-lang/go install error [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
gentoo-find
n00b
n00b


Joined: 07 Apr 2018
Posts: 69

PostPosted: Tue Apr 30, 2019 6:56 am    Post subject: dev-lang/go install error [solved] Reply with quote

Code:
* go1.12.4.src.tar.gz BLAKE2B SHA512 size ;-) ...                                              [ ok ]
>>> Unpacking source...
>>> Unpacking go1.12.4.src.tar.gz to /var/tmp/portage/dev-lang/go-1.12.4/work
>>> Source unpacked in /var/tmp/portage/dev-lang/go-1.12.4/work
>>> Preparing source in /var/tmp/portage/dev-lang/go-1.12.4/work/go ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-lang/go-1.12.4/work/go ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-lang/go-1.12.4/work/go ...
Building Go cmd/dist using /var/tmp/portage/dev-lang/go-1.12.4/work/go-linux-amd64-bootstrap.
Building Go toolchain1 using /var/tmp/portage/dev-lang/go-1.12.4/work/go-linux-amd64-bootstrap.
# bootstrap/math/bits
/var/tmp/portage/dev-lang/go-1.12.4/work/go/src/math/bits/bits.go:534:3: error: divideError is not a function; //go:linkname is only supported for functions
 //go:linkname divideError runtime.divideError
   ^
/var/tmp/portage/dev-lang/go-1.12.4/work/go/src/math/bits/bits.go:531:3: error: overflowError is not a function; //go:linkname is only supported for functions
 //go:linkname overflowError runtime.overflowError
   ^
go tool dist: FAILED: /var/tmp/portage/dev-lang/go-1.12.4/work/go-linux-amd64-bootstrap/bin/go install -gcflags=-l -tags=math_big_pure_go compiler_bootstrap bootstrap/cmd/...: exit status 2
 * ERROR: dev-lang/go-1.12.4::gentoo failed (compile phase):
 *   build failed
 *
 * Call stack:
 *     ebuild.sh, line 124:  Called src_compile
 *   environment, line 1198:  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.4::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/go-1.12.4::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-lang/go-1.12.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/go-1.12.4/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-lang/go-1.12.4/work/go/src'
 * S: '/var/tmp/portage/dev-lang/go-1.12.4/work/go'

>>> Failed to emerge dev-lang/go-1.12.4, Log file:

>>>  '/var/tmp/portage/dev-lang/go-1.12.4/temp/build.log'

 * Messages for package dev-lang/go-1.12.4:

 * ERROR: dev-lang/go-1.12.4::gentoo failed (compile phase):
 *   build failed
 *
 * Call stack:
 *     ebuild.sh, line 124:  Called src_compile
 *   environment, line 1198:  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.4::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/go-1.12.4::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-lang/go-1.12.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/go-1.12.4/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-lang/go-1.12.4/work/go/src'
 * S: '/var/tmp/portage/dev-lang/go-1.12.4/work/go'
 *
 * The following package has failed to build, install, or execute postinst:
 *
 *  (dev-lang/go-1.12.4:0/1.12.4::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/tmp/portage/dev-lang/go-1.12.4/temp/build.log'


Last edited by gentoo-find on Tue Apr 30, 2019 9:01 am; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 24488
Location: here

PostPosted: Tue Apr 30, 2019 7:53 am    Post subject: Reply with quote

You enabled gccgo use flag? If yes try to disable it (see also https://github.com/golang/go/issues/30771)
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
gentoo-find
n00b
n00b


Joined: 07 Apr 2018
Posts: 69

PostPosted: Tue Apr 30, 2019 9:00 am    Post subject: Reply with quote

fedeliallalinea wrote:
You enabled gccgo use flag? If yes try to disable it (see also https://github.com/golang/go/issues/30771)


Thanks solved my are problem
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum