<div dir="ltr">Seems go lang is greater than 1.3<br><div><br>cloud@CloudServer:~/go/src/<a href="http://github.com/lxc/lxd$">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$">github.com/lxc/lxd$</a><br><br><br>cloud@CloudServer:~/go/src/<a href="http://github.com/lxc/lxd$">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 4.9.1-0ubuntu1' --with-bugurl=file:///usr/share/doc/gccgo-4.9/README.Bugs --enable-languages=c,c++,go --prefix=/usr --program-suffix=-4.9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --disable-vtable-verify --disable-libquadmath --enable-plugin --with-system-zlib --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu<br>Thread model: posix<br>gcc version 4.9.1 (Ubuntu 4.9.1-0ubuntu1) <br><br><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Feb 7, 2015 at 3:51 PM, Stéphane Graber <span dir="ltr"><<a href="mailto:stgraber@ubuntu.com" target="_blank">stgraber@ubuntu.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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>
<span class=""><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>
</span>> <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>
<div><div class="h5">> <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/<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 ./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' --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 --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 --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 --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>
</div></div>> _______________________________________________<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>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
Stéphane Graber<br>
Ubuntu developer<br>
<a href="http://www.ubuntu.com" target="_blank">http://www.ubuntu.com</a><br>
</font></span><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></blockquote></div><br></div>