← Back to team overview

ubuntu-phone team mailing list archive

Re: BUG: Ran out of space while installing ubuntu-sdk/go-qml directly on Nexus 4

 

On 03/17/2014 04:16 PM, David Marceau wrote:
> On 03/17/2014 04:04 PM, Oliver Grawert wrote:
>> hi Am Montag, den 17.03.2014, 15:50 -0400 schrieb David Marceau:
>>> On 03/17/2014 02:35 PM, Oliver Grawert wrote:
>>>> Am Montag, den 17.03.2014, 09:38 -0400 schrieb David Marceau:
>>>>> On 03/17/2014 02:24 AM, f69m wrote:
>>>>>>> sudo apt-get install qemu-user-static sudo
>>>>>>> qemu-debootstrap --arch armhf trusty my-devel-chroot sudo
>>>>>>> chroot my-devel-chroot (do whatever you want to do wrt
>>>>>>> development)
>>>>>
>>>>> Ok. Pardon my ignorance, but how do I install ubuntu-sdk
>>>>> within this armhf chroot?
>>>>
>>>> you make sure that a line for universe is added in the 
>>>> /etc/apt/sources.list file, run apt-get update and apt-get
>>>> install whatever you like inside the chroot, it behaves like a
>>>> native arm device (just that it runs on x86 in reality) ... for
>>>> some packages you might need to have /proc and /sys mounted
>>>> inside the chroot ...
>>> The problem is that there is no network up within the chroot.  It
>>> is a barebones nothing up.
> 
>> if you mount proc and sys after entering the chroot the network of
>> your host is just used ... mount -t proc proc /proc mount -t sysfs
>> sys /sys
> 
>> ciao oli
> 
> It automagically worked! Thank you.
> On to installing golang/go-qml dependencies.
> 
> Cheers,
> David Marceau
> 
After installing the ubuntu package golang and golang-go.tools, I got
errors when running go.

I also got errors when trying to build go from sources.

root@righteous:/home/phablet/goqmlstuff/go/src# uname -a
Linux righteous 2.6.32 #32-Ubuntu SMP Tue Feb 18 21:11:14 UTC 2014
armv7l armv7l armv7l GNU/Linux

***********************************************************
FIRST ATTEMPT TO RUN GO WITHIN QEMU
WITH UBUNTU REPO .DEBS(golang/golang-go.tools)
go get gopkg.in/v0/qml
fatal error: rt_sigaction failure

runtime stack:
runtime.throw(0x656b92)
	/usr/lib/go/src/pkg/runtime/panic.c:464 +0x5c
runtime.setsig(0x40, 0x7c530, 0x65a601)
	/usr/lib/go/src/pkg/runtime/os_linux.c:306 +0xbc
runtime.initsig()
	/usr/lib/go/src/pkg/runtime/signal_unix.c:39 +0x94
runtime.mstart()
	/usr/lib/go/src/pkg/runtime/proc.c:594 +0x80

goroutine 1 [runnable]:
runtime.main()
	/usr/lib/go/src/pkg/runtime/proc.c:179
runtime.goexit()
	/usr/lib/go/src/pkg/runtime/proc.c:1394
root@righteous:/home/phablet/goqmlstuff# go env
fatal error: rt_sigaction failure

runtime stack:
runtime.throw(0x656b92)
	/usr/lib/go/src/pkg/runtime/panic.c:464 +0x5c
runtime.setsig(0x40, 0x7c530, 0x65a601)
	/usr/lib/go/src/pkg/runtime/os_linux.c:306 +0xbc
runtime.initsig()
	/usr/lib/go/src/pkg/runtime/signal_unix.c:39 +0x94
runtime.mstart()
	/usr/lib/go/src/pkg/runtime/proc.c:594 +0x80

goroutine 1 [runnable]:
runtime.main()
	/usr/lib/go/src/pkg/runtime/proc.c:179
runtime.goexit()
	/usr/lib/go/src/pkg/runtime/proc.c:1394
root@righteous:/home/phablet/goqmlstuff# ls
root@righteous:/home/phablet/goqmlstuff# go
fatal error: rt_sigaction failure

runtime stack:
runtime.throw(0x656b92)
	/usr/lib/go/src/pkg/runtime/panic.c:464 +0x5c
runtime.setsig(0x40, 0x7c530, 0x65a601)
	/usr/lib/go/src/pkg/runtime/os_linux.c:306 +0xbc
runtime.initsig()
	/usr/lib/go/src/pkg/runtime/signal_unix.c:39 +0x94
runtime.mstart()
	/usr/lib/go/src/pkg/runtime/proc.c:594 +0x80

goroutine 1 [runnable]:
runtime.main()
	/usr/lib/go/src/pkg/runtime/proc.c:179
runtime.goexit()
	/usr/lib/go/src/pkg/runtime/proc.c:1394

***********************************************************
SECOND ATTEMPT TO RUN GO WITHIN QEMU
WITH ALL.BASH COMPILED GO SOURCE

End part of the ./all.bash
# Building compilers and Go bootstrap tool for host, linux/arm.
lib9
libbio
libmach
misc/pprof
cmd/addr2line
cmd/nm
cmd/objdump
cmd/pack
cmd/prof
cmd/cc
cmd/gc
cmd/5l
cmd/5a
cmd/5c
cmd/5g
pkg/runtime
pkg/errors
pkg/sync/atomic
pkg/sync
pkg/io
pkg/unicode
pkg/unicode/utf8
pkg/unicode/utf16
pkg/bytes
pkg/math
pkg/strings
pkg/strconv
pkg/bufio
pkg/sort
pkg/container/heap
pkg/encoding/base64
pkg/syscall
pkg/time
pkg/os
pkg/reflect
pkg/fmt
pkg/encoding
pkg/encoding/json
pkg/flag
pkg/path/filepath
pkg/path
pkg/io/ioutil
pkg/log
pkg/regexp/syntax
pkg/regexp
pkg/go/token
pkg/go/scanner
pkg/go/ast
pkg/go/parser
pkg/os/exec
pkg/os/signal
pkg/net/url
pkg/text/template/parse
pkg/text/template
pkg/go/doc
pkg/go/build
cmd/go
fatal error: rt_sigaction failure

runtime stack:
runtime.throw(0x3dd5c2)
	/home/phablet/goqmlstuff/go/src/pkg/runtime/panic.c:464 +0x5c
runtime.setsig(0x40, 0x7b36c, 0x3e0301)
	/home/phablet/goqmlstuff/go/src/pkg/runtime/os_linux.c:306 +0xbc
runtime.initsig()
	/home/phablet/goqmlstuff/go/src/pkg/runtime/signal_unix.c:39 +0x94
runtime.mstart()
	/home/phablet/goqmlstuff/go/src/pkg/runtime/proc.c:594 +0x80

goroutine 1 [runnable]:
runtime.main()
	/home/phablet/goqmlstuff/go/src/pkg/runtime/proc.c:179
runtime.goexit()
	/home/phablet/goqmlstuff/go/src/pkg/runtime/proc.c:1394
root@righteous:/home/phablet/goqmlstuff/go/src#

ARGH!
I really don't know how you got go binaries to run on ubuntu touch/armhf.



Follow ups

References