Subject: pkg/33336: compiling perl5 aborts with out of memory message
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <rudihl@gmx.de>
List: pkgsrc-bugs
Date: 04/22/2006 10:15:00
>Number:         33336
>Category:       pkg
>Synopsis:       compiling perl5 aborts with out of memory message
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 22 10:15:00 +0000 2006
>Originator:     rudi
>Release:        3.99.8
>Organization:
-private-
>Environment:
gecko# uname -a
NetBSD gecko 3.99.8 NetBSD 3.99.8 (GENERIC) #0: Sat Sep 10 04:25:01 UTC
2005
builds@works.netbsd.org:/home/builds/ab/HEAD/hp700/200509090000Z-obj/home/builds/ab/HEAD/src/sys/arch/hp700/compile/GENERIC
hp700

>Description:
compiling perl5 one a standard installation of NetBSD 3.99.8 on a hp712
aborts with an out of memory message.


....
        AutoSplitting perl library
LD_LIBRARY_PATH=/mnt/pkgsrc/lang/perl5/work/perl-5.8.7 ./miniperl -Ilib -e 'use AutoSplit;  autosplit_lib_modules(@ARGV)' lib/*.pm
LD_LIBRARY_PATH=/mnt/pkgsrc/lang/perl5/work/perl-5.8.7 ./miniperl -Ilib -e 'use AutoSplit;  autosplit_lib_modules(@ARGV)' lib/*/*.pm
....

touch lib/ExtUtils/Miniperl.pm
cd lib/unicore &&
LD_LIBRARY_PATH=/amd/ratte/root/export/pkgsrc/lang/perl5/work/perl-5.8.7
../../miniperl -I../../lib mktables -w
Out of memory!
*** Error code 1

Stop.
make: stopped in /amd/ratte/root/export/pkgsrc/lang/perl5/work/perl-5.8.7

>How-To-Repeat:

>Fix:

Needed to increase the data size to circumvent the problem.

ulimit -S -d 264211

before calling make

Unfortunately then I run into an internal compiler bug later :-(
which will be subject of another PR.