[MOAB-dev] Fortran interface to MOAB
Vijay S. Mahadevan
vijay.m at gmail.com
Fri Oct 25 18:18:06 CDT 2013
> I try to compile FindConnect.F from moab-4.6.0/examples/itaps with mpif77
What fortran compiler are you using ? Try mpif77 -show.
I dont know whether this is specifically a BG/Q quirk but it is
possible that the pre-processor is screwing up something for the
fortran compiler. It compiles/links/runs cleanly on my Macbook with
gfortran. Without more output, it would be hard to figure out why this
is happening.
Can you split that up in to a compilation and link phase separately so
that we can take a look at the pre-processed file here.
FPP_FLAG="-d" # for BG/Q
FPP_FLAG="-save_temps" # for Intel fortran compilers
FPP_FLAG="-save-temps" # for GFortran
mpif77 -g $(FPP_FLAG) -fcray-pointer -I$(MOAB_DIR)/include
-DHAVE_CONFIG_H -c FindConnectF.F
mpif77 -o FindConnectF FindConnectF.o -L$(MPI_DIR)/lib
-L$(MOAB_DIR)/lib -liMesh -lMOAB -lhdf5 -lm -lmpi_cxx -lstdc++
Modify the above correctly for your configuration, compile and send
the output again along with the pre-processed files.
Vijay
On Fri, Oct 25, 2013 at 4:55 PM, <kanaev at ibrae.ac.ru> wrote:
>> Please give more information if your compilation/linking fails.
>>
>> If the linker errors are due to C++ or MPI linkage, add those
>> appropriately and try again. If you still have problems, let us know.
>
> I try to compile FindConnect.F from moab-4.6.0/examples/itaps with mpif77
> with the following command:
>
> mpif77 -O2 -I/soft/applications/moab/4.6.0/cnk-xl/V1R2M0-20130419/include
> FindConnectF.F -L/soft/libraries/alcf/current/xl/ZLIB/lib
> -L/soft/libraries/hdf5/1.8.10/cnk-xl/V1R2M0-20130405/lib
> -L/soft/applications/moab/4.6.0/cnk-xl/V1R2M0-20130419/lib
> -L/soft/apps/ibmcmp-feb2013/vacpp/bg/12.1/bglib64/
> -L/soft/apps/ibmcmp-feb2013/vac/bg/12.1/bglib64/ -liMesh -lMOAB -lhdf5 -lz
> -lm -libmc++ -lstdc++
>
> the output is the following:
>
> "FindConnectF.F", line 13.16: 1515-019 (S) Syntax is incorrect.
> "FindConnectF.F", line 14.17: 1515-019 (S) Syntax is incorrect.
> "FindConnectF.F", line 15.20: 1515-019 (S) Syntax is incorrect.
> "FindConnectF.F", line 16.6: 1514-050 (S) Specification statement is out of
> order. Statement is ignored.
> "FindConnectF.F", line 17.6: 1514-050 (S) Specification statement is out of
> order. Statement is ignored.
> "FindConnectF.F", line 18.6: 1514-050 (S) Specification statement is out of
> order. Statement is ignored.
> "FindConnectF.F", line 19.6: 1514-050 (S) Specification statement is out of
> order. Statement is ignored.
> "FindConnectF.F", line 20.6: 1514-050 (S) Specification statement is out of
> order. Statement is ignored.
> "FindConnectF.F", line 21.6: 1514-050 (S) Specification statement is out of
> order. Statement is ignored.
> "FindConnectF.F", line 22.6: 1514-050 (S) Specification statement is out of
> order. Statement is ignored.
> "FindConnectF.F", line 23.6: 1514-050 (S) Specification statement is out of
> order. Statement is ignored.
> "FindConnectF.F", line 29.58: 1515-009 (E) Null literal string is not
> permitted. A single blank is assumed.
> ** findconnect === End of Compilation 1 ===
> 1501-511 Compilation failed for file FindConnectF.F.
>
>
>
More information about the moab-dev
mailing list