Unable to build packer from source with gccgo
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gccgo-5 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
---Problem Description---
Unable to build packer (https:/
OSUOSL would like to use packer to help standardize cloud images for their public cloud environment.
---uname output---
Linux mongodb 3.19.0-9-generic #9-Ubuntu SMP Wed Mar 11 17:50:43 UTC 2015 ppc64le ppc64le ppc64le GNU/Linux
Machine Type = P8 KVM guest
---Steps to Reproduce---
I believe there are actually (at least) two defects here.
1) go get ./... (used to get all the many dependencies of packer) fails to do anything with gccgo, e.g. on the first step:
go get -u github.
gocode/
"github.
2) One can manually go get <...> each package, as `make` fails, but then a few tests fail (from memory, github.
Attempting the same steps with golang built from source (latest git tree) succeeds (go version devel +41dbcc1 Tue Mar 17 17:33:21 2015 +0000 linux/ppc64le)
> > ---Steps to Reproduce---
> >
> > I believe there are actually (at least) two defects here.
> >
> > 1) go get ./... (used to get all the many dependencies of packer) fails to
> > do anything with gccgo, e.g. on the first step:
> >
> > go get -u github.
> >
> > gocode/
> > ?github.
> > "github.
> >
> >
> > 2) One can manually go get <...> each package, as `make` fails, but then a
> > few tests fail (from memory,
>
> Does this mean you were able to build what you wanted, but had to do manual
> steps? (I'm trying to understand what you mean by "as `make` fails".)
So once you can't do `go get` recursively as expected, you can run `make`. It will fail for each recursive dependency it needs, as it encounters them in the build. You can then manually `go get` them and run `make` again. It will fail again, possibly at a new location. Sometimes the `go get` will fail as well due to a recursive dependency it doesn't know how to satisfy. In which case another manual `go get` is needed before the first can be completed.
But yes, eventually, after doing these manual `go get`, it built but the tests failed.
go get code.google.
go get code.google.
go get code.google.
go get github.
go get github.
go get github.
go get github.
go get github.
go get github.
go get github.
go get github.
go get github.
go get github.
go get github.
go get github.
go get github.
go get github.
go get github.
go get github.
go get github.
go get github.
go get github.
go get github.
go get github.
go get github.
go get github.
go get github.
go get golang.
go get google.
go get gopkg.in/tomb.v1
> > github.
> >
>
> Can you provide information on the test failures so I know exactly what
> problem you are describing.
Attaching. These same tests succeed with golang from source.
There are two problems here.
One is in the 'go' tool and how it determines dependencies with gccgo. I can see the problem, just trying to understand how best to fix it.
The other is a testcase failure in the gccgo built program.
I will work on getting the fix to the go tool in first.
> What directory did you run this from?
That is the output of `make` run in $GOPATH/
A gcc bugzilla has been opened for the 'go get' issue https:/
Fix has been integrated into gcc trunk for the 'go get' issue as commit id 221643.
I will look into the testcase failures.
affects: | ubuntu → gcc-defaults (Ubuntu) |
tags: |
added: targetmilestone-inin1504 removed: targetmilestone-inin--- |
affects: | gcc-defaults (Ubuntu) → gccgo-5 (Ubuntu) |
Default Comment by Bridge