<div dir="ltr"><div>THanks,<br><br></div>It worked. now play field is ready :-)<br><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Feb 7, 2015 at 9:44 PM, Tycho Andersen <span dir="ltr"><<a href="mailto:tycho.andersen@canonical.com" target="_blank">tycho.andersen@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Sat, Feb 07, 2015 at 09:33:45PM +0530, Cloud Fundoo wrote:<br>
> Thanks, I was compiling with gccgo. Now changed go-lang gc and compiles<br>
> fine.<br>
><br>
> But now the issue is with running lxd.<br>
<br>
</span>Urgh, that looks nasty. It seems I'm still misunderstanding something<br>
about how the tomb library works; in any case, I've suggested a<br>
temporary fix here:<br>
<br>
<a href="https://github.com/lxc/lxd/pull/190" target="_blank">https://github.com/lxc/lxd/pull/190</a><br>
<span class="HOEnZb"><font color="#888888"><br>
Tycho<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
> cloud@CloudServer:~/go/bin$ ./lxd<br>
> panic: runtime error: invalid memory address or nil pointer dereference<br>
> [signal 0xb code=0x1 addr=0x0 pc=0x580bde]<br>
><br>
> goroutine 22 [running]:<br>
> runtime.panic(0x7409c0, 0xd12613)<br>
> /usr/lib/go/src/pkg/runtime/panic.c:279 +0xf5<br>
> <a href="http://gopkg.in/tomb%2ev2.(*Tomb).run(0xc208040460" target="_blank">gopkg.in/tomb%2ev2.(*Tomb).run(0xc208040460</a>, 0x0)<br>
> /home/cloud/go/src/<a href="http://gopkg.in/tomb.v2/tomb.go:153" target="_blank">gopkg.in/tomb.v2/tomb.go:153</a> +0x1e<br>
> created by <a href="http://gopkg.in/tomb%2ev2.(*Tomb).Go" target="_blank">gopkg.in/tomb%2ev2.(*Tomb).Go</a><br>
> /home/cloud/go/src/<a href="http://gopkg.in/tomb.v2/tomb.go:149" target="_blank">gopkg.in/tomb.v2/tomb.go:149</a> +0x110<br>
><br>
> goroutine 16 [chan receive]:<br>
> main.run(0x0, 0x0)<br>
> /home/cloud/go/src/<a href="http://github.com/lxc/lxd/lxd/main.go:55" target="_blank">github.com/lxc/lxd/lxd/main.go:55</a> +0x25b<br>
> main.main()<br>
> /home/cloud/go/src/<a href="http://github.com/lxc/lxd/lxd/main.go:15" target="_blank">github.com/lxc/lxd/lxd/main.go:15</a> +0x26<br>
><br>
> goroutine 19 [finalizer wait]:<br>
> runtime.park(0x42bbe0, 0xe040b8, 0xd15749)<br>
> /usr/lib/go/src/pkg/runtime/proc.c:1369 +0x89<br>
> runtime.parkunlock(0xe040b8, 0xd15749)<br>
> /usr/lib/go/src/pkg/runtime/proc.c:1385 +0x3b<br>
> runfinq()<br>
> /usr/lib/go/src/pkg/runtime/mgc0.c:2644 +0xcf<br>
> runtime.goexit()<br>
> /usr/lib/go/src/pkg/runtime/proc.c:1445<br>
><br>
> goroutine 20 [syscall]:<br>
> os/signal.loop()<br>
> /usr/lib/go/src/pkg/os/signal/signal_unix.go:21 +0x1e<br>
> created by os/signal.init·1<br>
> /usr/lib/go/src/pkg/os/signal/signal_unix.go:27 +0x32<br>
><br>
> goroutine 17 [syscall]:<br>
> runtime.goexit()<br>
> /usr/lib/go/src/pkg/runtime/proc.c:1445<br>
><br>
> goroutine 23 [runnable]:<br>
> <a href="http://gopkg.in/tomb%2ev2.(*Tomb).run(0xc208040460" target="_blank">gopkg.in/tomb%2ev2.(*Tomb).run(0xc208040460</a>, 0xc2080a6080)<br>
> /home/cloud/go/src/<a href="http://gopkg.in/tomb.v2/tomb.go:152" target="_blank">gopkg.in/tomb.v2/tomb.go:152</a><br>
> created by <a href="http://gopkg.in/tomb%2ev2.(*Tomb).Go" target="_blank">gopkg.in/tomb%2ev2.(*Tomb).Go</a><br>
> /home/cloud/go/src/<a href="http://gopkg.in/tomb.v2/tomb.go:149" target="_blank">gopkg.in/tomb.v2/tomb.go:149</a> +0x110<br>
> cloud@CloudServer:~/go/bin$<br>
><br>
> -Thanks<br>
><br>
><br>
> On Sat, Feb 7, 2015 at 5:03 PM, Stéphane Graber <<a href="mailto:stgraber@ubuntu.com">stgraber@ubuntu.com</a>> wrote:<br>
><br>
> > Sorry, to clarify, I meant the only compilers which we know to work are<br>
> > golang-gc 1.3 or higher. Last I tried gccgo didn't work to build lxd.<br>
> ><br>
> > On Sat, Feb 07, 2015 at 04:34:40PM +0530, Cloud Fundoo wrote:<br>
> > > Seems go lang is greater than 1.3<br>
> > ><br>
> > > cloud@CloudServer:~/go/src/<a href="http://github.com/lxc/lxd$" target="_blank">github.com/lxc/lxd$</a> golang-go version<br>
> > > go version go1.3.2 linux/amd64<br>
> > > cloud@CloudServer:~/go/src/<a href="http://github.com/lxc/lxd$" target="_blank">github.com/lxc/lxd$</a><br>
> > ><br>
> > ><br>
> > > cloud@CloudServer:~/go/src/<a href="http://github.com/lxc/lxd$" target="_blank">github.com/lxc/lxd$</a> gccgo -v<br>
> > > Using built-in specs.<br>
> > > COLLECT_GCC=gccgo<br>
> > > COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.9/lto-wrapper<br>
> > > Target: x86_64-linux-gnu<br>
> > > Configured with: ../src/configure -v --with-pkgversion='Ubuntu<br>
> > > 4.9.1-0ubuntu1' --with-bugurl=file:///usr/share/doc/gccgo-4.9/README.Bugs<br>
> > > --enable-languages=c,c++,go --prefix=/usr --program-suffix=-4.9<br>
> > > --enable-shared --enable-linker-build-id --libexecdir=/usr/lib<br>
> > > --without-included-gettext --enable-threads=posix<br>
> > > --with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib<br>
> > --enable-nls<br>
> > > --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-time=yes<br>
> > > --enable-gnu-unique-object --disable-libmudflap --disable-vtable-verify<br>
> > > --disable-libquadmath --enable-plugin --with-system-zlib<br>
> > --enable-multiarch<br>
> > > --disable-werror --with-arch-32=i686 --with-abi=m64<br>
> > > --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic<br>
> > > --enable-checking=release --build=x86_64-linux-gnu<br>
> > --host=x86_64-linux-gnu<br>
> > > --target=x86_64-linux-gnu<br>
> > > Thread model: posix<br>
> > > gcc version 4.9.1 (Ubuntu 4.9.1-0ubuntu1)<br>
> > ><br>
> > ><br>
> > ><br>
> > ><br>
> > > On Sat, Feb 7, 2015 at 3:51 PM, Stéphane Graber <<a href="mailto:stgraber@ubuntu.com">stgraber@ubuntu.com</a>><br>
> > wrote:<br>
> > ><br>
> > > > Hi,<br>
> > > ><br>
> > > > At this point only golang 1.3 or higher is supported.<br>
> > > ><br>
> > > > A backport of golang 1.3 for Ubuntu 14.04 exists in the<br>
> > > > ubuntu-lxc/lxd-daily ppa.<br>
> > > ><br>
> > > > On Sat, Feb 07, 2015 at 03:14:07PM +0530, Cloud Fundoo wrote:<br>
> > > > > Hi,<br>
> > > > ><br>
> > > > > I was trying to compile lxd on ubuntu server 14.04.<br>
> > > > ><br>
> > > > > It throws following errors<br>
> > > > ><br>
> > > > ><br>
> > > > > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><br>
> > > > > gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/<br>
> > > > > <a href="http://github.com/lxc/lxd/shared/_obj/" target="_blank">github.com/lxc/lxd/shared/_obj/</a> -g -O2 -o $WORK/<br>
> > > > > <a href="http://github.com/lxc/lxd/shared/_obj/_cgo_export.o" target="_blank">github.com/lxc/lxd/shared/_obj/_cgo_export.o</a> -c $WORK/<br>
> > > > > <a href="http://github.com/lxc/lxd/shared/_obj/_cgo_export.c" target="_blank">github.com/lxc/lxd/shared/_obj/_cgo_export.c</a><br>
> > > > > gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/<br>
> > > > > <a href="http://github.com/lxc/lxd/shared/_obj/" target="_blank">github.com/lxc/lxd/shared/_obj/</a> -g -O2 -o $WORK/<br>
> > > > > <a href="http://github.com/lxc/lxd/shared/_obj/util.cgo2.o" target="_blank">github.com/lxc/lxd/shared/_obj/util.cgo2.o</a> -c $WORK/<br>
> > > > > <a href="http://github.com/lxc/lxd/shared/_obj/util.cgo2.c" target="_blank">github.com/lxc/lxd/shared/_obj/util.cgo2.c</a><br>
> > > > > gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -o $WORK/<br>
> > > > > <a href="http://github.com/lxc/lxd/shared/_obj/_cgo_.o" target="_blank">github.com/lxc/lxd/shared/_obj/_cgo_.o</a> $WORK/<br>
> > > > > <a href="http://github.com/lxc/lxd/shared/_obj/_cgo_main.o" target="_blank">github.com/lxc/lxd/shared/_obj/_cgo_main.o</a> $WORK/<br>
> > > > > <a href="http://github.com/lxc/lxd/shared/_obj/_cgo_export.o" target="_blank">github.com/lxc/lxd/shared/_obj/_cgo_export.o</a> $WORK/<br>
> > > > > <a href="http://github.com/lxc/lxd/shared/_obj/util.cgo2.o" target="_blank">github.com/lxc/lxd/shared/_obj/util.cgo2.o</a> -g -O2<br>
> > > > > gccgo -I $WORK -I /home/nmathew/go/pkg/gccgo_linux_amd64 -c -g -m64<br>
> > > > > -fgo-pkgpath=<a href="http://github.com/lxc/lxd/shared" target="_blank">github.com/lxc/lxd/shared</a><br>
> > > > > -fgo-relative-import-path=_/home/nmathew/go/src/<br>
> > > > <a href="http://github.com/lxc/lxd/shared" target="_blank">github.com/lxc/lxd/shared</a><br>
> > > > > -o $WORK/<a href="http://github.com/lxc/lxd/shared/_obj/shared.o" target="_blank">github.com/lxc/lxd/shared/_obj/shared.o</a> ./cert.go<br>
> > > > ./container.go<br>
> > > > > ./flex.go ./json.go ./log.go ./operation.go $WORK/<br>
> > > > > <a href="http://github.com/lxc/lxd/shared/_obj/_cgo_gotypes.go" target="_blank">github.com/lxc/lxd/shared/_obj/_cgo_gotypes.go</a> $WORK/<br>
> > > > > <a href="http://github.com/lxc/lxd/shared/_obj/util.cgo1.go" target="_blank">github.com/lxc/lxd/shared/_obj/util.cgo1.go</a><br>
> > > > > # <a href="http://github.com/lxc/lxd/shared" target="_blank">github.com/lxc/lxd/shared</a><br>
> > > > > shared/container.go:4:24: error: redefinition of ‘lxc’<br>
> > > > > "<a href="http://gopkg.in/lxc/go-lxc.v2" target="_blank">gopkg.in/lxc/go-lxc.v2</a>"<br>
> > > > > ^<br>
> > > > > shared/container.go:4:24: note: previous definition of ‘lxc’ was here<br>
> > > > > make: *** [default] Error 2<br>
> > > > > <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<br>
> > > > > cloud@CloudServer:~/go/src/<a href="http://github.com/lxc/lxd$" target="_blank">github.com/lxc/lxd$</a> gccgo -v<br>
> > > > > Using built-in specs.<br>
> > > > > COLLECT_GCC=gccgo<br>
> > > > > COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.9/lto-wrapper<br>
> > > > > Target: x86_64-linux-gnu<br>
> > > > > Configured with: ../src/configure -v --with-pkgversion='Ubuntu<br>
> > > > > 4.9.1-0ubuntu1'<br>
> > --with-bugurl=file:///usr/share/doc/gccgo-4.9/README.Bugs<br>
> > > > > --enable-languages=c,c++,go --prefix=/usr --program-suffix=-4.9<br>
> > > > > --enable-shared --enable-linker-build-id --libexecdir=/usr/lib<br>
> > > > > --without-included-gettext --enable-threads=posix<br>
> > > > > --with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib<br>
> > > > --enable-nls<br>
> > > > > --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-time=yes<br>
> > > > > --enable-gnu-unique-object --disable-libmudflap<br>
> > --disable-vtable-verify<br>
> > > > > --disable-libquadmath --enable-plugin --with-system-zlib<br>
> > > > --enable-multiarch<br>
> > > > > --disable-werror --with-arch-32=i686 --with-abi=m64<br>
> > > > > --with-multilib-list=m32,m64,mx32 --enable-multilib<br>
> > --with-tune=generic<br>
> > > > > --enable-checking=release --build=x86_64-linux-gnu<br>
> > > > --host=x86_64-linux-gnu<br>
> > > > > --target=x86_64-linux-gnu<br>
> > > > > Thread model: posix<br>
> > > > > gcc version 4.9.1 (Ubuntu 4.9.1-0ubuntu1)<br>
> > > > ><br>
> > > > > Any Help will be appreciated.<br>
> > > > ><br>
> > > > > -Nobin<br>
> > > ><br>
> > > > > _______________________________________________<br>
> > > > > lxc-users mailing list<br>
> > > > > <a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
> > > > > <a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br>
> > > ><br>
> > > ><br>
> > > > --<br>
> > > > Stéphane Graber<br>
> > > > Ubuntu developer<br>
> > > > <a href="http://www.ubuntu.com" target="_blank">http://www.ubuntu.com</a><br>
> > > ><br>
> > > > _______________________________________________<br>
> > > > lxc-users mailing list<br>
> > > > <a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
> > > > <a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br>
> > > ><br>
> ><br>
> > > _______________________________________________<br>
> > > lxc-users mailing list<br>
> > > <a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
> > > <a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br>
> ><br>
> ><br>
> > --<br>
> > Stéphane Graber<br>
> > Ubuntu developer<br>
> > <a href="http://www.ubuntu.com" target="_blank">http://www.ubuntu.com</a><br>
> ><br>
> > _______________________________________________<br>
> > lxc-users mailing list<br>
> > <a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
> > <a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br>
> ><br>
<br>
> _______________________________________________<br>
> lxc-users mailing list<br>
> <a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
> <a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br>
<br>
_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a></div></div></blockquote></div><br></div>