From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8895 invoked by alias); 19 Dec 2012 04:32:56 -0000 Received: (qmail 8884 invoked by uid 22791); 19 Dec 2012 04:32:55 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_VIA_APNIC,TW_CX X-Spam-Check-By: sourceware.org Received: from comm.purplecow.org (HELO comm.purplecow.org) (210.87.62.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 19 Dec 2012 04:32:50 +0000 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-disposition: inline Content-type: text/plain; charset=us-ascii Received: from comm.purplecow.org ([127.0.0.1]) by comm.purplecow.org (Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar 14 2008; 32bit)) with ESMTP id <0MF900J2JGMO7R00@comm.purplecow.org> for gcc-help@gcc.gnu.org; Wed, 19 Dec 2012 15:32:48 +1100 (EST) Received: from comm.purplecow.org ([127.0.0.1] helo=comm.purplecow.org) with IPv4:25 by ASSP.nospam; Wed, 19 Dec 2012 15:32:48 +1100 Received: from [66.103.52.207] by comm.purplecow.org (mshttpd); Tue, 18 Dec 2012 23:32:48 -0500 From: Dennis Clarke To: Ian Lance Taylor Cc: gcc-help@gcc.gnu.org Message-id: Date: Wed, 19 Dec 2012 04:32:00 -0000 Subject: Re: GCC 2.7.2 stage3 bootstrap error on RHEL6 : collect2: error: ld returned 1 exit status In-reply-to: References: X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2012-12/txt/msg00085.txt.bz2 > > I would expect to see a failure in stage 1 or stage 2 but rarely > > ever stage 3. If anyone has a clue where to look for such a > > beastly error, do let me know. Please. > > ... that the linker did not run over some sort > of resource limit, e.g., set by ulimit. > > Ian Well Sir, good guess. I incresed the stack size quite a bit : sedna $ ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 127435 max locked memory (kbytes, -l) 64 max memory size (kbytes, -m) unlimited open files (-n) 1024 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 65536 cpu time (seconds, -t) unlimited max user processes (-u) 1024 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited Then went back and ran the exact same configure : sedna $ ../gcc-4.7.2/configure \ > --host=x86_64-unknown-linux-gnu --build=x86_64-unknown-linux-gnu \ > --with-as=/usr/local/bin/gas --with-ld=/usr/local/bin/gld --enable-multilib --enable-nls \ > --enable-threads=posix --enable-libada --enable-libssp --enable-lto \ > --enable-stage1-languages=c --enable-shared \ > --prefix=/usr/local/gcc4 --with-local-prefix=/usr/local/include > --mandir=/usr/local/gcc4/share/man --infodir=/usr/local/gcc4/share/info \ > --with-system-zlib --enable-__cxa_atexit --with-arch_32=i686 \ > --with-gmp-include=/usr/local/include --with-gmp-lib=/usr/local/lib \ > --with-mpfr-include=/usr/local/include --with-mpfr-lib=/usr/local/lib \ > --with-mpc-include=/usr/local/include --with-mpc-lib=/usr/local/lib \ > --with-pkgversion=Blastwave.org\ Inc.\ time_rfc-3339\2012-12-19\ 00\:39\:50\+00:00 \ > --enable-languages=ada,c,c++,fortran,go,objc --enable-bootstrap That went very well and the compile took a nice long time, even on a quad core opteron : real 12255.97 user 10349.35 sys 1565.99 testsuite is running now and I can only hope that things go well. Thank you for the pointer to ulimit there. Would not have guessed that and still not sure why it was an issue. Dennis