Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compilation problems in Linux

Status
Not open for further replies.

canavarm

Technical User
Aug 8, 2003
1
CL
Hi, I'm compiling a FORTRAN code, and I receive an error:

(output cut)...
scale.f: In block-data unit `si':
scale.f:320: warning:
Common /Opal/llt,llr,llx,mllx,xx_op,yco,tknx,
^
Initialization of large (544440-unit) aggregate area `opal' at (^) slow and take
s lots of memory during g77 compile
make: *** [scale] Error 1


I introduced some modifications on the main program, but the program where the line appears hasn't been modified. I restored the main one to its original form, but I can't get rid of the message. What is the meaning of this error?

I use Red Hat 8, and gcc.

Thanks
 
1) Is there anything else called opal?
2) Are any of the variables in opal declared as huge arrays?

An easy way to track down the culprit is to separate them
Code:
      common /opal1/llt
      common /opal2/llr
      ... etc
 
This is a bit of a guess...

You could try putting -N in the LDFLAGS section of your makefile. This lets the various memory 'sections' overspill into one another and allows more memory to be allocated as and when it is required.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top