[FLASH-BUGS] problems while executing gmake

Jonathan Dursi ljdursi at eugenia.asci.uchicago.edu
Tue Jan 14 07:15:25 CST 2003


Hi, Kris:

Some of us at the flash center use the pgf90 compilers, and we run a
test on the FLASH code using this compiler every three days or so.

Every different compiler requires different flags to compile 
properly, and each different system has the needed libraries
(HDF5, etc) in different locations.   In FLASH, the Makefile.h
file contains all the information specific to a particular
system -- library location and compiler flags.   The Makefile.h
is read by the `main' Makefile in the object directory.

You are compiling with the compiler set to pgf90, but compiler flags
that are appropriate for the IBM compilers, xlf90.  (That is why you
are having problems compiling physicaldata.F90; one of the sets of flags
is to define constants, and those constants aren't being set properly,
so physicaldata.F90 can't compile properly).  I'm guessing that
you took a Makefile.h from one of the IBM setups and changed some things.

The easiest way to set FLASH compiling on a new system and/or a new
compiler is to set up another site in the source/sites directory.
If this is the only compiler you'll be using on this machine, the
easiest thing to do is to create a subdirectory named whatever the
"hostname" command returns on your machine.   Then copy the Makefile.h
from the gin.asci.uchicago.edu (which uses pgf90) directory into your
new directory, and edit it as appropriate, such as to set the library
locations correctly.

Then when you set up a problem, your site directory will be used
automatically ( or you can force it with ./setup problem -site=mysite )

If for some reason you are going to be using both the AIX and the
pgf90 compilers on this same machine, you can set up two different site
directories containing different Makefile.h's -- call them aix-mysite
and pgf-mysite, for instance, and manually select them with
	./setup problem -site=aix-mysite
or
	./setup problem -site=pgf-mysite.


Hope that helps

	- Jonathan
-- 
ljdursi at flash.uchicago.edu



More information about the flash-bugs mailing list