[petsc-dev] Regarding an error

Chen S chensp2602 at gmail.com
Tue Feb 28 04:27:13 CST 2012


Hi ,
I'm building petsc using cygwin (on a windows machine), and I got the
following errors while running "make all",
(this is the latest build, i've updated on Feb 28th. ):

C:\cygwin\home\PETSC-~4\src\mat\coarsen\impls\mis\mis.c(352) : error C2016:
C requires that a struct or union has at least one member
C:\cygwin\home\PETSC-~4\src\mat\coarsen\impls\hem\hem.c(322) : error C2016:
C requires that a struct or union has at least one member

C:\cygwin\home\PETSC-~4\src\snes\impls\ms\ms.c(421) : error C2143: syntax
error : missing ';' before 'type'
C:\cygwin\home\PETSC-~4\src\snes\impls\ms\ms.c(424) : error C2065: 'ierr' :
undeclared identifier
C:\cygwin\home\PETSC-~4\src\snes\impls\ms\ms.c(424) : error C2065: 'ierr' :
undeclared identifier
C:\cygwin\home\PETSC-~4\src\snes\impls\ms\ms.c(424) : error C2065: 'ierr' :
undeclared identifier
C:\cygwin\home\PETSC-~4\src\snes\impls\ms\ms.c(432) : error C2065: 'ierr' :
undeclared identifier
C:\cygwin\home\PETSC-~4\src\snes\impls\ms\ms.c(432) : error C2065: 'ierr' :
undeclared identifier
C:\cygwin\home\PETSC-~4\src\snes\impls\ms\ms.c(432) : error C2065: 'ierr' :
undeclared identifier
C:\cygwin\home\PETSC-~4\src\snes\impls\ms\ms.c(434) : error C2065: 'ierr' :
undeclared identifier
C:\cygwin\home\PETSC-~4\src\snes\impls\ms\ms.c(434) : error C2065: 'ierr' :
undeclared identifier
C:\cygwin\home\PETSC-~4\src\snes\impls\ms\ms.c(434) : error C2065: 'ierr' :
undeclared identifier
C:\cygwin\home\PETSC-~4\src\snes\impls\ms\ms.c(436) : error C2065: 'ierr' :
undeclared identifier
C:\cygwin\home\PETSC-~4\src\snes\impls\ms\ms.c(436) : error C2065: 'ierr' :
undeclared identifier
C:\cygwin\home\PETSC-~4\src\snes\impls\ms\ms.c(436) : error C2065: 'ierr' :
undeclared identifier
C:\cygwin\home\PETSC-~4\src\snes\impls\ms\ms.c(437) : error C2065: 'ierr' :
undeclared identifier
C:\cygwin\home\PETSC-~4\src\snes\impls\ms\ms.c(437) : error C2065: 'ierr' :
undeclared identifier
C:\cygwin\home\PETSC-~4\src\snes\impls\ms\ms.c(437) : error C2065: 'ierr' :
undeclared identifier
C:\cygwin\home\PETSC-~4\src\snes\impls\ms\ms.c(438) : error C2065: 'ierr' :
undeclared identifier
C:\cygwin\home\PETSC-~4\src\snes\impls\ms\ms.c(438) : error C2065: 'ierr' :
undeclared identifier
C:\cygwin\home\PETSC-~4\src\snes\impls\ms\ms.c(438) : error C2065: 'ierr' :
undeclared identifier
C:\cygwin\home\PETSC-~4\src\snes\impls\ms\ms.c(439) : error C2065: 'ierr' :
undeclared identifier
C:\cygwin\home\PETSC-~4\src\snes\impls\ms\ms.c(439) : error C2065: 'ierr' :
undeclared identifier
C:\cygwin\home\PETSC-~4\src\snes\impls\ms\ms.c(439) : error C2065: 'ierr' :
undeclared identifier
C:\cygwin\home\PETSC-~4\src\snes\impls\ms\ms.c(440) : error C2065: 'ierr' :
undeclared identifier
C:\cygwin\home\PETSC-~4\src\snes\impls\ms\ms.c(440) : error C2065: 'ierr' :
undeclared identifier
C:\cygwin\home\PETSC-~4\src\snes\impls\ms\ms.c(440) : error C2065: 'ierr' :
undeclared identifier
C:\cygwin\home\PETSC-~4\src\snes\impls\ms\ms.c(442) : error C2065: 'ierr' :
undeclared identifier
C:\cygwin\home\PETSC-~4\src\snes\impls\ms\ms.c(442) : error C2065: 'ierr' :
undeclared identifier
C:\cygwin\home\PETSC-~4\src\snes\impls\ms\ms.c(442) : error C2065: 'ierr' :
undeclared identifier

C:\cygwin\home\PETSC-~4\src\ksp\pc\impls\gamg\gamg.c(516) : error C2143:
syntax error : missing ';' before 'type'
C:\cygwin\home\PETSC-~4\src\ksp\pc\impls\gamg\gamg.c(519) : error C2065:
'selected' : undeclared identifier
C:\cygwin\home\PETSC-~4\src\ksp\pc\impls\gamg\gamg.c(519) : warning C4047:
'function' : 'IS *' differs in levels of indirection from 'int *'
C:\cygwin\home\PETSC-~4\src\ksp\pc\impls\gamg\gamg.c(519) : warning C4024:
'function through pointer' : different types for formal and actual
parameter 3
C:\cygwin\home\PETSC-~4\src\ksp\pc\impls\gamg\gamg.c(519) : error C2065:
'llist' : undeclared identifier
C:\cygwin\home\PETSC-~4\src\ksp\pc\impls\gamg\gamg.c(519) : warning C4047:
'function' : 'IS *' differs in levels of indirection from 'int *'
C:\cygwin\home\PETSC-~4\src\ksp\pc\impls\gamg\gamg.c(519) : warning C4024:
'function through pointer' : different types for formal and actual
parameter 4
C:\cygwin\home\PETSC-~4\src\ksp\pc\impls\gamg\gamg.c(520) : error C2065:
'selected' : undeclared identifier
C:\cygwin\home\PETSC-~4\src\ksp\pc\impls\gamg\gamg.c(520) : warning C4047:
'function' : 'IS' differs in levels of indirection from 'int'
C:\cygwin\home\PETSC-~4\src\ksp\pc\impls\gamg\gamg.c(520) : warning C4024:
'function through pointer' : different types for formal and actual
parameter 4
C:\cygwin\home\PETSC-~4\src\ksp\pc\impls\gamg\gamg.c(520) : error C2065:
'llist' : undeclared identifier
C:\cygwin\home\PETSC-~4\src\ksp\pc\impls\gamg\gamg.c(520) : warning C4047:
'function' : 'IS' differs in levels of indirection from 'int'
C:\cygwin\home\PETSC-~4\src\ksp\pc\impls\gamg\gamg.c(520) : warning C4024:
'function through pointer' : different types for formal and actual
parameter 5
C:\cygwin\home\PETSC-~4\src\ksp\pc\impls\gamg\gamg.c(538) : error C2065:
'selected' : undeclared identifier
C:\cygwin\home\PETSC-~4\src\ksp\pc\impls\gamg\gamg.c(538) : warning C4047:
'function' : 'IS *' differs in levels of indirection from 'int *'
C:\cygwin\home\PETSC-~4\src\ksp\pc\impls\gamg\gamg.c(538) : warning C4024:
'ISDestroy' : different types for formal and actual parameter 1
C:\cygwin\home\PETSC-~4\src\ksp\pc\impls\gamg\gamg.c(539) : error C2065:
'llist' : undeclared identifier
C:\cygwin\home\PETSC-~4\src\ksp\pc\impls\gamg\gamg.c(539) : warning C4047:
'function' : 'IS *' differs in levels of indirection from 'int *'
C:\cygwin\home\PETSC-~4\src\ksp\pc\impls\gamg\gamg.c(539) : warning C4024:
'ISDestroy' : different types for formal and actual parameter 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20120228/5b364290/attachment.html>


More information about the petsc-dev mailing list