From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12223 invoked by alias); 9 Aug 2002 14:06:02 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 12198 invoked by uid 71); 9 Aug 2002 14:06:01 -0000 Resent-Date: 9 Aug 2002 14:06:01 -0000 Resent-Message-ID: <20020809140601.12197.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, "Robert W. Hasker" Received: (qmail 11264 invoked from network); 9 Aug 2002 14:04:07 -0000 Received: from unknown (HELO spruce.ucs.uwplatt.edu) (137.104.128.3) by sources.redhat.com with SMTP; 9 Aug 2002 14:04:07 -0000 Received: from conversion.uwplatt.edu by uwplatt.edu (PMDF V6.0-24 #30579) id <01KL3712EAZ4HCO8RA@uwplatt.edu> for gcc-gnats@gcc.gnu.org; Fri, 09 Aug 2002 09:04:05 -0500 (CDT) Received: from baobab.cs.uwplatt.edu (baobab.cs.uwplatt.edu [137.104.21.1]) by uwplatt.edu (PMDF V6.0-24 #39482) with ESMTP id <01KL3711MUZ4FXCUJQ@uwplatt.edu> for gcc-gnats@gcc.gnu.org; Fri, 09 Aug 2002 09:04:03 -0500 (CDT) Received: by baobab.cs.uwplatt.edu id JAA24932; Fri, 09 Aug 2002 09:04:03 -0500 (CDT) Message-Id: <200208091404.JAA24932@baobab.cs.uwplatt.edu> Date: Fri, 09 Aug 2002 07:16:00 -0000 From: "Robert W. Hasker" To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: 3.113 Subject: bootstrap/7552: problems building gcc 3.1.1 with -O2 X-SW-Source: 2002-08/txt/msg00187.txt.bz2 List-Id: >Number: 7552 >Category: bootstrap >Synopsis: "not enough virtual memory error" when building gcc-3.1.1 >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Fri Aug 09 07:06:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Robert W. Hasker >Release: 3.1.1 >Organization: University of Wisconsin - Platteville >Environment: System: OSF1 baobab.cs.uwplatt.edu V4.0 1530 alpha Machine: alpha host: alpha-dec-osf4.0g build: alpha-dec-osf4.0g target: alpha-dec-osf4.0g configured with: ../gcc-3.1.1/configure --with-stabs --enable-languages=c,c++,f77,java >Description: When I create a separate subdirectory, ./configure, and then "make", I get the error virtual memory exhausted: Not enough space I'm mildly surprised if our VM really isn't large enough; here's part of the output of swapon -s, and at the time of the build no non-system jobs were running: Total swap allocation: Allocated space: 66034 pages (515MB) In-use space: 5095 pages ( 7%) Available space: 60939 pages ( 92%) I have also been able to build previous versions of gcc with no problems, and our javac (which is pretty memory-intensive) runs just fine. The problem occurred with the command gcc -c -DIN_GCC -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -DHAVE_CONFIG_H -I. -Icp -I../../gcc-3.1.1/gcc -I../../gcc-3.1.1/gcc/cp -I../../gcc-3.1.1/gcc/config -I../../gcc-3.1.1/gcc/../include ../../gcc-3.1.1/gcc/cp/decl.c -o cp/decl.o After changing -O2 to -O and rebuilding, I got the same problem w/ the command /usr2/sys/usr/local/src/bld311/gcc/xgcc -shared-libgcc -B/usr2/sys/usr/local/src/bld311/gcc/ -nostdinc++ -L/usr2/sys/usr/local/src/bld311/alpha-dec-osf4.0g/libstdc++-v3/src -L/usr2/sys/usr/local/src/bld311/alpha-dec-osf4.0g/libstdc++-v3/src/.libs -B/usr/local/alpha-dec-osf4.0g/bin/ -B/usr/local/alpha-dec-osf4.0g/lib/ -isystem /usr/local/alpha-dec-osf4.0g/include -nostdinc++ -I/usr2/sys/usr/local/src/bld311/alpha-dec-osf4.0g/libstdc++-v3/include/alpha-dec-osf4.0g -I/usr2/sys/usr/local/src/bld311/alpha-dec-osf4.0g/libstdc++-v3/include -I../../../../gcc-3.1.1/libstdc++-v3/libsupc++ -I../../../../gcc-3.1.1/libstdc++-v3/libmath -g -O2 -mieee -fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings -Winline -fdiagnostics-show-location=once -g -c ../../../../gcc-3.1.1/libstdc++-v3/src/locale-inst.cc -DPIC -o .libs/locale-inst.o >How-To-Repeat: unpack gcc-3.1.1-tar.gz mkdir bld311 cd bld311 ../gcc-3.1.1/configure --with-stabs --enable-languages=c,c++,f77,java make >Fix: My fix was to build decl.o explicitely using the same command as make but w/ -O instead of -O2. To build locale-inst.o, I had to edit the appropriate makefile to force -O instead of -O2 to be used. >Release-Note: >Audit-Trail: >Unformatted: