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

Cloud Fundoo cloudfundoo at gmail.com
Sat Feb 7 16:23:00 UTC 2015


THanks,

It worked. now play field is ready :-)


On Sat, Feb 7, 2015 at 9:44 PM, Tycho Andersen <tycho.andersen at canonical.com
> wrote:

> On Sat, Feb 07, 2015 at 09:33:45PM +0530, Cloud Fundoo wrote:
> > Thanks, I was compiling with gccgo. Now changed go-lang gc and compiles
> > fine.
> >
> > But now the issue is with running lxd.
>
> Urgh, that looks nasty. It seems I'm still misunderstanding something
> about how the tomb library works; in any case, I've suggested a
> temporary fix here:
>
> https://github.com/lxc/lxd/pull/190
>
> Tycho
>
> > cloud at CloudServer:~/go/bin$ ./lxd
> > panic: runtime error: invalid memory address or nil pointer dereference
> > [signal 0xb code=0x1 addr=0x0 pc=0x580bde]
> >
> > goroutine 22 [running]:
> > runtime.panic(0x7409c0, 0xd12613)
> >     /usr/lib/go/src/pkg/runtime/panic.c:279 +0xf5
> > gopkg.in/tomb%2ev2.(*Tomb).run(0xc208040460, 0x0)
> >     /home/cloud/go/src/gopkg.in/tomb.v2/tomb.go:153 +0x1e
> > created by gopkg.in/tomb%2ev2.(*Tomb).Go
> >     /home/cloud/go/src/gopkg.in/tomb.v2/tomb.go:149 +0x110
> >
> > goroutine 16 [chan receive]:
> > main.run(0x0, 0x0)
> >     /home/cloud/go/src/github.com/lxc/lxd/lxd/main.go:55 +0x25b
> > main.main()
> >     /home/cloud/go/src/github.com/lxc/lxd/lxd/main.go:15 +0x26
> >
> > goroutine 19 [finalizer wait]:
> > runtime.park(0x42bbe0, 0xe040b8, 0xd15749)
> >     /usr/lib/go/src/pkg/runtime/proc.c:1369 +0x89
> > runtime.parkunlock(0xe040b8, 0xd15749)
> >     /usr/lib/go/src/pkg/runtime/proc.c:1385 +0x3b
> > runfinq()
> >     /usr/lib/go/src/pkg/runtime/mgc0.c:2644 +0xcf
> > runtime.goexit()
> >     /usr/lib/go/src/pkg/runtime/proc.c:1445
> >
> > goroutine 20 [syscall]:
> > os/signal.loop()
> >     /usr/lib/go/src/pkg/os/signal/signal_unix.go:21 +0x1e
> > created by os/signal.init·1
> >     /usr/lib/go/src/pkg/os/signal/signal_unix.go:27 +0x32
> >
> > goroutine 17 [syscall]:
> > runtime.goexit()
> >     /usr/lib/go/src/pkg/runtime/proc.c:1445
> >
> > goroutine 23 [runnable]:
> > gopkg.in/tomb%2ev2.(*Tomb).run(0xc208040460, 0xc2080a6080)
> >     /home/cloud/go/src/gopkg.in/tomb.v2/tomb.go:152
> > created by gopkg.in/tomb%2ev2.(*Tomb).Go
> >     /home/cloud/go/src/gopkg.in/tomb.v2/tomb.go:149 +0x110
> > cloud at CloudServer:~/go/bin$
> >
> > -Thanks
> >
> >
> > On Sat, Feb 7, 2015 at 5:03 PM, Stéphane Graber <stgraber at ubuntu.com>
> wrote:
> >
> > > Sorry, to clarify, I meant the only compilers which we know to work are
> > > golang-gc 1.3 or higher. Last I tried gccgo didn't work to build lxd.
> > >
> > > On Sat, Feb 07, 2015 at 04:34:40PM +0530, Cloud Fundoo wrote:
> > > > Seems go lang is greater than 1.3
> > > >
> > > > cloud at CloudServer:~/go/src/github.com/lxc/lxd$ golang-go version
> > > > go version go1.3.2 linux/amd64
> > > > cloud at CloudServer:~/go/src/github.com/lxc/lxd$
> > > >
> > > >
> > > > 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)
> > > >
> > > >
> > > >
> > > >
> > > > On Sat, Feb 7, 2015 at 3:51 PM, Stéphane Graber <stgraber at ubuntu.com
> >
> > > wrote:
> > > >
> > > > > 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
> > > > >
> > > > > _______________________________________________
> > > > > lxc-users mailing list
> > > > > lxc-users at lists.linuxcontainers.org
> > > > > http://lists.linuxcontainers.org/listinfo/lxc-users
> > > > >
> > >
> > > > _______________________________________________
> > > > 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
> > >
> > > _______________________________________________
> > > lxc-users mailing list
> > > lxc-users at lists.linuxcontainers.org
> > > http://lists.linuxcontainers.org/listinfo/lxc-users
> > >
>
> > _______________________________________________
> > lxc-users mailing list
> > lxc-users at lists.linuxcontainers.org
> > http://lists.linuxcontainers.org/listinfo/lxc-users
>
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20150207/b1410220/attachment-0001.html>


More information about the lxc-users mailing list