compilation problems or not depending on the machine with the # symbol
David Lopez
dlope... at gmail.com
Mon Dec 4 09:25:27 UTC 2017
OK Alfio, thanks a lot. I'll try it.
Ciao!
On Tuesday, November 28, 2017 at 10:25:21 AM UTC+1, Alfio Lazzaro wrote:
>
> Hello David,
> I reply here for the record (I've already replied to you privately). Your
> error has nothing to do with DBCSR itself. It seems due to the existence of
> the meta files with "._" from MacOS (probably you have copied the DBCSR
> sources from your Mac to the linux server). Please, try to install a clean
> version of DBCSR and recompile it.
>
> Alfio
>
>
> On Monday, November 27, 2017 at 12:49:27 PM UTC+1, David Lopez wrote:
>>
>> Hello,
>> I am working with the DBCSR package and I am getting an error
>> in one machine that I do not have in other. When I compile in the
>> second machine I get this error message:
>>
>>
>> [normal compilation here]
>>
>> /home/dlopez/TRABAJO/ECAM/ESL/DBCSR/PROTOTIPO_2_211117_NV/libdbcsr_svn18128/tools/build_utils/fypp
>> -n
>> /home/dlopez/TRABAJO/ECAM/ESL/DBCSR/PROTOTIPO_2_211117_NV/libdbcsr_svn18128/../libdbcsr_svn18128/src/dbcsr/._dbcsr_lib.F
>> ._dbcsr_lib.F90
>>
>> gfortran -c -D__FFTW3 -D__LIBINT -D__LIBXC -D__LIBINT_MAX_AM=7
>> -D__LIBDERIV_MAX_AM1=6 -D__MAX_CONTR=4 -O2 -ffast-math -ffree-form
>> -ffree-line-length-none -ftree-vectorize -funroll-loops -mtune=native
>> -D__COMPILE_ARCH="\"local\"" -D__COMPILE_DATE="\"Wed Nov 22 15:48:12 CET
>> 2017\"" -D__COMPILE_HOST="\"kroketa\"" -D__COMPILE_REVISION="\"\""
>> -D__DATA_DIR="\"/home/dlopez/TRABAJO/ECAM/ESL/DBCSR/PROTOTIPO_2_211117_NV/libdbcsr_svn18128/data\""
>> -D__SHORT_FILE__="\"libdbcsr_svn18128/src/dbcsr/._dbcsr_lib.F\""
>> -I'/home/dlopez/TRABAJO/ECAM/ESL/DBCSR/PROTOTIPO_2_211117_NV/libdbcsr_svn18128/../libdbcsr_svn18128/src/dbcsr/'
>> ._dbcsr_lib.F90
>>
>> ._dbcsr_lib.F90:1:1:
>>
>>
>> # 1
>> "/home/dlopez/TRABAJO/ECAM/ESL/DBCSR/PROTOTIPO_2_211117_NV/libdbcsr_svn18128/../libd
>>
>> 1
>>
>> Error: Invalid character in name at (1)
>>
>> ._dbcsr_lib.F90:1:66:
>>
>>
>> # 1
>> "/home/dlopez/TRABAJO/ECAM/ESL/DBCSR/PROTOTIPO_2_211117_NV/libdbcsr_svn18128/../libd
>>
>> 1
>>
>> Error: Non-numeric character in statement label at (1)
>>
>> ._dbcsr_lib.F90:1:69:
>>
>>
>> # 1
>> "/home/dlopez/TRABAJO/ECAM/ESL/DBCSR/PROTOTIPO_2_211117_NV/libdbcsr_svn18128/../libd
>>
>> 1
>>
>> Error: Non-numeric character in statement label at (1)
>>
>> ._dbcsr_lib.F90:1:72:
>>
>>
>> # 1
>> "/home/dlopez/TRABAJO/ECAM/ESL/DBCSR/PROTOTIPO_2_211117_NV/libdbcsr_svn18128/../libd
>>
>> 1
>>
>> Error: Non-numeric character in statement label at (1)
>>
>> ._dbcsr_lib.F90:1:73:
>>
>>
>> # 1
>> "/home/dlopez/TRABAJO/ECAM/ESL/DBCSR/PROTOTIPO_2_211117_NV/libdbcsr_svn18128/../libd
>>
>> 1
>>
>> Error: Unclassifiable statement at (1)
>>
>> /home/dlopez/TRABAJO/ECAM/ESL/DBCSR/PROTOTIPO_2_211117_NV/libdbcsr_svn18128/makefiles/Makefile:427:
>> recipe for target '._dbcsr_lib.o' failed
>>
>> make[3]: *** [._dbcsr_lib.o] Error 1
>>
>> /home/dlopez/TRABAJO/ECAM/ESL/DBCSR/PROTOTIPO_2_211117_NV/libdbcsr_svn18128/makefiles/Makefile:124:
>> recipe for target 'all' failed
>>
>> make[2]: *** [all] Error 2
>>
>> /home/dlopez/TRABAJO/ECAM/ESL/DBCSR/PROTOTIPO_2_211117_NV/libdbcsr_svn18128/makefiles/Makefile:113:
>> recipe for target 'sopt' failed
>>
>> make[1]: *** [sopt] Error 2
>>
>> Makefile:108: recipe for target 'all' failed
>>
>> make: *** [all] Error 2
>>
>> The first computer, where it works fine, is a MAC. The second
>> computer, where I get the error, is Linux.
>> I have been looking at internet and seems that it is related with the
>> C pre-processor. It seems that in some point some file write a #
>> symbol that afterwards is not recognised. I thing that is something
>> strongly dependent on the machine because as I said I don't have
>> this error in my MAC.
>> I have been deeply looking into the DBCSR files; but I am unable
>> to find the place where is the order of writing that #. The solution
>> could be to print, instead of a #, a !; which will be ignored by the
>> fortran compiler.
>> Any help is kindly appreciated.
>> Thank you very much, David.
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20171204/6745ff0f/attachment.htm>
More information about the CP2K-user
mailing list