Cannot build r2379 on amd64+precise
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
Critical
|
Curtis Hovey |
Bug Description
A recent revision or the setup of the unit-tests broke the build. We first investigated the failure assuming that the issue was dependency changes made for the tests. We added an explicit call to make build before make check to isolate the impiled compilation errors. We now wonder if the break is caused by a code change. I believe the correct dependencies for amd64+precise were installed:
++ apt-cache madison juju-mongodb
+ [[ '' =~ .*juju-mongodb.* ]]
+ juju_db=
++ uname -p
+ [[ x86_64 =~ .*x86|armel|armhf.* ]]
+ juju_compiler=
+ sudo apt-get install -y build-essential bzr distro-info-data git-core mercurial zip rsyslog-gnutls mongodb-server golang
Reading package lists...
The make build step fails, we never get to run the unit tests.
go build launchpad.
# launchpad.
cert/cert.go:172: template.
# launchpad.
schema/
# launchpad.
utils/file.go:70: function ends without a return statement
# code.google.
../../code.
# launchpad.
cmd/cmd.go:137: undefined: signal.Stop
# launchpad.
rpc/server.go:340: function ends without a return statement
# launchpad.
state/watcher/
# launchpad.
state/presence/
# launchpad.
testing/
# launchpad.
utils/parallel/
utils/parallel/
# launchpad.net/gwacl
../gwacl/
../gwacl/
../gwacl/
../gwacl/
# launchpad.
worker/
# launchpad.
log/syslog/
log/syslog/
log/syslog/
# launchpad.
../goose/
# launchpad.
utils/tailer/
# launchpad.
utils/voyeur/
make: *** [build] Error 2
+ EXIT_STATUS=2
+ set -e
+ [[ true == \t\r\u\e ]]
+ /var/lib/
INSTANCE i-867a8ba5
+ exit 2
Build step 'Execute shell' marked build as failure
Changed in juju-core: | |
status: | In Progress → Fix Released |
That looks a lot like we are building with go 1.0 instead of go 1.1.
For series != trusty we have to have the ppa:juju/golang version of go
installed in order to do the build.
I don't think this is a regression in r2379 because we've been ending
functions without return for >6 months now.
On Fri, Mar 7, 2014 at 2:01 PM, Curtis Hovey <email address hidden> wrote: mongodb- server golang net/juju- core/.. . net/juju- core/cert IPAddresses undefined (type *x509.Certificate has no field or method IPAddresses) net/juju- core/schema schema. go:32: function ends without a return statement net/juju- core/utils com/p/go. crypto/ ssh google. com/p/go. crypto/ ssh/keys. go:560: undefined: x509.ParseECPri vateKey net/juju- core/cmd net/juju- core/rpc net/juju- core/state/ watcher watcher. go:212: function ends without a return statement net/juju- core/state/ presence presence. go:553: function ends without a return statement net/juju- core/testing/ checkers checkers/ deepequal. go:43: function ends without a return statement net/juju- core/utils/ parallel try.go: 78: function ends without a return statement try.go: 122: function ends without a return statement management. go:346: function ends without a return statement retry_policy. go:75: function ends without a return statement retry_policy. go:105: function ends without a return statement x509dispatcher. go:114: function ends without a return statement net/juju- core/worker/ resumer resumer/ resumer. go:61: function ends without a return statement net/juju- core/log/ syslog config. go:228: method slConfig.CACertPath is not an expression, must be called config. go:229: method slConfig. ServerCertPath is not an expression, must be called config. go:230: method slConfig. ServerKeyPath is not an expression, must be called net/goose/ identity
> Public bug reported:
>
> A recent revision or the setup of the unit-tests broke the build. We
> first investigated the failure assuming that the issue was dependency
> changes made for the tests. We added an explicit call to make build
> before make check to isolate the impiled compilation errors. We now
> wonder if the break is caused by a code change. I believe the correct
> dependencies for amd64+precise were installed:
>
> ++ apt-cache madison juju-mongodb
> + [[ '' =~ .*juju-mongodb.* ]]
> + juju_db=
> ++ uname -p
> + [[ x86_64 =~ .*x86|armel|armhf.* ]]
> + juju_compiler=
> + sudo apt-get install -y build-essential bzr distro-info-data git-core mercurial zip rsyslog-gnutls mongodb-server golang
> Reading package lists...
>
> The make build step fails, we never get to run the unit tests.
>
> go build launchpad.
> # launchpad.
> cert/cert.go:172: template.
> # launchpad.
> schema/
> # launchpad.
> utils/file.go:70: function ends without a return statement
> # code.google.
> ../../code.
> # launchpad.
> cmd/cmd.go:137: undefined: signal.Stop
> # launchpad.
> rpc/server.go:340: function ends without a return statement
> # launchpad.
> state/watcher/
> # launchpad.
> state/presence/
> # launchpad.
> testing/
> # launchpad.
> utils/parallel/
> utils/parallel/
> # launchpad.net/gwacl
> ../gwacl/
> ../gwacl/
> ../gwacl/
> ../gwacl/
> # launchpad.
> worker/
> # launchpad.
> log/syslog/
> log/syslog/
> log/syslog/
> # launchpad.
> ../goose/iden...