[Developers] Re: [Patches] Set F77 flags correctly when using F90 as F77

Erik Schnetter schnetter at cct.lsu.edu
Fri Oct 14 16:14:40 CDT 2005


On Oct 14, 2005, at 18:58:41, Gian Mario Manca wrote:

> Hello,
> now when I compile on a opteron cluster with suse 9.1
> with the portlan compilers 5.2-2 and the following options
>
> DEBUG=no
> F77=pgf77
> F90=pgf90
> F90FLAGS=-Mx,125,0x200
> F77FLAGS=-Mx,125,0x200
>
> I obtain the following error:
> ###################################################################### 
> #########################
>
> Checking status of thorn ADMConstraints
> ______________________________________________________________________ 
> __
> Preprocessing /home/albert2/manca/CACTUS_AGGIORNAMENTO_13_10_2005/ 
> Cactus/arrangements/CactusEinstein/ADMConstraints/src/ParamCheck.c
> Compiling /home/albert2/manca/CACTUS_AGGIORNAMENTO_13_10_2005/ 
> Cactus/arrangements/CactusEinstein/ADMConstraints/src/ParamCheck.c
> Postprocessing /home/albert2/manca/CACTUS_AGGIORNAMENTO_13_10_2005/ 
> Cactus/arrangements/CactusEinstein/ADMConstraints/src/ParamCheck.c
> ______________________________________________________________________ 
> __
> /home/albert2/manca/CACTUS_AGGIORNAMENTO_13_10_2005/Cactus/configs/ 
> new/config-data/make.config.rules:241: *** Recursive variable  
> `F77_OPTIMISE_FLAGS' references itself (eventually).  Stop.
> make[2]: *** [make.checked] Error 2
> make[1]: *** [/home/albert2/manca/CACTUS_AGGIORNAMENTO_13_10_2005/ 
> Cactus/configs/new/lib/libthorn_ADMConstraints.a] Error 2
> make: *** [new] Error 2
>
> ###################################################################### 
> ############################
>
> Have you got any suggestions?

The line

${F90_OPTIMISE_FLAGS='$(F77_OPTIMISE_FLAGS)

in the PGI configuration section in lib/make/known-architectures/linux
causes trouble.  It means "use as F90 flags whatever the F77 flags
will be set to".  This doesn't work together with the a recent patch
to configure.in, which says "use the same flags for F77 as for F90".
Overall we now have a circular definition.

As a quick fix, I replace the above line with the value of
F77_OPTIMISE_FLAGS.  Since there is no other code which sets a shell
variable (the left hand side) to a Makefile expression (the right hand
side), it may have been an oversight anyway -- probably the author of
the above line wanted to write ${F77_OPTIMISE_FLAGS} instead anyway.

Please try whether this change helps you.

-erik

-- 
Erik Schnetter <schnetter at cct.lsu.edu>

My email is as private as my paper mail.  I therefore support encrypting
and signing email messages.  Get my PGP key from www.keyserver.net.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://www.cactuscode.org/pipermail/developers/attachments/20051014/c8b9582e/attachment.bin 


More information about the Developers mailing list