“在OpenBSD上编译Golang时出现“无法保留竞技场虚拟地址空间”的错误”

huangapple go评论88阅读模式
英文:

"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

huangapple
  • 本文由 发表于 2012年9月3日 10:22:49
  • 转载请务必保留本文链接:https://go.coder-hub.com/12241319.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定