From owner-freebsd-current Sat Jan 1 11:32:25 2000 Delivered-To: freebsd-current@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id E599214FD3 for ; Sat, 1 Jan 2000 11:32:22 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.3/8.9.3) id NAA00966; Sat, 1 Jan 2000 13:32:19 -0600 (CST) (envelope-from dan) Date: Sat, 1 Jan 2000 13:32:19 -0600 From: Dan Nelson To: Leif Neland Cc: freebsd-current@FreeBSD.ORG Subject: Re: 2 hours to compile mysql? Message-ID: <20000101133219.C612@dan.emsphone.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: ; from "Leif Neland" on Sat Jan 1 16:26:44 GMT 2000 X-OS: FreeBSD 4.0-CURRENT Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Jan 01), Leif Neland said: > So far it has been taking 2 hours to compile sql_yacc.cc from > mysql3.22. > > I had to find an old disk for swap, and it's swapping all the time. > > top shows 156M size and 46M res., run time 20min's for cc1plus. That > probably means it's been waiting for swapping in 1h40m... > > The box is a 333MHz PII, with 64M ram. Do I just need more ram to be > able to compile in reasonable time, or is something broken? You probably need more RAM. sql_yacc.cc is one of those "worst-case" programs as far as gcc is concerned; I don't think gcc can parse large case statements like this efficiently. Adding "--with-low-memory" to your port Makefile, in the CONFIGURE_ARGS line, will help. -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message