[CP2K:2932] Illegal use of symbol gamma (cluster_methods.f90

Teodoro Laino teodor... at gmail.com
Mon Nov 22 18:14:50 CET 2010


Hi,

this is clearly a bug in PGI compiler. In file cluster_methods.F there is a variable named gamma.
Unfortunately there is also a module named gamma. This is possible and correct. Unfortunately since 2006 (or even earlier) PGI refuses to accept this as a possibility and declares it a mistake (see your error message below).

Can't you use a different compiler? some free one? gfortran or g95 are 2 possible options that you can get without paying a cent.

Best,
Teo

On Nov 22, 2010, at 5:37 PM, maria wrote:

> Hello,
> I am trying to compile cp2k still with poor result.
> Please help me solve errors that occur during compilation.
> 
> I got errors:
> PGF90-S-0084-Illegal use of symbol gamma  (cluster_methods.f90: 460)
> PGF90-S-0084-Illegal use of symbol gamma  (cluster_methods.f90: 484)
> PGF90-S-0084-Illegal use of symbol gamma  (cluster_methods.f90: 485)
> PGF90-S-0084-Illegal use of symbol gamma  (cluster_methods.f90: 539)
> 
> 
> I tried as below
> 
> # The following settings worked for:
> # - AMD64 Opteron cluster
> # - SUSE Linux 9.1 (x86_64) including the precompiled FFTW library
> # - PGI CDK 5.2 (Cluster Development Kit) with PGI Fortran compiler
> #   version 5.2-2, ACML 2.0, ScaLAPACK 1.7, BLACS 1.1, MPICH 1.2.6
> #
> CC       = cc
> CPP      = cpp
> FC       = pgf95 -Mfree
> LD       = pgf95
> AR       = ar -r
> DFLAGS   = -D__PGI -D__FFTSG
> CPPFLAGS = -traditional -C $(DFLAGS) -P
> FCFLAGS  = -fastsse -tp amd64
> LDFLAGS  = $(FCFLAGS)
> LIBS     = $(PGI_LIB)/liblapack.a $(PGI_LIB)/libblas.a
> 
> OBJECTS_ARCHITECTURE = machine_pgi.o
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups "cp2k" group.
> To post to this group, send email to cp... at googlegroups.com.
> To unsubscribe from this group, send email to cp2k+uns... at googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/cp2k?hl=en.
> 




More information about the CP2K-user mailing list