trivial date formatting problem in compiling nwchem.F


Just Got Here
Hi,

I am trying to compile nwchem 6.8 on intel platform (cluster), and I get this error due to date formatting that seems totally trivial but I could not solve it:



make[1]: Entering directory `/software/nwchem-6.8.1/src'
mpiifort -i8 -g  -I.  -I/software/nwchem-6.8.1/src/include -I/software/nwchem-6.8.1/src/tools/install/include -DMPICH_NO_ATTR_TYPE_TAGS -DEXT_INT -DLINUX -DLINUX64 -DPARALLEL_DIAG -DCOMPILATION_DATE="'`date +%a_%b_%d_%H:%M:%S_%Y`'" -DCOMPILATION_DIR="'/software/nwchem-6.8.1'" -DNWCHEM_BRANCH="'6.8.1'"  -c -o nwchem.o nwchem.F
nwchem.F(501): error #5082: Syntax error, found ':' when expecting one of: <END-OF-STATEMENT> ;
     & Mon_Nov_12_16:48:48_2018
--------------------^
nwchem.F(501): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: ) ,
     & Mon_Nov_12_16:48:48_2018
-------------------------------^
nwchem.F(505): error #5082: Syntax error, found REAL_CONSTANT '.1' when expecting one of: :: ) , : * <END-OF-STATEMENT> ; . (/ + - ] /) ' ** > PRIVATE / // ...
     & 6.8.1   
----------^
nwchem.F(501): error #6404: This name does not have a type, and must have an explicit type.   [MON_NOV_12_16]
     & Mon_Nov_12_16:48:48_2018
-------^
nwchem.F(501): error #6514: Substring or array slice notation requires CHARACTER type or array.   [MON_NOV_12_16]
     & Mon_Nov_12_16:48:48_2018
-------^
nwchem.F(500): error #6200: A colon (:) is not valid in this context.
      compiled =
^
nwchem.F(501): error #6684: This is an incorrect value for a kind type parameter in this context.   [2018]
     & Mon_Nov_12_16:48:48_2018
---------------------------^
nwchem.F(505): error #6054: A CHARACTER data type is required in this context.
     & 6.8.1   
----------^
compilation aborted for nwchem.F (code 1)
make[1]: *** [nwchem.o] Error 1
make[1]: Leaving directory `/software/nwchem-6.8.1/src'
make: *** [all] Error 2



Any hints?

Thank you,
Luca

Forum Vet
Please use the following make command (i.e. do not use FC=mpiifort)

make FC=ifort


Forum >> NWChem's corner >> Compiling NWChem