Error during example compilation of test examples

Satish Balay balay at mcs.anl.gov
Thu Aug 23 12:30:08 CDT 2007


I can't reproduce this error. Can you verify that finclude/petscmat.h
is unmodified?

It should have the following 2 lines - so the variable is
declared correctly.

      PetscEnum MATOP_IS_STRUCTURALLY_SYMMETRIC        (Line:384)
      parameter(MATOP_IS_STRUCTURALLY_SYMMETRIC=87)    (Line:492)

Satish

--------

balay at parth ~/petsc-2.3.3-p4/src/ksp/ksp/examples/tutorials
$ make ex1f
/home/balay/petsc-2.3.3-p4/bin/win32fe/win32fe f90 -c  -threads -debug:full -fpp:-m  -I/home/balay/petsc-2.3.3-p4 -I/home/balay/petsc-2.3.3-p4/bmake/cygwin-ms -I/home/balay/petsc-2.3.3-p4/include -I/cygdrive/c/Program\ Files/MPICH/SDK/include        -o ex1f.o ex1f.F
ex1f.i
/home/balay/petsc-2.3.3-p4/bin/win32fe/win32fe f90 -threads -debug:full -fpp:-m  -o ex1f ex1f.o  -L/home/balay/petsc-2.3.3-p4/lib/cygwin-ms -L/home/balay/petsc-2.3.3-p4/lib/cygwin-ms -lpetscksp -lpetscdm -lpetscmat -lpetscvec -lpetsc    /cygdrive/c/Program\ Files/MPICH/SDK/lib/mpich.lib /cygdrive/c/Program\ Files/Intel/MKL/ia32/lib/mkl_s_dll.lib Gdi32.lib User32.lib Advapi32.lib Kernel32.lib Ws2_32.lib  
output_name: h:\home\balay\PETSC-~1.3-P\src\ksp\ksp\examples\TUTORI~1\ex1f.exe
outfile: 
/usr/bin/rm -f ex1f.o

balay at parth ~/petsc-2.3.3-p4/src/ksp/ksp/examples/tutorials
$ ./ex1f
KSP Object:
  type: gmres
    GMRES: restart=30, using Classical (unmodified) Gram-Schmidt Orthogonalization with no iterative refinement
    GMRES: happy breakdown tolerance 1e-030
  maximum iterations=10000, initial guess is zero
  tolerances:  relative=1e-007, absolute=1e-050, divergence=10000
  left preconditioning
PC Object:
  type: jacobi
  linear system matrix = precond matrix:
  Matrix Object:
    type=seqaij, rows=10, cols=10
    total: nonzeros=28, allocated nonzeros=50
      not using I-node routines
Norm of error < 1.e-12,Iterations =     5

balay at parth ~/petsc-2.3.3-p4/src/ksp/ksp/examples/tutorials
$ 



On Thu, 23 Aug 2007, Ben Tay wrote:

> Hi,
> 
> I got this error while trying to compile the test example in
> src/ksp/ksp/example/tutorials/ex1f
> 
> /codes/petsc-2.3.3-p4/bin/win32fe/win32fe f90 -c  -threads -debug:full -fpp:-m
> -I/codes/petsc-2.3.3-p4 -I/codes/petsc-2.3.3-p4/bmake/win32
> -I/codes/petsc-2.3.3
> -p4/include -I/codes/petsc-2.3.3-p4/include/mpiuni        -o ex1f.o ex1f.F
> ex1f.i
> d:\cygwin\CODES\PETSC-~2.3-P\include/finclude/petscmat.h(492) : Error: This
> name
> does not have a type, and must have an explicit type.
> [MATOP_IS_STRUCTURALLY_
> SYMMETRIC]
>      parameter(MATOP_IS_STRUCTURALLY_SYMMETRIC=87)
> ----------------^
> make: [ex1f.o] Error 1 (ignored)
> 
> Also here on ex5f:
> 
> --------------Error detected during compile or link!-----------------------
> See http://www.mcs.anl.gov/petsc/petsc-2/documentation/troubleshooting.html
> /codes/petsc-2.3.3-p4/bin/win32fe/win32fe f90 -c
> -I/codes/petsc-2.3.3-p4/include
> /finclude -threads -debug:full -fpp:-m  -I/codes/petsc-2.3.3-p4
> -I/codes/petsc-2
> .3.3-p4/bmake/win32 -I/codes/petsc-2.3.3-p4/include
> -I/codes/petsc-2.3.3-p4/incl
> ude/mpiuni        -o ex5f.o ex5f.F
> ex5f.i
> d:\cygwin\CODES\PETSC-~2.3-P\include/finclude/petscmat.h(492) : Error: This
> name
> does not have a type, and must have an explicit type.
> [MATOP_IS_STRUCTURALLY_
> SYMMETRIC]
>      parameter(MATOP_IS_STRUCTURALLY_SYMMETRIC=87)
> ----------------^
> d:\cygwin\CODES\PETSC-~2.3-P\include/finclude/petscmat.h(492) : Error: This
> name
> does not have a type, and must have an explicit type.
> [MATOP_IS_STRUCTURALLY_
> SYMMETRIC]
>      parameter(MATOP_IS_STRUCTURALLY_SYMMETRIC=87)
> ----------------^
> d:\cygwin\CODES\PETSC-~2.3-P\include/finclude/petscmat.h(492) : Error: This
> name
> does not have a type, and must have an explicit type.
> [MATOP_IS_STRUCTURALLY_
> SYMMETRIC]
>      parameter(MATOP_IS_STRUCTURALLY_SYMMETRIC=87)
> ----------------^
> d:\cygwin\CODES\PETSC-~2.3-P\include/finclude/petscmat.h(492) : Error: This
> name
> does not have a type, and must have an explicit type.
> [MATOP_IS_STRUCTURALLY_
> SYMMETRIC]
>      parameter(MATOP_IS_STRUCTURALLY_SYMMETRIC=87)
> ----------------^
> d:\cygwin\CODES\PETSC-~2.3-P\include/finclude/petscmat.h(492) : Error: This
> name
> does not have a type, and must have an explicit type.
> [MATOP_IS_STRUCTURALLY_
> SYMMETRIC]
>      parameter(MATOP_IS_STRUCTURALLY_SYMMETRIC=87)
> ----------------^
> make[3]: [ex5f.o] Error 1 (ignored)
> 
> Hope you can help. Thanks.
> 
> 
> 




More information about the petsc-users mailing list