Subject: pkg/14424: memory exhausted building kdelibs2 with new toolchain
To: None <gnats-bugs@gnats.netbsd.org>
From: Mark Davies <mark@mcs.vuw.ac.nz>
List: netbsd-bugs
Date: 11/02/2001 11:53:31
>Number:         14424
>Category:       pkg
>Synopsis:       memory exhausted building kdelibs2 with new toolchain
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 01 14:54:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Mark Davies
>Release:        NetBSD 1.5Y 29/10/2001
>Organization:
Dept. of Comp. Sci., Victoria Uni. of Wellington, New Zealand.
>Environment:
	
	
System: NetBSD turakirae.mcs.vuw.ac.nz 1.5Y NetBSD 1.5Y (MCS_WORKSTATION) #1: Tue Oct 30 22:54:21 NZDT 2001 mark@turakirae.mcs.vuw.ac.nz:/src/work/src/sys/arch/i386/compile/MCS_WORKSTATION i386
Architecture: i386
Machine: i386
>Description:
	building kdelibs2 on an pentium III 733Mhz, 128M memory, 1/2GB swap
	with the new toolchain fails trying to compile khtml/misc/helper.cpp
	with the following message:

/bin/sh ../../libtool --mode=compile --tag=CXX c++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../kimgio -I../.. -I../../dcop  -I../../kio -I../../libltdl  -I../../khtml -I../../khtml/misc -I../../khtml/css  -I../../khtml/dom -I../../khtml/xml -I../../khtml/html  -I../../dcop -I../../libltdl -I../../kdecore -I../../kdeui -I../../kssl -I/src/work/pkgsrc/x11/kdelibs2/work/.buildlink/qt2/include -I/usr/X11R6/include  -I/src/work/pkgsrc/x11/kdelibs2/work/.buildlink/include  -I/src/work/pkgsrc/x11/kdelibs2/work/.buildlink/include -I/src/work/pkgsrc/x11/kdelibs2/work/.buildlink/include  -I/src/work/pkgsrc/x11/kdelibs2/work/.buildlink/include  -O2 -I/src/work/pkgsrc/x11/kdelibs2/work/.buildlink/include -I/src/work/pkgsrc/x11/kdelibs2/work/.buildlink/include -I/src/work/pkgsrc/x11/kdelibs2/work/.buildlink/include -O2 -fno-exceptions -fno-check-new  -ftemplate-depth-99 -DQT_NO_TRANSLATION -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT -DQT_NO_ASCII_CAST  -c helper.cpp
c++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../kimgio -I../.. -I../../dcop -I../../kio -I../../libltdl -I../../khtml -I../../khtml/misc -I../../khtml/css -I../../khtml/dom -I../../khtml/xml -I../../khtml/html -I../../dcop -I../../libltdl -I../../kdecore -I../../kdeui -I../../kssl -I/src/work/pkgsrc/x11/kdelibs2/work/.buildlink/qt2/include -I/usr/X11R6/include -I/src/work/pkgsrc/x11/kdelibs2/work/.buildlink/include -I/src/work/pkgsrc/x11/kdelibs2/work/.buildlink/include -I/src/work/pkgsrc/x11/kdelibs2/work/.buildlink/include -I/src/work/pkgsrc/x11/kdelibs2/work/.buildlink/include -O2 -I/src/work/pkgsrc/x11/kdelibs2/work/.buildlink/include -I/src/work/pkgsrc/x11/kdelibs2/work/.buildlink/include -I/src/work/pkgsrc/x11/kdelibs2/work/.buildlink/include -O2 -fno-exceptions -fno-check-new -ftemplate-depth-99 -DQT_NO_TRANSLATION -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT -DQT_NO_ASCII_CAST -c helper.cpp  -fPIC -DPIC -o .libs/helper.o
helper.cpp: In method `HTMLColors::HTMLColors()':
helper.cpp:156: virtual memory exhausted

Using the old toolchain this didn't happen.

>How-To-Repeat:
	cd pkgsrc/x11/kdelibs2; make update

>Fix:
	Well compiling this one file "-O" rather than "-O2" gets around it.

cheers
mark
>Release-Note:
>Audit-Trail:
>Unformatted: