[erlang-bugs] I cannot build erlang R14B04 on OpenBSD 5.0

Raimo Niskanen <>
Wed Nov 9 15:45:48 CET 2011

On Wed, Nov 09, 2011 at 06:22:46PM +0500, Dmitry Orlov wrote:
> I cannot build erlang R14B04 on OpenBSD 5.0/
> Firstly, I got warning from 'configure'
> checking sys/sysctl.h usability... no
> checking sys/sysctl.h presence... yes
> ...........
> configure: WARNING: sys/sysctl.h: present but cannot be compiled

Do you build from tarball with configure, make, ... or do you
firstly use autoconf and if so which is your autoconf version?

We see this warning in our daily builds where we use autoconf 2.59.
It might be fixed in a later release of autoconf.

> Secondly, after gmake ran I got error
> cc1plus: out of memory allocating 219008 bytes after a total of 0 bytes
> gmake[3]: *** [i386-unknown-openbsd5.0/wxe_funcs.o] Error 1
> gmake[2]: *** [opt] Error 2
> gmake[1]: *** [opt] Error 2
> gmake: *** [libs] Error 2

The C preprocessor runs out of memory. You seem to have to low limits
on your account class. The defaults for OpenBSD 5.0 are (I think):
$ ulimit -d
$ulimit -v

You need to crank them up for your login class in /etc/login.conf, e.g:
or give your login class e.g 'staff' and then raise your current limit:
$ ulimit -d 1048576.

I think it is the datasize that is your current problem,
not sure about vmemoryuse.

> For R14B03 build process on OpenBSD 4.9 was ok

I think the wxe_funcs.c compilation was maybe not as memory hungry
for R14B03, or the defaults in /etc/login.conf were different,
or the compiler in OpenBSD 4.9 was different... Speculations...

> Please fix this errors
> -- 
> Dmitry Orlov <>
> _______________________________________________
> erlang-bugs mailing list
> http://erlang.org/mailman/listinfo/erlang-bugs


/ Raimo Niskanen, Erlang/OTP, Ericsson AB

More information about the erlang-bugs mailing list