From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18453 invoked by alias); 9 Nov 2006 04:59:53 -0000 Received: (qmail 18443 invoked by uid 22791); 9 Nov 2006 04:59:52 -0000 X-Spam-Check-By: sourceware.org Received: from Unknown (HELO indus.novaglobal.com.sg) (203.118.43.186) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 09 Nov 2006 04:59:46 +0000 Received: from [10.1.1.36] (unknown [10.1.1.36]) by indus.novaglobal.com.sg (Postfix) with ESMTP id 7FC562246; Thu, 9 Nov 2006 12:34:12 +0800 (SGT) Subject: memory problem From: Deepan Reply-To: deepan@novaglobal.com.sg To: gcc-help@gcc.gnu.org Content-Type: text/plain Date: Thu, 09 Nov 2006 04:59:00 -0000 Message-Id: <1163048394.2744.7.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.3 (2.6.3-1.fc5.5) Content-Transfer-Encoding: 7bit Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2006-11/txt/msg00141.txt.bz2 Hi, My fortran code compiles fine if i use arrays of size less that 4 GB. When i increase the array size to more that 4 GB, the compilation fails with the following error. I am running this on 32GB RAM machine. $ g77 -O3 MAIN.o write_output.o read_population.o write_population.o collide.o initial_conditions.o stream.o communicate.o -o lbm.x -I/usr/local/include -L/usr/local/lib -lmpich -lpthread -lrt MAIN.o(.text+0x7a): In function `MAIN__': : relocation truncated to fit: R_X86_64_PC32 directions_ read_population.o(.text+0x252): In function `read_population__': : relocation truncated to fit: R_X86_64_PC32 directions_ read_population.o(.text+0x273): In function `read_population__': : relocation truncated to fit: R_X86_64_PC32 directions_ read_population.o(.text+0x294): In function `read_population__': : relocation truncated to fit: R_X86_64_PC32 directions_ read_population.o(.text+0x2b5): In function `read_population__': : relocation truncated to fit: R_X86_64_PC32 directions_ read_population.o(.text+0x2d6): In function `read_population__': : relocation truncated to fit: R_X86_64_PC32 directions_ read_population.o(.text+0x2f7): In function `read_population__': : relocation truncated to fit: R_X86_64_PC32 directions_ read_population.o(.text+0x318): In function `read_population__': : relocation truncated to fit: R_X86_64_PC32 directions_ read_population.o(.text+0x339): In function `read_population__': : relocation truncated to fit: R_X86_64_PC32 directions_ read_population.o(.text+0x35a): In function `read_population__': : relocation truncated to fit: R_X86_64_PC32 directions_ read_population.o(.text+0x37b): In function `read_population__': : additional relocation overflows omitted from the output collect2: ld returned 1 exit status I guess there must me some option to g77, that will let the program use more than 4 GB of memory. If someone knows how to resolve this issue, please tell me, Thanks Deepan Chakravarthy N www.codeshepherd.com