-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build Gvite Source error on ubuntu. #360
Comments
I solved the build source problem by adding 2 GB of swap memory, then it build success. But I faced the new problem when run gvite application, please see the log detail below. t=2019-06-11T17:14:25.799+0700 lvl=info msg=NodeServer.DataDir:/root/.gvite/maindata module=gvite/node_manager goroutine 1 [running]: |
Try starting again |
I’ve tried start the program many times, but the error still be the same. |
Information
Hi Vite Team,
I've tried to build Gvite source on my andriod box but there are some error show up, please see log below.
/go/src/github.com/vitelabs/go-vite# make gvite
go build -i -o /root/go/src/github.com/vitelabs/go-vite/build/cmd/gvite/gvite /root/go/src/github.com/vitelabs/go-vite/cmd/gvite/main.go
fatal error: runtime: out of memory
runtime stack:
runtime.throw(0x21eaee, 0x16)
/usr/local/go/src/runtime/panic.go:608 +0x5c
runtime.sysMap(0xd800000, 0xc00000, 0x399208)
/usr/local/go/src/runtime/mem_linux.go:156 +0xac
runtime.(*linearAlloc).alloc(0x38d80c, 0xc00000, 0x400000, 0x399208, 0x540)
/usr/local/go/src/runtime/malloc.go:1230 +0x94
runtime.(*mheap).sysAlloc(0x38cd48, 0xc00000, 0xa7ad9a00, 0x327c4)
/usr/local/go/src/runtime/malloc.go:525 +0x54
runtime.(*mheap).grow(0x38cd48, 0x4ad, 0x0)
/usr/local/go/src/runtime/mheap.go:920 +0x2c
runtime.(*mheap).allocSpanLocked(0x38cd48, 0x4ad, 0x399218, 0x11778)
/usr/local/go/src/runtime/mheap.go:848 +0x320
runtime.(*mheap).alloc_m(0x38cd48, 0x4ad, 0x390101, 0x4853)
/usr/local/go/src/runtime/mheap.go:692 +0x118
runtime.(*mheap).alloc.func1()
/usr/local/go/src/runtime/mheap.go:759 +0x3c
runtime.(*mheap).alloc(0x38cd48, 0x4ad, 0x10101, 0x613dc)
/usr/local/go/src/runtime/mheap.go:758 +0x60
runtime.largeAlloc(0x95807a, 0x60101, 0xb6fba000)
/usr/local/go/src/runtime/malloc.go:1019 +0x74
runtime.mallocgc.func1()
/usr/local/go/src/runtime/malloc.go:914 +0x38
runtime.systemstack(0x430780)
/usr/local/go/src/runtime/asm_arm.s:354 +0x84
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1229
goroutine 1 [running]:
runtime.systemstack_switch()
/usr/local/go/src/runtime/asm_arm.s:298 +0x4 fp=0x43d3e4 sp=0x43d3e0 pc=0x63918
runtime.mallocgc(0x95807a, 0x1ef580, 0xcbe1901, 0x488683)
/usr/local/go/src/runtime/malloc.go:913 +0x898 fp=0x43d448 sp=0x43d3e4 pc=0x1aac8
runtime.makeslice(0x1ef580, 0x95807a, 0x95807a, 0xcbe1978, 0x488683, 0x488688)
/usr/local/go/src/runtime/slice.go:70 +0x68 fp=0x43d45c sp=0x43d448 pc=0x50840
runtime.makeslice64(0x1ef580, 0x95807a, 0x0, 0x95807a, 0x0, 0x381488, 0x23978, 0x0)
/usr/local/go/src/runtime/slice.go:85 +0x44 fp=0x43d478 sp=0x43d45c pc=0x5090c
cmd/link/internal/sym.(*Symbol).Grow(0xa6b1a90, 0x4ac03c, 0x0)
/usr/local/go/src/cmd/link/internal/sym/symbol.go:82 +0xb0 fp=0x43d4b4 sp=0x43d478 pc=0xe7c94
cmd/link/internal/ld.(*Link).pclntab(0x468090)
/usr/local/go/src/cmd/link/internal/ld/pcln.go:298 +0x6a0 fp=0x43d674 sp=0x43d4b4 pc=0x1752c0
cmd/link/internal/ld.Main(0x381488, 0x4, 0x8, 0x1, 0xd, 0xe, 0x21ca49, 0x12, 0x21f436, 0x18, ...)
/usr/local/go/src/cmd/link/internal/ld/main.go:228 +0xa60 fp=0x43d738 sp=0x43d674 pc=0x172db8
main.main()
/usr/local/go/src/cmd/link/main.go:65 +0x130 fp=0x43dfc4 sp=0x43d738 pc=0x1c6818
runtime.main()
/usr/local/go/src/runtime/proc.go:201 +0x204 fp=0x43dfe4 sp=0x43dfc4 pc=0x3be64
runtime.goexit()
/usr/local/go/src/runtime/asm_arm.s:867 +0x4 fp=0x43dfe4 sp=0x43dfe4 pc=0x65660
Makefile:23: recipe for target 'gvite' failed
make: *** [gvite] Error 2
OS
Linux 4.14.0+ Zhutiantao/crypto #1 SMP PREEMPT Wed Nov 15 21:41:32 UTC 2017 armv7l armv7l armv7l GNU/Linux
Hardware (CPU info and Memory size)
Samsung Exynos5422 Cortex™-A15 2Ghz and Cortex™-A7 Octa core CPUs
Mali-T628 MP6(OpenGL ES 3.1/2.0/1.1 and OpenCL 1.2 Full profile)
2Gbyte LPDDR3 RAM PoP stacked
gvite version
2.1.4
go version
go1.11.1.linux-armv6l
The text was updated successfully, but these errors were encountered: