[petsc-dev] build problem

Mark F. Adams mark.adams at columbia.edu
Sun Jul 24 10:43:18 CDT 2011


Never mind, I cloned a new version and its works now.
Mark

On Jul 24, 2011, at 9:39 AM, Mark F. Adams wrote:

> I pulled and reconfigured and all looked fine but I get this error in building ... any ideas?
> 
> Mark
> 
> libfast in: /Users/markadams/Codes/petsc-dev/src/sys/objects
> init.c:50: error: expected constructor, destructor, or type conversion before '*' token
> init.c:99: error: ISO C++ forbids declaration of 'pthread_barrier_t' with no type
> init.c:99: error: expected ';' before '*' token
> init.c:104: error: too many initializers for 'sjob_true'
> init.c:104: error: invalid conversion from 'int' to 'PetscBool'
> init.c: In function 'PetscErrorCode PetscOptionsCheckInitial_Private()':
> init.c:655: error: 'cpu_set_t' was not declared in this scope
> init.c:655: error: expected ';' before 'mset'
> init.c:656: error: 'get_nprocs' was not declared in this scope
> init.c:658: error: 'mset' was not declared in this scope
> init.c:658: error: 'CPU_ZERO' was not declared in this scope
> init.c:659: error: 'CPU_SET' was not declared in this scope
> init.c:660: error: 'sched_setaffinity' was not declared in this scope
> init.c:663: error: 'get_nprocs' was not declared in this scope
> init.c: In function 'void* PetscThreadFunc_Tree(void*)':
> init.c:823: error: 'cpu_set_t' was not declared in this scope
> init.c:823: error: expected ';' before 'mset'
> init.c:826: error: 'mset' was not declared in this scope
> init.c:826: error: 'CPU_ZERO' was not declared in this scope
> init.c:827: error: 'CPU_SET' was not declared in this scope
> init.c:828: error: 'sched_setaffinity' was not declared in this scope
> init.c: In function 'void* PetscThreadInitialize_Tree(PetscInt)':
> init.c:946: error: 'memalign' was not declared in this scope
> init.c: In function 'void* PetscThreadFunc_Main(void*)':
> init.c:1057: error: 'cpu_set_t' was not declared in this scope
> init.c:1057: error: expected ';' before 'mset'
> init.c:1060: error: 'mset' was not declared in this scope
> init.c:1060: error: 'CPU_ZERO' was not declared in this scope
> init.c:1061: error: 'CPU_SET' was not declared in this scope
> init.c:1062: error: 'sched_setaffinity' was not declared in this scope
> init.c: In function 'void* PetscThreadInitialize_Main(PetscInt)':
> init.c:1113: error: 'memalign' was not declared in this scope
> init.c: In function 'void* PetscThreadFunc_Chain(void*)':
> init.c:1225: error: 'cpu_set_t' was not declared in this scope
> init.c:1225: error: expected ';' before 'mset'
> init.c:1228: error: 'mset' was not declared in this scope
> init.c:1228: error: 'CPU_ZERO' was not declared in this scope
> init.c:1229: error: 'CPU_SET' was not declared in this scope
> init.c:1230: error: 'sched_setaffinity' was not declared in this scope
> init.c: In function 'void* PetscThreadInitialize_Chain(PetscInt)':
> init.c:1333: error: 'memalign' was not declared in this scope
> init.c: In function 'void* PetscThreadFunc_True(void*)':
> init.c:1448: error: 'cpu_set_t' was not declared in this scope
> init.c:1448: error: expected ';' before 'mset'
> init.c:1451: error: 'mset' was not declared in this scope
> init.c:1451: error: 'CPU_ZERO' was not declared in this scope
> init.c:1452: error: 'CPU_SET' was not declared in this scope
> init.c:1453: error: 'sched_setaffinity' was not declared in this scope
> init.c:1491: error: 'struct sjob_true' has no member named 'pbarr'
> init.c:1491: error: 'pthread_barrier_wait' was not declared in this scope
> init.c: In function 'void* PetscThreadInitialize_True(PetscInt)':
> init.c:1514: error: 'BarrPoint' was not declared in this scope
> init.c:1514: error: 'pthread_barrier_t' was not declared in this scope
> init.c:1514: error: expected primary-expression before ')' token
> init.c:1514: error: expected ';' before 'malloc'
> init.c:1520: error: 'pthread_barrier_init' was not declared in this scope
> init.c: In function 'PetscErrorCode PetscThreadFinalize_True()':
> init.c:1541: error: 'BarrPoint' was not declared in this scope
> init.c: In function 'PetscErrorCode MainJob_True(void* (*)(void*), void**, PetscInt)':
> init.c:1567: error: 'struct sjob_true' has no member named 'pbarr'
> init.c:1567: error: 'BarrPoint' was not declared in this scope
> ar: init.o: No such file or directory
> 
> 




More information about the petsc-dev mailing list