[Wien] Compile with PGF90 on RedHat 9.0--"subprogram too large to compile at this optimization level"

Kirk Feindel kfeindel at ualberta.ca
Wed Jul 30 03:14:29 CEST 2003


Matt,

I had the same problem.  In the SRC_lapw2 folder, change the compiler option (FOPT) in the Makefile to -O1 (rather than -fast) then recompile the whole package.

Kirk
  ----- Original Message ----- 
  From: Matthew.Carey at hgst.com 
  To: wien at zeus.theochem.tuwien.ac.at 
  Sent: Tuesday, July 29, 2003 7:01 PM
  Subject: [Wien] Compile with PGF90 on RedHat 9.0--"subprogram too large to compile at this optimization level"



  Hello, 

  I am new and trying to compile under both RedHat 9 and SuSE 8.2.   I had problems with the Intel compiler and, after seeing some of the other messages about the problems with this combination, decided to try the PGI compiler (on the 15 day trial).  This example is from the RedHat machine. 

  I got this error for lapw2: 

  PGF90-F-0007-Subprogram too large to compile at this optimization level  (vdrho.f) 
  make[1]: *** [vdrho.o] Error 2 
  make[1]: Leaving directory `/usr/WIEN2K/SRC_lapw2' 
  make: *** [complex] Error 2 

  the makefile has these flags set: 

  FOPT =  -Mfreeform -fast -Kieee 
  FPOPT =  -Mfreeform -fast -Kieee 
  DParallel = '-DParallel' 
  FGEN = $(PARALLEL) 
  LDFLAGS = -L../SRC_lib 
  R_LIBS = -llapack_lapw -lblas 
  C_LIBS = $(R_LIBS) 
  RP_LIBS = $(R_LIBS) -L /usr/local/SCALAPACK -L /usr/local/BLACS/LIB -lpblas -lredist -ltools -lscalapack -lfblacs -lblacs -lmpi 
  CP_LIBS = $(RP_LIBS) 
  DESTDIR = . 

  a quick look at the manual says that  -fast is like -O2.  Should I back off to -O? 

  I would appreciate any suggestion. 

  Matt
  _________________________________
  Matthew J Carey, Research Staff Member
  Hitachi Global Storage Technologies
  San Jose Research Center
  650 Harry Rd.
  San Jose, CA 95120

  ph:  408.323.7218
  fax:  408.323.7010
  Matthew.Carey at hgst.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://zeus.theochem.tuwien.ac.at/pipermail/wien/attachments/20030730/0294c16f/attachment.html


More information about the Wien mailing list