flynn-archive/flynn-demo

Initial `make` breaks after `vagrant up`

Closed this issue · 3 comments

Bringing machine 'default' up with 'virtualbox' provider...
[default] Clearing any previously set forwarded ports...
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] Booting VM...
GuestAdditions 4.2.12 running --- OK.
[default] Waiting for machine to boot. This may take a few minutes...
[default] Machine booted and ready!
[default] Mounting shared folders...
[default] -- /vagrant
david-imac:~/Code/flynn-dev vagrant ssh                                                                                                                                                                                                                                                                 git:master
Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.8.0-33-generic x86_64)

 * Documentation:  https://help.ubuntu.com/
Welcome to your Vagrant-built virtual machine.
Last login: Fri Sep 14 06:23:18 2012 from 10.0.2.2
vagrant@precise64:/vagrant$ make
wget -O godeb.tar.gz http://j.mp/godeb
--2013-11-14 23:22:04--  http://j.mp/godeb
Resolving j.mp (j.mp)... 69.58.188.46, 69.58.188.45
Connecting to j.mp (j.mp)|69.58.188.46|:80... connected.
HTTP request sent, awaiting response... 301 Moved
Location: https://godeb.s3.amazonaws.com/godeb-amd64.tar.gz [following]
--2013-11-14 23:22:04--  https://godeb.s3.amazonaws.com/godeb-amd64.tar.gz
Resolving godeb.s3.amazonaws.com (godeb.s3.amazonaws.com)... 205.251.243.105
Connecting to godeb.s3.amazonaws.com (godeb.s3.amazonaws.com)|205.251.243.105|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1216540 (1.2M) [binary/octet-stream]
Saving to: `godeb.tar.gz'

100%[=========================================================================================================================================================================================================================================================================>] 1,216,540   1.86M/s   in 0.6s

2013-11-14 23:22:05 (1.86 MB/s) - `godeb.tar.gz' saved [1216540/1216540]

tar -zxvf godeb.tar.gz
godeb
mkdir -p bin
mv godeb bin/godeb
sudo apt-get install -y mercurial
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  mercurial-common
Suggested packages:
  qct wish vim emacs kdiff3 tkdiff meld xxdiff python-mysqldb python-pygments python-openssl
The following NEW packages will be installed:
  mercurial mercurial-common
0 upgraded, 2 newly installed, 0 to remove and 156 not upgraded.
Need to get 1,983 kB of archives.
After this operation, 6,701 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise/universe mercurial-common all 2.0.2-1ubuntu1 [1,945 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ precise/universe mercurial amd64 2.0.2-1ubuntu1 [38.0 kB]
Fetched 1,983 kB in 1s (1,587 kB/s)
Selecting previously unselected package mercurial-common.
(Reading database ... 79456 files and directories currently installed.)
Unpacking mercurial-common (from .../mercurial-common_2.0.2-1ubuntu1_all.deb) ...
Selecting previously unselected package mercurial.
Unpacking mercurial (from .../mercurial_2.0.2-1ubuntu1_amd64.deb) ...
Processing triggers for man-db ...
Setting up mercurial-common (2.0.2-1ubuntu1) ...
Setting up mercurial (2.0.2-1ubuntu1) ...

Creating config file /etc/mercurial/hgrc.d/hgext.rc with new version
sudo apt-get install -y git
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  git-man liberror-perl
Suggested packages:
  git-daemon-run git-daemon-sysvinit git-doc git-el git-arch git-cvs git-svn git-email git-gui gitk gitweb
The following NEW packages will be installed:
  git git-man liberror-perl
0 upgraded, 3 newly installed, 0 to remove and 156 not upgraded.
Need to get 6,741 kB of archives.
After this operation, 15.2 MB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise/main liberror-perl all 0.17-1 [23.8 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ precise/main git-man all 1:1.7.9.5-1 [630 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ precise/main git amd64 1:1.7.9.5-1 [6,087 kB]
Fetched 6,741 kB in 34s (196 kB/s)
Selecting previously unselected package liberror-perl.
(Reading database ... 80069 files and directories currently installed.)
Unpacking liberror-perl (from .../liberror-perl_0.17-1_all.deb) ...
Selecting previously unselected package git-man.
Unpacking git-man (from .../git-man_1%3a1.7.9.5-1_all.deb) ...
Selecting previously unselected package git.
Unpacking git (from .../git_1%3a1.7.9.5-1_amd64.deb) ...
Processing triggers for man-db ...
Setting up liberror-perl (0.17-1) ...
Setting up git-man (1:1.7.9.5-1) ...
Setting up git (1:1.7.9.5-1) ...
sudo bin/godeb install 1.1.2
processing https://go.googlecode.com/files/go1.1.2.linux-amd64.tar.gz
package go_1.1.2-godeb1_amd64.deb ready
Selecting previously unselected package go.
(Reading database ... 80717 files and directories currently installed.)
Unpacking go (from go_1.1.2-godeb1_amd64.deb) ...
Setting up go (1.1.2-godeb1) ...
wget https://github.com/coreos/etcd/releases/download/v0.1.2/etcd-v0.1.2-Linux-x86_64.tar.gz
--2013-11-14 23:23:27--  https://github.com/coreos/etcd/releases/download/v0.1.2/etcd-v0.1.2-Linux-x86_64.tar.gz
Resolving github.com (github.com)... 192.30.252.131
Connecting to github.com (github.com)|192.30.252.131|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://s3.amazonaws.com/github-cloud/releases/11225014/3621132e-3200-11e3-81b2-eee0a250d1eb.gz?response-content-disposition=attachment%3B%20filename%3Detcd-v0.1.2-Linux-x86_64.tar.gz&AWSAccessKeyId=AKIAISTNZFOVBIJMK3TQ&Expires=1384471468&Signature=nIzChw4FiDp0xHyn%2FilbXX1kOcw%3D [following]
--2013-11-14 23:23:27--  https://s3.amazonaws.com/github-cloud/releases/11225014/3621132e-3200-11e3-81b2-eee0a250d1eb.gz?response-content-disposition=attachment%3B%20filename%3Detcd-v0.1.2-Linux-x86_64.tar.gz&AWSAccessKeyId=AKIAISTNZFOVBIJMK3TQ&Expires=1384471468&Signature=nIzChw4FiDp0xHyn%2FilbXX1kOcw%3D
Resolving s3.amazonaws.com (s3.amazonaws.com)... 205.251.242.150
Connecting to s3.amazonaws.com (s3.amazonaws.com)|205.251.242.150|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3687906 (3.5M) [application/octet-stream]
Saving to: `etcd-v0.1.2-Linux-x86_64.tar.gz'

100%[=========================================================================================================================================================================================================================================================================>] 3,687,906   1.97M/s   in 1.8s

2013-11-14 23:23:29 (1.97 MB/s) - `etcd-v0.1.2-Linux-x86_64.tar.gz' saved [3687906/3687906]

tar -zxvf etcd-v0.1.2-Linux-x86_64.tar.gz
etcd-v0.1.2-Linux-x86_64/
etcd-v0.1.2-Linux-x86_64/etcdctl
etcd-v0.1.2-Linux-x86_64/README-etcd.md
etcd-v0.1.2-Linux-x86_64/etcd
etcd-v0.1.2-Linux-x86_64/README-etcdctl.md
cp etcd-v0.1.2-Linux-x86_64/etcd bin
go get -v github.com/coreos/go-etcd/etcd
github.com/coreos/go-etcd (download)
github.com/coreos/go-log (download)
bitbucket.org/kardianos/osext (download)
github.com/coreos/go-systemd (download)
bitbucket.org/kardianos/osext
github.com/coreos/go-systemd/journal
github.com/coreos/go-log/log
github.com/coreos/go-etcd/etcd
cd src/github.com/coreos/go-etcd && git checkout 7ea284fa
Previous HEAD position was 8a44ce0... Merge pull request #50 from hmarr/modified-index
HEAD is now at 7ea284f... Merge pull request #40 from benbjohnson/decouple-response
go get -v github.com/flynn/go-discover/discoverd
github.com/flynn/go-discover (download)
github.com/flynn/rpcplus (download)
github.com/flynn/rpcplus
github.com/flynn/go-discover/discover
# github.com/flynn/go-discover/discover
src/github.com/flynn/go-discover/discover/backend_etcd.go:90: not enough arguments in call to b.Client.Get
src/github.com/flynn/go-discover/discover/backend_etcd.go:90: cannot use *etcd.Response as type []*etcd.Response in return argument
src/github.com/flynn/go-discover/discover/backend_etcd.go:109: not enough arguments in call to b.Client.Get
src/github.com/flynn/go-discover/discover/backend_etcd.go:114: b.Client.TestAndSet undefined (type *etcd.Client has no field or method TestAndSet)
src/github.com/flynn/go-discover/discover/backend_etcd.go:114: invalid operation: resp[0] (index of type *etcd.Response)
make: *** [bin/discoverd] Error 2

I'll dig in a bit after dinner but wanted to get this up here.

Duplicate of #2, this is already fixed in master. This should do the trick for you:

rm -rf /vagrant/pkg/linux_amd64/github.com/coreos/go-etcd/etcd.a

Looks like that worked, my mistake!