"cannot reserve virtual arena address space" when compiling Golang on OpenBSD

I get the error "cannot reserve virtual arena address space" when compiling golang on OpenBSD with the command "ksh all.bash" (also tried make.bash, but it didnโ€™t work). This is the result:

$ 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 instructions of http://code.google.com/p/go-wiki/wiki/OpenBSD , but it is also possible that I did not do it right. Any advice would be greatly appreciated.

0
source share
2 answers

It seems that instead of screwing the staff group, changing the default values โ€‹โ€‹for the default section solved the problem.

 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
source

Your program cannot 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 the problem is. But you can try to collect more information yourself if you insert a few printouts here:

http://code.google.com/p/go/source/browse/src/pkg/runtime/mem_openbsd.c#54

Alex

+1
source

Source: https://habr.com/ru/post/1208625/


All Articles