Subject: pkg/37355: net/unison fails to build due to memory running out when building ocaml
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <jan.m.danielsson@gmail.com>
List: pkgsrc-bugs
Date: 11/10/2007 12:05:01
>Number:         37355
>Category:       pkg
>Synopsis:       net/unison fails to build due to memory running out when building ocaml
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Nov 10 12:05:00 +0000 2007
>Originator:     Jan Danielsson
>Release:        NetBSD/amd64 4.0 RC2
>Organization:
Confuse A Cat Inc.
>Environment:
NetBSD anca 4.0_RC2 NetBSD 4.0_RC2 (ANCABOOT) #0: Fri Oct 12 19:19:52 CEST 2007  jan@c-e2b8e455.91-0200-74657210.cust.bredbandsbolaget.se:/home/jan/netbsd4/anca/obj.amd64/usr/src/sys/arch/amd64/compile/ANCABOOT amd64

>Description:
[---]
mkdir utils
boot/ocamlrun ./ocamlc -nostdlib -c -g -w Ale -warn-error Ale -I camlp4 -I camlp4/build -I utils -I stdlib -I parsing -o camlp4/Caml
p4_config.cmi camlp4/Camlp4_config.mli
boot/ocamlrun ./ocamlc -nostdlib -c -g -w a -I camlp4/build -I camlp4 -I stdlib -I utils -I parsing -o camlp4/build/location.cmi cam
lp4/build/location.mli
boot/ocamlrun ./ocamlc -nostdlib -c -g -w a -I camlp4/boot -I camlp4/build -I utils -I parsing -I camlp4 -I stdlib -o camlp4/boot/Ca
mlp4.cmo camlp4/boot/Camlp4.ml
boot/ocamlrun ./ocamlc -nostdlib -c -g -w a -I camlp4/boot -I camlp4/build -I utils -I parsing -I camlp4 -I stdlib -o camlp4/boot/ca
mlp4boot.cmo camlp4/boot/camlp4boot.ml
Fatal error: out of memory.
Exit code 2 while executing this command:
  boot/ocamlrun ./ocamlc -nostdlib -c -g -w a -I camlp4/boot -I camlp4/build -I utils -I parsing -I camlp4 -I stdlib -o camlp4/boot/
camlp4boot.cmo camlp4/boot/camlp4boot.ml
gmake: *** [camlp4out] Error 2
*** Error code 2

Stop.
make: stopped in /usr/pkgsrc/lang/ocaml
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/lang/ocaml
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/net/unison

>How-To-Repeat:
Just rebuild unison (or ocaml for that matter).
>Fix:
In case it's actually a memory problem, then I guess running ulimit should do it. But shouldn't that be in the Makefile?

I had the same problem with blender running out of memory, so I bumped up the process' memory limit, and it worked.