[petsc-users] Errors when changing from ifort to gfortran in cygwin

Satish Balay balay at mcs.anl.gov
Wed Jan 19 08:41:37 CST 2011


On Wed, 19 Jan 2011, TAY wee-beng wrote:

> Hi,
> 
> I am switching from ifort to gfortran in cygwin. My code compiles with ifort
> and PETSc and now I'm changing to gfortran. However, there are lots of error
> msg.
> 
> I understand this is a PETSc mailing list but I hope someone with experience
> in using gfortran can help as well.
> 
> I have attached the makefile_debug
> 
> The errors are:
> 
> Initially using -Wall:
> 
> lots of "Warning: Nonconforming tab character at (1)"
> 
> Changing to -Werror:
> 
> /cygdrive/d/wtay/Lib/MPICH2_cygwin/include/mpif.h:503.7:
>     Included at
> /cygdrive/d/wtay/Lib/petsc-3.1-p7_gcc_debug/include/finclude/petscsys.h:11:
>     Included at
> /cygdrive/d/wtay/Lib/petsc-3.1-p7_gcc_debug/include/finclude/petsc.h:6:
>     Included at
> /cygdrive/d/wtay/Lib/petsc-3.1-p7_gcc_debug/include/finclude/petsc.h90:5:
>     Included at global_cywin.F90:8:
> 
>        SAVE /MPIFCMB1/,/MPIFCMB2/
>        1
> Error: Unclassifiable statement at (1)

I guess 'save' statements should be placed only in the declaration of variables.
Check src/snes/examples/tutorials/ex33f.F for usage.

> /cygdrive/d/wtay/Lib/MPICH2_cygwin/include/mpif.h:504.7:
>     Included at
> /cygdrive/d/wtay/Lib/petsc-3.1-p7_gcc_debug/include/finclude/petscsys.h:11:
>     Included at
> /cygdrive/d/wtay/Lib/petsc-3.1-p7_gcc_debug/include/finclude/petsc.h:6:
>     Included at
> /cygdrive/d/wtay/Lib/petsc-3.1-p7_gcc_debug/include/finclude/petsc.h90:5:
>     Included at global_cywin.F90:8:
> 
>        SAVE /MPIFCMB3/,/MPIFCMB4/,/MPIFCMB5/,/MPIFCMB6/
>        1
> Error: Unclassifiable statement at (1)
> /cygdrive/d/wtay/Lib/MPICH2_cygwin/include/mpif.h:505.7:
>     Included at
> /cygdrive/d/wtay/Lib/petsc-3.1-p7_gcc_debug/include/finclude/petscsys.h:11:
>     Included at
> /cygdrive/d/wtay/Lib/petsc-3.1-p7_gcc_debug/include/finclude/petsc.h:6:
>     Included at
> /cygdrive/d/wtay/Lib/petsc-3.1-p7_gcc_debug/include/finclude/petsc.h90:5:
>     Included at global_cywin.F90:8:
> 
>        SAVE /MPIFCMB7/,/MPIFCMB8/
>        1
> Error: Unclassifiable statement at (1)
> global_cywin.F90:581.132:
> 
> DECIDE,total_k,total_k,5,PETSC_NULL_INTEGER,5,PETSC_NULL_INTEGER,A_mat,ierr
>                                                                            1
> Error: Syntax error in argument list at (1)
> global_cywin.F90:581.132:

I guess you added a line break in the middle of a variable PETSC_DECIDE.

Satish

> 
> DECIDE,total_k,total_k,5,PETSC_NULL_INTEGER,5,PETSC_NULL_INTEGER,A_mat,ierr
>                                                                            1
> Warning: Line truncated at (1)
> global_cywin.F90:1226.132:
> 
> OF PNPOLY.RESULTS INVALID')
>                                                                            1
> Warning: Line truncated at (1)
> 
> I tried to shorten parts of the code by adding & but I still get the "Error:
> Unclassifiable statement at (1)"
> 
> Anyone have any ideas?
> 
> Thanks
> 
> Yours sincerely,
> 
> TAY wee-beng
> 
> 



More information about the petsc-users mailing list