From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11269 invoked by alias); 1 Apr 2014 18:44:52 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 11223 invoked by uid 48); 1 Apr 2014 18:44:49 -0000 From: "Doug at CSFi dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/378] [AIX] gcc cannot compile huge c file Date: Tue, 01 Apr 2014 18:44:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 2.95.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: Doug at CSFi dot com X-Bugzilla-Status: SUSPENDED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dje at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-04/txt/msg00085.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=378 --- Comment #12 from Doug Dawson --- (In reply to David Edelsohn from comment #11) > Recent releases of GCC are built with linker options to allow larger data > section. Are the user process limits (ulimit) set large enough? One could > rebuild GCC cc1 and cc1plus with even larger -bmaxdata value (or patch the > binary with a larger value), but it's not clear which limit is hit. Current ulimit values: core file size (blocks, -c) 1048575 data seg size (kbytes, -d) 262144 file size (blocks, -f) 2097151 max memory size (kbytes, -m) 32768 open files (-n) 2000 pipe size (512 bytes, -p) 64 stack size (kbytes, -s) 131072 cpu time (seconds, -t) unlimited max user processes (-u) unlimited virtual memory (kbytes, -v) unlimited I changed the ulimits below, but had the same results. Note that this source compiles as 32 Bit on AIX 5.3 using 'gcc version 4.2.4'. ulimit -d 393216 ulimit -m 65536 ulimit -s 262144 ulimit -n 4000 /tmp//ccZ4WBed.s: line 2939315: 1252-171 The displacement must be greater than or equal to -32768 and less than or equal to 32767. When you say rebuild GCC cc1/cc1plus with even larger -bmaxdata, are you refering to the AIX environmental 'export LDR_CNTRL=MAXDATA=0x50000000'? Is this the recommended value?