Installing problem with tamc_run.o

joanyi Chen jny... at gmail.com
Fri Oct 21 18:27:41 CEST 2011


Dear all,

I try to install cp2k on Linux-SUSE and encoutered some problems.

Here is the error during compiling.

fortcom: Error: /home/jnch/cp2k/makefiles/../src/tamc_run.F, line
1036: A pointer dummy argument with the INTENT(IN) attribute shall not
appear as an actual argument if the associated dummy argument has the
INTENT(OUT) or INTENT(INOUT) attribute.   [AVERAGES]
      CALL HMCsampler
(globenv,force_env,averages,r,mc_par,simpar,move,gmoves,rng_stream_mc,output_unit,fz,zbuff,error=error)
-----------------------------------------^
fortcom: Error: /home/jnch/cp2k/makefiles/../src/tamc_run.F, line
1036: This name does not have a type, and must have an explicit
type.   [MOVE]
      CALL HMCsampler
(globenv,force_env,averages,r,mc_par,simpar,move,gmoves,rng_stream_mc,output_unit,fz,zbuff,error=error)
------------------------------------------------------------------^
fortcom: Error: /home/jnch/cp2k/makefiles/../src/tamc_run.F, line
1036: A pointer dummy argument with the INTENT(IN) attribute shall not
appear as an actual argument if the associated dummy argument has the
INTENT(OUT) or INTENT(INOUT) attribute.   [GMOVES]
      CALL HMCsampler
(globenv,force_env,averages,r,mc_par,simpar,move,gmoves,rng_stream_mc,output_unit,fz,zbuff,error=error)
-----------------------------------------------------------------------
^
fortcom: Error: /home/jnch/cp2k/makefiles/../src/tamc_run.F, line
1036: A pointer dummy argument may only be argument associated with a
pointer.   [MOVE]
      CALL HMCsampler
(globenv,force_env,averages,r,mc_par,simpar,move,gmoves,rng_stream_mc,output_unit,fz,zbuff,error=error)
------------------------------------------------------------------^
compilation aborted for /home/jnch/cp2k/makefiles/../src/tamc_run.F
(code 1)
make[1]: *** [tamc_run.o] Error 1


I tried some ways to modify the tamc_run.F file, by erasing
"averages","gmoves" and "move" in the file. Obviously, I'm too naive :
-)
I also tried to edit the arch file by adding
tamc_run.o: tamc_run.F
        $(FC) -c $(FCFLAGS2) $<
from the information provided by intel
http://software.intel.com/en-us/articles/build-cp2k-using-intel-fortran-compiler-professional-edition/
(I read the part of "Known Issues or Limitations", and assumed this
command would pass the tamc_run.F )
Still, in vain. What else can I deal with it?

Thank you very much!

Joan


More information about the CP2K-user mailing list