英文:
"cannot reserve arena virtual address space" while compiling Golang on OpenBSD
问题
我在使用命令"ksh all.bash"(也尝试过make.bash但没有成功)在OpenBSD上编译golang时遇到了错误"无法保留竞技场虚拟地址空间"。以下是输出内容:
$ ksh all.bash
# 构建C引导工具。
cmd/dist
# 为主机openbsd/386构建编译器和Go引导工具。
lib9
libbio
...(已截断)
pkg/go/doc
pkg/go/build
cmd/go
throw: runtime: 无法保留竞技场虚拟地址空间
我尝试按照http://code.google.com/p/go-wiki/wiki/OpenBSD上的指示进行操作,但也有可能我没有正确执行。非常感谢任何提示。
英文:
I'm getting the error "cannot reserve arena virtual address space" while compiling golang on OpenBSD with command "ksh all.bash" (also tried make.bash but didn't work). This is the output:
$ ksh all.bash
# Building C bootstrap tool.
cmd/dist
# Building compilers and Go bootstrap tool for host, openbsd/386.
lib9
libbio
... (truncated)
pkg/go/doc
pkg/go/build
cmd/go
throw: runtime: cannot reserve arena virtual address space
I tried following the directions on http://code.google.com/p/go-wiki/wiki/OpenBSD, but it is also possible I didn't do it correctly. Any tips would be greatly appreciated.
答案1
得分: 2
似乎与“staff”组有关的问题,更改“default”部分的默认设置解决了问题。
default:\
:path=/usr/bin /bin /usr/sbin /sbin /usr/X11R6/bin /usr/local/bin /usr/local/sbin:\
:umask=022:\
:datasize-max=infinity:\
:datasize-cur=infinity:\
:maxproc-max=256:\
:maxproc-cur=128:\
:openfiles-cur=128:\
:stacksize-cur=4M:\
:localcipher=blowfish,6:\
:ypcipher=old:\
:tc=auth-defaults:\
:tc=auth-ftp-defaults:
英文:
Seems like rather than screwing with the "staff" group, changing the defaults for the "default" section solved the issue.
default:\
:path=/usr/bin /bin /usr/sbin /sbin /usr/X11R6/bin /usr/local/bin /usr/local/sbin:\
:umask=022:\
:datasize-max=infinity:\
:datasize-cur=infinity:\
:maxproc-max=256:\
:maxproc-cur=128:\
:openfiles-cur=128:\
:stacksize-cur=4M:\
:localcipher=blowfish,6:\
:ypcipher=old:\
:tc=auth-defaults:\
:tc=auth-ftp-defaults:
答案2
得分: 1
你的程序无法分配虚拟地址空间。
英文:
Your program fails to allocate virtual address space
http://code.google.com/p/go/source/browse/src/pkg/runtime/malloc.goc#374
I do not use OpenBSD myself, and do not know what your problem is. But you could try and gather more information yourself, if you insert some printouts here:
http://code.google.com/p/go/source/browse/src/pkg/runtime/mem_openbsd.c#54
Alex
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论