[Smeagol-discuss] compile problem

Ivan Rungger runggeri at tcd.ie
Mon Oct 13 08:41:48 IST 2008


Dear Kun Tao,

  the reason for the problem is that the xlf compiler uses some
different defaults for the fortran file types. For example, instead of 
"mpixlf_r -c mpi.F" one should use "mpixlf_r -c -qsuffix=cpp=F -qfixed
mpi.F". The additional optoins tell the compiler in which format the
code is written in the mpi.F file.

I send you a set of Makefiles and arch.make that work with the mpixlf
compiler. The MPI_Makefile is to be put  as Makefile into the Src/MPI
directory. You can use these files as a basis, and in case you encounter
again similar problems you might try to change the qsuffix/qfixed and
related compiler options.

Cheers,
 
Ivan

Tao K wrote:
> Dear Ivan,
>
> I changed the compiler to mpxlf90_r and encountered new problem:
>
> 1501-510  Compilation successful for file Interfaces.f90.
>         mpxlf90_r -c mpi.F
> "mpi.F", line 27.11: 1515-019 (S) Syntax is incorrect.
> "mpi.F", line 29.34: 1515-019 (S) Syntax is incorrect.
> "mpi.F", line 35.12: 1514-222 (E) A module specification section must
> not include ENTRY statements, FORMAT state
> ments, statement function definitions or executable statements.
> Statement is ignored.
> "mpi.F", line 37.1: 1514-222 (E) A module specification section must not
> include ENTRY statements, FORMAT statem
> ents, statement function definitions or executable statements. Statement
> is ignored.
> "mpi.F", line 37.6: 1515-018 (S) Incorrect character found in source at
> line 37 in column 6.  Hexadecimal value
> of character is 26.
> ........
>
> ** mpi_siesta   === End of Compilation 1 ===
> 1501-511  Compilation failed for file mpi.F.
> make: 1254-004 The error code from the last command is 1.
>
> Could you give me some suggestions?
>
> Best wishes,
> Kun Tao
>   



More information about the Smeagol-discuss mailing list