<p dir="ltr">It sounds like we should be bundling the libgo.so into the tar.gz that we are building. Either statically (so we dont have to worry about system skew) or just have it know to load it in the same dir as the executable. We *could* try to use a system lib, but then we're back into dealing with cross series version skew. (What version of libgo.so would we get on precise,  vs trusty,  etc)</p>

<p dir="ltr">Also I was surprised that the tar.gz is significantly bigger even without libgo.so in it. (Lasting time I uploaded tools it was 4.6MB, your log shows it as 5.5MB, and juju-1.10 was like 2.4MB IIRC)</p>
<p dir="ltr">John<br>
=:-></p>
<div class="gmail_quote">On Dec 5, 2013 10:11 AM, "David Cheney" <<a href="mailto:david.cheney@canonical.com">david.cheney@canonical.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Good news, everyone!<br>
<br>
We are --->this<--- close to getting a gccgo build juju working.<br>
<br>
lucky(~/src/<a href="http://launchpad.net/juju-core" target="_blank">launchpad.net/juju-core</a>) % juju bootstrap -v --upload-tools<br>
<br>
verbose is deprecated with the current meaning, use show-log<br>
<br>
2013-12-05 05:57:50 INFO juju.environs open.go:156 environment info<br>
already exists; using New not Prepare<br>
<br>
2013-12-05 05:57:50 INFO juju.provider.ec2 ec2.go:176 opening<br>
environment "ap-southeast-2"<br>
<br>
2013-12-05 05:57:50 INFO juju.environs.tools build.go:162 found<br>
existing jujud: /home/dfc/bin/jujud<br>
<br>
2013-12-05 05:57:50 INFO juju.environs.tools build.go:172 target:<br>
/tmp/juju-tools033710042/jujud<br>
<br>
^^^^ compiled with gccgo<br>
<br>
2013-12-05 05:57:53 INFO juju.environs.sync sync.go:244 built<br>
1.17.0.1-saucy-amd64 (5583kB)<br>
<br>
2013-12-05 05:57:53 INFO juju.environs.sync sync.go:70 listing available tools<br>
<br>
2013-12-05 05:57:53 INFO juju.environs.sync sync.go:94 found 2 tools<br>
<br>
2013-12-05 05:57:53 INFO juju.environs.sync sync.go:104 listing target bucket<br>
<br>
2013-12-05 05:57:53 INFO juju.environs.sync sync.go:117 found 0 tools<br>
in target; 2 tools to be copied<br>
<br>
2013-12-05 05:57:53 INFO juju.environs.sync sync.go:155 copying<br>
1.17.0.1-precise-amd64 from<br>
file:///tmp/142843249/tools/releases/juju-1.17.0.1-precise-amd64.tgz<br>
<br>
2013-12-05 05:57:53 INFO juju.environs.sync sync.go:169 copying<br>
tools/releases/juju-1.17.0.1-precise-amd64.tgz<br>
<br>
2013-12-05 05:57:53 INFO juju.environs.sync sync.go:183 downloaded<br>
tools/releases/juju-1.17.0.1-precise-amd64.tgz (5583kB), uploading<br>
<br>
2013-12-05 05:57:53 INFO juju.environs.sync sync.go:184 download<br>
5583kB, uploading<br>
<br>
2013-12-05 05:59:09 INFO juju.environs.sync sync.go:155 copying<br>
1.17.0.1-saucy-amd64 from<br>
file:///tmp/142843249/tools/releases/juju-1.17.0.1-saucy-amd64.tgz<br>
<br>
2013-12-05 05:59:09 INFO juju.environs.sync sync.go:169 copying<br>
tools/releases/juju-1.17.0.1-saucy-amd64.tgz<br>
<br>
2013-12-05 05:59:09 INFO juju.environs.sync sync.go:183 downloaded<br>
tools/releases/juju-1.17.0.1-saucy-amd64.tgz (5583kB), uploading<br>
<br>
2013-12-05 05:59:09 INFO juju.environs.sync sync.go:184 download<br>
5583kB, uploading<br>
<br>
2013-12-05 06:00:18 INFO juju.environs.sync sync.go:122 copied 2 tools<br>
<br>
2013-12-05 06:00:18 INFO juju.environs.sync sync.go:124 generating<br>
tools metadata<br>
<br>
2013-12-05 06:00:19 INFO juju.environs.tools simplestreams.go:357<br>
Writing tools/streams/v1/index.json<br>
<br>
2013-12-05 06:00:19 INFO juju.environs.tools simplestreams.go:357<br>
Writing tools/streams/v1/com.ubuntu.juju:released:tools.json<br>
<br>
2013-12-05 06:00:19 INFO juju.environs.sync sync.go:136 tools metadata written<br>
<br>
2013-12-05 06:00:22 INFO juju.environs.bootstrap bootstrap.go:45<br>
bootstrapping environment "ap-southeast-2"<br>
<br>
2013-12-05 06:00:22 INFO juju.environs.tools tools.go:85 reading tools<br>
with major.minor version 1.17<br>
<br>
2013-12-05 06:00:22 INFO juju.environs.tools tools.go:93 filtering<br>
tools by version: 1.17.0.1<br>
<br>
2013-12-05 06:00:22 INFO juju.environs.tools tools.go:96 filtering<br>
tools by series: precise<br>
<br>
2013-12-05 06:00:22 INFO juju.environs.bootstrap bootstrap.go:57<br>
picked newest version: 1.17.0.1<br>
<br>
Launching instance<br>
<br>
2013-12-05 06:00:29 INFO juju.provider.ec2 ec2.go:418 started instance<br>
"i-813692be"<br>
<br>
 - i-813692be<br>
<br>
Waiting for DNS name......................................<br>
<br>
 - <a href="http://ec2-54-253-221-206.ap-southeast-2.compute.amazonaws.com" target="_blank">ec2-54-253-221-206.ap-southeast-2.compute.amazonaws.com</a><br>
<br>
Attempting to connect to<br>
ec2-54-253-221-206.ap-southeast-2.compute.amazonaws.com:22....<br>
<br>
2013-12-05 06:01:45 INFO juju.cloudinit.sshinit configure.go:24<br>
Provisioning machine agent on<br>
<a href="mailto:ubuntu@ec2-54-253-221-206.ap-southeast-2.compute.amazonaws.com">ubuntu@ec2-54-253-221-206.ap-southeast-2.compute.amazonaws.com</a><br>
<br>
Warning: Permanently added<br>
'<a href="http://ec2-54-253-221-206.ap-southeast-2.compute.amazonaws.com" target="_blank">ec2-54-253-221-206.ap-southeast-2.compute.amazonaws.com</a>,54.253.221.206'<br>
(ECDSA) to the list of known hosts.<br>
<br>
Logging to /var/log/cloud-init-output.log on remote host<br>
<br>
Installing add-apt-repository<br>
<br>
Adding apt repository: deb<br>
<a href="http://ubuntu-cloud.archive.canonical.com/ubuntu" target="_blank">http://ubuntu-cloud.archive.canonical.com/ubuntu</a><br>
precise-updates/cloud-tools main<br>
<br>
Running apt-get update<br>
<br>
Running apt-get upgrade<br>
<br>
Installing package: git<br>
<br>
Installing package: cpu-checker<br>
<br>
Installing package: mongodb-server<br>
<br>
Fetching tools: wget --no-verbose -O $bin/tools.tar.gz<br>
'<a href="https://s3-ap-southeast-2.amazonaws.com/juju-syd-en-ee-ii/tools/releases/juju-1.17.0.1-precise-amd64.tgz?AWSAccessKeyId=AKIAJ4SOKUWG25EDMAOA&Expires=1701756022&Signature=us5XxZbNtgjiPQ5kMVVyC1b9450%3D" target="_blank">https://s3-ap-southeast-2.amazonaws.com/juju-syd-en-ee-ii/tools/releases/juju-1.17.0.1-precise-amd64.tgz?AWSAccessKeyId=AKIAJ4SOKUWG25EDMAOA&Expires=1701756022&Signature=us5XxZbNtgjiPQ5kMVVyC1b9450%3D</a>'<br>

<br>
Starting MongoDB server (juju-db)<br>
<br>
Bootstrapping Juju machine agent<br>
<br>
Connection to <a href="http://ec2-54-253-221-206.ap-southeast-2.compute.amazonaws.com" target="_blank">ec2-54-253-221-206.ap-southeast-2.compute.amazonaws.com</a> closed.<br>
<br>
Stopping instance...<br>
<br>
2013-12-05 06:05:07 ERROR juju supercommand.go:282 exit status 1<br>
<br>
Unfortunately the agent will fail to start because<br>
<br>
lucky(~/src/<a href="http://launchpad.net/juju-core" target="_blank">launchpad.net/juju-core</a>) % ldd $(which jujud)<br>
<br>
        linux-vdso.so.1 =>  (0x00007fffbc3fe000)<br>
<br>
        libgo.so.5 => /usr/lib/libgo.so.5 (0x00007f57fc52e000)<br>
<br>
^^^ this library<br>
<br>
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0<br>
(0x00007f57fc311000)<br>
<br>
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f57fc00c000)<br>
<br>
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1<br>
(0x00007f57fbdf6000)<br>
<br>
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f57fba2e000)<br>
<br>
        /lib64/ld-linux-x86-64.so.2 (0x00007f57fd337000)<br>
<br>
is not present on the target system.<br>
<br>
Cheers<br>
<br>
Dave<br>
<br>
--<br>
Juju-dev mailing list<br>
<a href="mailto:Juju-dev@lists.ubuntu.com">Juju-dev@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/juju-dev" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju-dev</a><br>
</blockquote></div>