Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 559970 - dev-db/etcd failed to build with new go
Summary: dev-db/etcd failed to build with new go
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Zac Medico
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-08 16:29 UTC by Harris Landgarten
Modified: 2016-02-28 14:52 UTC (History)
0 users

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 Harris Landgarten 2015-09-08 16:29:16 UTC
>>> Starting src_compile

Error:
  * In program cave perform install --hooks --managed-output --output-exclusivity with-others =dev-db/etcd-2.0.10-r1:0::gentoo --destination installed --x-of-y 1 of 1:
  * When installing 'dev-db/etcd-2.0.10-r1:0::gentoo':
  * When running an ebuild command on 'dev-db/etcd-2.0.10-r1:0::gentoo':
  * Install failed for 'dev-db/etcd-2.0.10-r1:0::gentoo' (paludis::ActionFailedError)

WORK=/var/tmp/paludis/dev-db-etcd-2.0.10-r1/temp/go-build998492715
package github.com/coreos/etcd
	imports runtime: C source files not allowed when not using cgo or SWIG: atomic_amd64x.c defs.c float.c heapdump.c lfstack.c malloc.c mcache.c mcentral.c mem_linux.c mfixalloc.c mgc0.c mheap.c msize.c os_linux.c panic.c parfor.c proc.c runtime.c signal.c signal_amd64x.c signal_unix.c stack.c string.c sys_x86.c vdso_linux_amd64.c

!!! ERROR in dev-db/etcd-2.0.10-r1::gentoo:
!!! In src_compile at line 3856
!!! (no message provided)

!!! Call stack:
!!!    * src_compile (/var/tmp/paludis/dev-db-etcd-2.0.10-r1/temp/loadsaveenv:3856)
!!!    * ebuild_f_compile (/usr/libexec/paludis/2/src_compile.bash:56)
!!!    * ebuild_main (/usr/libexec/paludis/ebuild.bash:668)
!!!    * main (/usr/libexec/paludis/ebuild.bash:691)


Same error with newer versions of etcd as well.
Comment 1 Zac Medico gentoo-dev 2016-02-22 07:11:01 UTC
Still a problem? I've added etcd-2.2.5 recently.
Comment 2 Harris Landgarten 2016-02-22 13:08:17 UTC
Still same error with dev-db/etcd-2.2.5
Comment 3 Zac Medico gentoo-dev 2016-02-28 04:56:45 UTC
(In reply to Harris Landgarten from comment #0)
> 	imports runtime: C source files not allowed when not using cgo or SWIG:
> atomic_amd64x.c defs.c float.c heapdump.c lfstack.c malloc.c mcache.c
> mcentral.c mem_linux.c mfixalloc.c mgc0.c mheap.c msize.c os_linux.c panic.c
> parfor.c proc.c runtime.c signal.c signal_amd64x.c signal_unix.c stack.c
> string.c sys_x86.c vdso_linux_amd64.c

I think this message might indicate that you have CGO_ENABLED=0 exported in your environment. Does it build if you export CGO_ENABLED=1 instead?
Comment 4 Harris Landgarten 2016-02-28 14:52:12 UTC
CGO_ENABLED is not in the environment at all


export CGO_ENABLED=1

and cave install etcd -zx

Checking 'etcd-2.2.5.tar.gz'... ok
>>> Running ebuild phase killold as root:root...
>>> Starting builtin_killold
>>> Done builtin_killold
>>> Completed ebuild phase killold
>>> Running ebuild phases init saveenv as paludisbuild:paludisbuild...
>>> Starting builtin_init
>>> Done builtin_init
>>> Starting builtin_saveenv
>>> Done builtin_saveenv
>>> Completed ebuild phases init saveenv
>>> Running ebuild phases loadenv setup saveenv as root:root...
>>> Starting builtin_loadenv
>>> Done builtin_loadenv
>>> Starting pkg_setup
>>> Done pkg_setup
>>> Starting builtin_saveenv
>>> Done builtin_saveenv
>>> Completed ebuild phases loadenv setup saveenv
>>> Running ebuild phases loadenv unpack saveenv as paludisbuild:paludisbuild...
>>> Starting builtin_loadenv
>>> Done builtin_loadenv
>>> Starting src_unpack
>>> Unpacking etcd-2.2.5.tar.gz to /var/tmp/paludis/dev-db-etcd-2.2.5/work
tar zxf /usr/portage/distfiles/etcd-2.2.5.tar.gz --no-same-owner
>>> Done src_unpack
>>> Starting builtin_saveenv
>>> Done builtin_saveenv
>>> Completed ebuild phases loadenv unpack saveenv
>>> Running ebuild phases loadenv prepare saveenv as paludisbuild:paludisbuild...
>>> Starting builtin_loadenv
>>> Done builtin_loadenv
>>> Starting src_prepare
>>> Done src_prepare
>>> Starting builtin_saveenv
>>> Done builtin_saveenv
>>> Completed ebuild phases loadenv prepare saveenv
>>> Running ebuild phases loadenv configure saveenv as paludisbuild:paludisbuild...
>>> Starting builtin_loadenv
>>> Done builtin_loadenv
>>> Starting src_configure
>>> Done src_configure
>>> Starting builtin_saveenv
>>> Done builtin_saveenv
>>> Completed ebuild phases loadenv configure saveenv
>>> Running ebuild phases loadenv compile saveenv as paludisbuild:paludisbuild...
>>> Starting builtin_loadenv
>>> Done builtin_loadenv
>>> Starting src_compile
WORK=/var/tmp/paludis/dev-db-etcd-2.2.5/temp/go-build512349225

Error:
  * In program cave perform install --hooks --managed-output --output-exclusivity with-others =dev-db/etcd-2.2.5:0::gentoo --destination installed --x-of-y 1 of 1:
  * When installing 'dev-db/etcd-2.2.5:0::gentoo':
  * When running an ebuild command on 'dev-db/etcd-2.2.5:0::gentoo':
  * Install failed for 'dev-db/etcd-2.2.5:0::gentoo' (paludis::ActionFailedError)

package github.com/coreos/etcd
	imports runtime: C source files not allowed when not using cgo or SWIG: atomic_amd64x.c defs.c float.c heapdump.c lfstack.c malloc.c mcache.c mcentral.c mem_linux.c mfixalloc.c mgc0.c mheap.c msize.c os_linux.c panic.c parfor.c proc.c runtime.c signal.c signal_amd64x.c signal_unix.c stack.c string.c sys_x86.c vdso_linux_amd64.c

!!! ERROR in dev-db/etcd-2.2.5::gentoo:
!!! In src_compile at line 2730
!!! (no message provided)

!!! Call stack:
!!!    * src_compile (/var/tmp/paludis/dev-db-etcd-2.2.5/temp/loadsaveenv:2730)
!!!    * ebuild_f_compile (/usr/libexec/paludis/2/src_compile.bash:56)
!!!    * ebuild_main (/usr/libexec/paludis/ebuild.bash:675)
!!!    * main (/usr/libexec/paludis/ebuild.bash:698)

diefunc: making ebuild PID 24645 exit with error
die trap: exiting with error.

Failed install to / for dev-db/etcd-2.2.5:0::gentoo