Open ghost opened 4 years ago
Hej, thanks for your interest in the library. I do not know how to resolve this issue. It looks to me like a problem with (invisible) blanks and tabs in the f90 files that may dependent on the operating system you're using. Everything was tested on Macs at the time, and we found no problems then.
I tried to solve this issue by resetting the value of CPP to fpp
.
However, I got the following new error, as presented below:
creating pp file __
fpp -P -C -D__HAVE_MATLAB__ -D__HAVE_MPI__ -D__BBOB -D__DP -I/usr/local/MATLAB/R2016b/extern/include -I/opt/intel/impi/2019.6.166/intel64/include/ -I./libcma -I./include -I./libtestfcns -I./librng -I./energy_landscapes/LJ -I./bfgs -I./energy_landscapes/TIPnP -I./user -I./libcma/matlab -I./libcma/mpi -I./BBOB ./libcma/matlab/cma2mat.f90 > ./objects/__cma2mat.f90
compiling ifort -I/usr/local/MATLAB/R2016b/extern/include -I/opt/intel/impi/2019.6.166/intel64/include/ -I./libcma -I./include -I./libtestfcns -I./librng -I./energy_landscapes/LJ -I./bfgs -I./energy_landscapes/TIPnP -I./user -I./libcma/matlab -I./libcma/mpi -I./BBOB -c -o objects/cma2mat.o ./objects/__cma2mat.f90
ifort -I/usr/local/MATLAB/R2016b/extern/include -I/opt/intel/impi/2019.6.166/intel64/include/ -I./libcma -I./include -I./libtestfcns -I./librng -I./energy_landscapes/LJ -I./bfgs -I./energy_landscapes/TIPnP -I./user -I./libcma/matlab -I./libcma/mpi -I./BBOB -c -g -o objects/cma2mat.o ./objects/__cma2mat.f90
./objects/__cma2mat.f90(211): error #5082: Syntax error, found '/' when expecting one of: <LABEL> <END-OF-STATEMENT> ; <IDENTIFIER> TYPE MODULE ELEMENTAL IMPURE NON_RECURSIVE ...
/* Current MATRIX published API version */
^
./objects/__cma2mat.f90(211): error #5082: Syntax error, found IDENTIFIER 'PUBLISHED' when expecting one of: ( , * <END-OF-STATEMENT> ; [ = / =>
/* Current MATRIX published API version */
------------------^
./objects/__cma2mat.f90(214): error #5082: Syntax error, found '/' when expecting one of: <LABEL> <END-OF-STATEMENT> ; <IDENTIFIER> TYPE MODULE ELEMENTAL IMPURE NON_RECURSIVE ...
/* Backward compatible current MATRIX published API version */
^
./objects/__cma2mat.f90(214): error #5082: Syntax error, found IDENTIFIER 'CURRENT' when expecting one of: ( , * <END-OF-STATEMENT> ; [ = / =>
/* Backward compatible current MATRIX published API version */
-----------------------^
./objects/__cma2mat.f90(217): error #5082: Syntax error, found '/' when expecting one of: <LABEL> <END-OF-STATEMENT> ; <IDENTIFIER> TYPE MODULE ELEMENTAL IMPURE NON_RECURSIVE ...
/* Backward compatible MATRIX published API versions */
^
./objects/__cma2mat.f90(217): error #5082: Syntax error, found IDENTIFIER 'MATRIX' when expecting one of: ( , * <END-OF-STATEMENT> ; [ = / =>
/* Backward compatible MATRIX published API versions */
-----------------------^
./objects/__cma2mat.f90(220): error #5082: Syntax error, found '/' when expecting one of: <LABEL> <END-OF-STATEMENT> ; <IDENTIFIER> TYPE MODULE ELEMENTAL IMPURE NON_RECURSIVE ...
/* Compile-time MATRIX published API version */
^
./objects/__cma2mat.f90(225): error #5082: Syntax error, found '/' when expecting one of: <LABEL> <END-OF-STATEMENT> ; <IDENTIFIER> TYPE MODULE ELEMENTAL IMPURE NON_RECURSIVE ...
/*
^
./objects/__cma2mat.f90(226): error #5082: Syntax error, found '*' when expecting one of: <LABEL> <END-OF-STATEMENT> ; <IDENTIFIER> TYPE MODULE ELEMENTAL IMPURE NON_RECURSIVE ...
* The following macro enables conditional compilation based on the
-^
./objects/__cma2mat.f90(227): error #5082: Syntax error, found '*' when expecting one of: <LABEL> <END-OF-STATEMENT> ; <IDENTIFIER> TYPE MODULE ELEMENTAL IMPURE NON_RECURSIVE ...
* target published API. The macro can be used in a single source file
-^
./objects/__cma2mat.f90(228): error #5082: Syntax error, found '*' when expecting one of: <LABEL> <END-OF-STATEMENT> ; <IDENTIFIER> TYPE MODULE ELEMENTAL IMPURE NON_RECURSIVE ...
* that is intended to be built against multiple matrix API versions.
-^
./objects/__cma2mat.f90(229): error #5082: Syntax error, found '*' when expecting one of: <LABEL> <END-OF-STATEMENT> ; <IDENTIFIER> TYPE MODULE ELEMENTAL IMPURE NON_RECURSIVE ...
*
-^
./objects/__cma2mat.f90(230): error #5082: Syntax error, found '*' when expecting one of: <LABEL> <END-OF-STATEMENT> ; <IDENTIFIER> TYPE MODULE ELEMENTAL IMPURE NON_RECURSIVE ...
* MX_HAS_64BIT_ARRAY_DIMS evaluates to a non-zero value if array
-^
./objects/__cma2mat.f90(230): catastrophic error: Could not recover from previous syntax error
compilation aborted for ./objects/__cma2mat.f90 (code 1)
makefile:192: recipe for target 'objects/cma2mat.o' failed
make: *** [objects/cma2mat.o] Error 1
Hi, I have the same problem when installing it in linux. May I ask have you ever solved the problem or not?
Hi, I have the same problem when installing it in linux. May I ask have you ever solved the problem or not?
When I installed this library, I got the following issue:
How do I solve it? And I do not have the knowledge of Fortran. Thanks very much for your help.