From owner-freebsd-alpha Tue Aug 24 10:15:42 1999 Delivered-To: freebsd-alpha@freebsd.org Received: from tad.cetlink.net (tad.cetlink.net [209.198.2.10]) by hub.freebsd.org (Postfix) with ESMTP id 30D3A15D85 for ; Tue, 24 Aug 1999 10:11:06 -0700 (PDT) (envelope-from jeff@tad.cetlink.net) Received: (from jeff@localhost) by tad.cetlink.net (8.9.2/8.9.1) id NAA31642; Tue, 24 Aug 1999 13:10:24 -0400 (EDT) (envelope-from jeff) Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <14274.42890.841875.678443@grasshopper.cs.duke.edu> Date: Tue, 24 Aug 1999 13:10:23 -0400 (EDT) Organization: CETLink.Net From: Jeff Wheat To: Andrew Gallatin Subject: Re: 1999-08-08 snapshot problem Cc: freebsd-alpha@FreeBSD.ORG, Doug Rabson Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Thanks to everyone for responding. I have since resized my a disk with disklabel and increased the size of swap by three for 512m of swap. Still ran into the problem. I then tried another suggestion by Shawn Kelly O Shea by using --with-low-memory which resulted in a sucessful build. The only difference that this flag made was to use -fno-inline when compiling sql_yacc.cc Hope this helps someone else! Regards, Jeff PS: This is still marked broken in the ports. On 24-Aug-99 Andrew Gallatin wrote: > > Jeff Wheat writes: > > > > tom-n-jerry# pstat -s > > Device 1K-blocks Used Avail Capacity Type > > /dev/od0b 130816 0 130816 0% Interleaved > > <...> > > c++ -DMYSQL_SERVER > -DDEFAULT_MYSQL_HOME="\"/usr/local\"" - > > DDATADIR="\"/usr/local/var\"" > -DSHAREDIR="\"/usr/local/share/m > > ysql\"" -DHAVE_CONFIG_H -I./../include > - > > I./../regex -I. -I../include -I.. -I. -O > -fno-implicit- > > templates -DDBUG_OFF -c sql_yacc.cc > > Aug 24 09:38:39 tom-n-jerry /kernel: swap_pager: out of swap space > > Aug 24 09:38:39 tom-n-jerry /kernel: swap_pager: out of swap space > > Aug 24 09:38:40 tom-n-jerry /kernel: swap_pager_getswapspace: failed > > Aug 24 09:38:40 tom-n-jerry /kernel: swap_pager_getswapspace: failed > > Aug 24 09:39:02 tom-n-jerry /kernel: pid 6183 (cc1plus), uid 0, was > killed: out > > of swap space > > Aug 24 09:39:02 tom-n-jerry /kernel: pid 6183 (cc1plus), uid 0, was > killed: out > > of swap space > > <...> > > > It is running out of swap for some reason. This same code compiled without > a > > problem under 3.2-RELEASE. > > > > Regards, > > Jeff > > Short answer: > You need more swap space. A good rule of thumb is 3-4 times the size > of physical memory. > > More helpful answer: > > There's some sort of funkyness in the egcs c++ optimizer which makes > it take LOTS of space. I just built mysql for fun & watched the size > of cc1plus get up over 280MB when building sql_yacc.cc. It took over > a minute to compile on a 21264 with 640MB of ram. I've seen this sort > of thing on x86's as well. > > Using -O0 cuts the size down to "only" 25MB or so, and cuts the > compilation time down to 4 seconds. > > I think this problem is fixed in newer versions of gcc (gcc-2.95.1) > which is soon to become the system compiler. > > Drew > > ------------------------------------------------------------------------------ > Andrew Gallatin, Sr Systems Programmer http://www.cs.duke.edu/~gallatin > Duke University Email: gallatin@cs.duke.edu > Department of Computer Science Phone: (919) 660-6590 > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-alpha" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message