[lxc-users] LXD compilation errors on Ubuntu Server 14.04

Stéphane Graber stgraber at ubuntu.com
Sat Feb 7 10:21:27 UTC 2015


Hi,

At this point only golang 1.3 or higher is supported.

A backport of golang 1.3 for Ubuntu 14.04 exists in the
ubuntu-lxc/lxd-daily ppa.

On Sat, Feb 07, 2015 at 03:14:07PM +0530, Cloud Fundoo wrote:
> Hi,
> 
> I was trying to compile lxd on ubuntu server 14.04.
> 
> It throws following errors
> 
> 
> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/
> github.com/lxc/lxd/shared/_obj/ -g -O2 -o $WORK/
> github.com/lxc/lxd/shared/_obj/_cgo_export.o -c $WORK/
> github.com/lxc/lxd/shared/_obj/_cgo_export.c
> gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -I $WORK/
> github.com/lxc/lxd/shared/_obj/ -g -O2 -o $WORK/
> github.com/lxc/lxd/shared/_obj/util.cgo2.o -c $WORK/
> github.com/lxc/lxd/shared/_obj/util.cgo2.c
> gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -o $WORK/
> github.com/lxc/lxd/shared/_obj/_cgo_.o $WORK/
> github.com/lxc/lxd/shared/_obj/_cgo_main.o $WORK/
> github.com/lxc/lxd/shared/_obj/_cgo_export.o $WORK/
> github.com/lxc/lxd/shared/_obj/util.cgo2.o -g -O2
> gccgo -I $WORK -I /home/nmathew/go/pkg/gccgo_linux_amd64 -c -g -m64
> -fgo-pkgpath=github.com/lxc/lxd/shared
> -fgo-relative-import-path=_/home/nmathew/go/src/github.com/lxc/lxd/shared
> -o $WORK/github.com/lxc/lxd/shared/_obj/shared.o ./cert.go ./container.go
> ./flex.go ./json.go ./log.go ./operation.go $WORK/
> github.com/lxc/lxd/shared/_obj/_cgo_gotypes.go $WORK/
> github.com/lxc/lxd/shared/_obj/util.cgo1.go
> # github.com/lxc/lxd/shared
> shared/container.go:4:24: error: redefinition of ‘lxc’
>   "gopkg.in/lxc/go-lxc.v2"
>                         ^
> shared/container.go:4:24: note: previous definition of ‘lxc’ was here
> make: *** [default] Error 2
> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> cloud at CloudServer:~/go/src/github.com/lxc/lxd$ gccgo -v
> Using built-in specs.
> COLLECT_GCC=gccgo
> COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.9/lto-wrapper
> Target: x86_64-linux-gnu
> 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
> Thread model: posix
> gcc version 4.9.1 (Ubuntu 4.9.1-0ubuntu1)
> 
> Any Help will be appreciated.
> 
> -Nobin

> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users


-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20150207/57473d5c/attachment-0001.sig>


More information about the lxc-users mailing list