[Pw_forum] iotk make error

Andrea Ferretti ferretti.andrea at unimore.it
Wed Apr 25 22:26:33 CEST 2007


Dear Hasehm,

> mpif90 -O3 -x f95-cpp-input -D__FFTW -D__USE_INTERNAL_FFTW -D__MPI 
> -D__PARA -I../include  -I./ 
> -I../Modules  -I../iotk/src -I../PW  -I../PH  -I../CPV -c 
>  iotk_dat+CHARACTER1_0.f90

> In file iotk_dat.spp:656
> 
>  CHARACTER (kind=iotk_defkind_character,len=len(dat)), allocatable ::
> tmpdat(:)
>                                                1
> Error: Dummy argument 'dat' at (1) cannot be INTENT(OUT)
> In file iotk_dat.spp:656
> 

looking in the file ~espresso/iotk/src/iotk_dat.spp it seems that this
misbehaviour is already workarounded by a suitable precompiler macro 
(__IOTK_WORKAROUND6)...

this macros are swtiched on in the file 
~espresso/iotk/include/iotk_config.h

which setis the workarounds for every platform...

unfortunately, it seems that your machine was not recognized and no 
precompiler flag was set... this makes confusion also in iotk_config.h 

the problem in iotk can be solved editing 
~/espresso/iotk/include/iotk_config.h  (around line 66)

substitute
...
#elif defined(__SX6)
#   define __IOTK_WORKAROUND5
#   define __IOTK_WORKAROUND7
#endif


with

#elif defined(__SX6)
#   define __IOTK_WORKAROUND5
#   define __IOTK_WORKAROUND7
#else
#   define __IOTK_WORKAROUND1
#   define __IOTK_WORKAROUND2
#   define __IOTK_WORKAROUND3
#   define __IOTK_WORKAROUND4
#   define __IOTK_WORKAROUND5
#   define __IOTK_WORKAROUND6
#   define __IOTK_WORKAROUND7
#endif


============================

Anyway, the best way to fix all this would be to properly configure 
espresso in such a way that all the needed macros are automatically set.

by the way,
could you please provide the make.sys file generated by configure ??

Cheers 
Andrea




More information about the Pw_forum mailing list