Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 577890 - app-emulation/docker-swarm-1.0.1: go build returned non-zero
Summary: app-emulation/docker-swarm-1.0.1: go build returned non-zero
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Zac Medico
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-20 22:49 UTC by Guillaume Seren
Modified: 2016-03-30 19:35 UTC (History)
0 users

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


Attachments
emerge build log (emerge_app-docker-swarm-1.0.1.log,46.98 KB, text/plain)
2016-03-20 22:49 UTC, Guillaume Seren
Details
emerge --info (file_577890.txt,6.20 KB, text/plain)
2016-03-30 11:59 UTC, Guillaume Seren
Details
docker-swarm-1.1.3 build log (file_577890.txt,77.56 KB, text/plain)
2016-03-30 12:03 UTC, Guillaume Seren
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Guillaume Seren 2016-03-20 22:49:57 UTC
Created attachment 428684 [details]
emerge build log

Hey,
I would like to install 'app-emulation/docker-swarm' on my gentoo box, but the ebuild seem's to be broken, here the available version:
* app-emulation/docker-swarm
     Available versions:  (~)1.0.1^t ~1.1.3^t
     Homepage:            https://docs.docker.com/swarm/
     Description:         A Docker-native clustering system

I've tested to install the two version with the same state:
 * ERROR: app-emulation/docker-swarm-1.0.1::gentoo failed (compile phase):
 *   (no error message)

I'll attach the full emerge log, to this bug.


Regards,
Guillaume.
Comment 1 Zac Medico gentoo-dev 2016-03-30 07:37:36 UTC
I don't see any useful error messages in the log. Please also attach a log for version 1.1.3.
Comment 2 Guillaume Seren 2016-03-30 11:46:19 UTC
(In reply to Zac Medico from comment #1)
> I don't see any useful error messages in the log. Please also attach a log
> for version 1.1.3.

@Zac:
Ok, I'll try to build the v1.1.3, I think the error is the same.

 * ERROR: app-emulation/docker-swarm-1.1.3::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 133:  Called src_compile
 *   environment, line 225:  Called die
 * The specific snippet of code:
 *       GOPATH="${WORKDIR}/${P}:${S}/Godeps/_workspace:$(get_golibdir_gopath)" go install -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}" || die
 * 
 * If you need support, post the output of `emerge --info '=app-emulation/docker-swarm-1.1.3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-emulation/docker-swarm-1.1.3::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-emulation/docker-swarm-1.1.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/docker-swarm-1.1.3/temp/environment'.
 * Working directory: '/var/tmp/portage/app-emulation/docker-swarm-1.1.3/work/docker-swarm-1.1.3/src/github.com/docker/swarm'
 * S: '/var/tmp/portage/app-emulation/docker-swarm-1.1.3/work/docker-swarm-1.1.3/src/github.com/docker/swarm'
Comment 3 Guillaume Seren 2016-03-30 11:59:34 UTC
Created attachment 429294 [details]
emerge --info
Comment 4 Guillaume Seren 2016-03-30 12:03:00 UTC
Created attachment 429296 [details]
docker-swarm-1.1.3 build log
Comment 5 Guillaume Seren 2016-03-30 12:04:07 UTC
I can provide more log, but the error is not really informative:
 * ERROR: app-emulation/docker-swarm-1.1.3::gentoo failed (compile phase):
 *   (no error message)

@Zac
Can you install it on your box ?
Comment 6 Zac Medico gentoo-dev 2016-03-30 16:59:26 UTC
(In reply to Guillaume Seren from comment #5)
> @Zac
> Can you install it on your box ?

Yes, it works for me.

What version of dev-lang/go do you have?
Comment 7 Guillaume Seren 2016-03-30 18:21:20 UTC
(In reply to Zac Medico from comment #6)
> Yes, it works for me.
> 
> What version of dev-lang/go do you have?

Oh strange !
I have other ebuild (docker / rkt ) installed that worked well.

My go version is:
go version go1.4.2 linux/amd64
Comment 8 Zac Medico gentoo-dev 2016-03-30 18:36:59 UTC
(In reply to Guillaume Seren from comment #7)
> My go version is:
> go version go1.4.2 linux/amd64

I'm using go-1.6-r2 here, so maybe that's the key difference. Can you try it with a newer dev-lang/go?
Comment 9 Guillaume Seren 2016-03-30 19:18:09 UTC
My v(In reply to Zac Medico from comment #8)
> I'm using go-1.6-r2 here, so maybe that's the key difference. Can you try it
> with a newer dev-lang/go?

I presume yes !

I think the problem, come that go is not not up-to-date, see eix:

eix dev-lang/go
[U] dev-lang/go
     Available versions:  1.5.3(0/1.5.3) ~1.6(0/1.6) ~1.6-r1(0/1.6) 1.6-r2(0/1.6) **9999(0/9999)
     Installed versions:  1.4.2(11:34:38 PM 12/04/2015)
     Homepage:            http://www.golang.org
     Description:         A concurrent garbage collected and typesafe programming language

So apparently there's some package's like go that are not up-to-date,
usually to upgrade my command is:
sudo emerge-webrsync && sudo emerge -auvDN @world --tree

But by searching a bit, I found 'sudo emerge --with-bdeps=y -uDpv world',
and it list some package to upgrade like go.

Do you have any idea why ?

I have upgrade to go 1.6-rc2 and the install of docker-swarm works now.

Thank you for the feedback @Zac ;)


Guillaume
Comment 10 Zac Medico gentoo-dev 2016-03-30 19:35:58 UTC
(In reply to Guillaume Seren from comment #9)
> My v(In reply to Zac Medico from comment #8)
> > I'm using go-1.6-r2 here, so maybe that's the key difference. Can you try it
> > with a newer dev-lang/go?
> 
> I presume yes !
> 
> I think the problem, come that go is not not up-to-date, see eix:
> 
> eix dev-lang/go
> [U] dev-lang/go
>      Available versions:  1.5.3(0/1.5.3) ~1.6(0/1.6) ~1.6-r1(0/1.6)
> 1.6-r2(0/1.6) **9999(0/9999)
>      Installed versions:  1.4.2(11:34:38 PM 12/04/2015)
>      Homepage:            http://www.golang.org
>      Description:         A concurrent garbage collected and typesafe
> programming language
> 
> So apparently there's some package's like go that are not up-to-date,
> usually to upgrade my command is:
> sudo emerge-webrsync && sudo emerge -auvDN @world --tree
> 
> But by searching a bit, I found 'sudo emerge --with-bdeps=y -uDpv world',
> and it list some package to upgrade like go.
> 
> Do you have any idea why ?

Yeah, it's explained here:

https://wiki.gentoo.org/wiki/Project:Portage/FAQ#Why_is_it_that_emerge_does_not_update_all_packages.3F

Since dev-lang/go is only a build-time dependency, it won't get updated unless a go package is being built or --with-bdeps=y is specified.

> I have upgrade to go 1.6-rc2 and the install of docker-swarm works now.
> 
> Thank you for the feedback @Zac ;)
> 
> 
> Guillaume

Thanks, fixed to require go-1.6:

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