public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Deepan <deepan@novaglobal.com.sg>
To: gcc-help@gcc.gnu.org
Subject: memory problem
Date: Thu, 09 Nov 2006 04:59:00 -0000	[thread overview]
Message-ID: <1163048394.2744.7.camel@localhost.localdomain> (raw)

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 

             reply	other threads:[~2006-11-09  4:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-09  4:59 Deepan [this message]
2006-11-09 13:32 ` Tim Prince
  -- strict thread matches above, loose matches on Subject: below --
2005-01-13 17:39 lrtaylor
2005-01-13 17:32 xuejun gu
2005-01-13 17:39 ` Eljay Love-Jensen
     [not found] <20040913111103.77851.qmail@web52901.mail.yahoo.com>
2004-09-13 11:48 ` Ron Michael Khu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1163048394.2744.7.camel@localhost.localdomain \
    --to=deepan@novaglobal.com.sg \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).