Compiling Error in CentOS by OpenSeesMP makefile

This forum is for issues related to parallel processing
and OpenSees using the new interpreters OpenSeesSP and OpenSeesMP

Moderator: selimgunay

Post Reply
zhangqinglong
Posts: 13
Joined: Fri Mar 21, 2014 8:36 pm
Location: Tsinghua

Compiling Error in CentOS by OpenSeesMP makefile

Post by zhangqinglong » Wed May 07, 2014 8:57 pm

commands.cpp:37:17: error: mpi.h: No such file or directory
In file included from commands.cpp:241:
/home/zql/OpenSees/SRC/system_of_eqn/linearSOE/petsc/PetscSOE.h:44:22: error: petscksp.h: No such file or directory
/home/zql/OpenSees/SRC/modelbuilder/tcl/TclModelBuilder.cpp: In function ‘int TclCommand_addSP(void*, Tcl_Interp*, int, const char**)’:
/home/zql/OpenSees/SRC/modelbuilder/tcl/TclModelBuilder.cpp:2474: warning: unused variable ‘thePattern’
/home/zql/OpenSees/SRC/modelbuilder/tcl/TclModelBuilder.cpp: In function ‘int TclCommand_addImposedMotionSP(void*, Tcl_Interp*, int, const char**)’:
/home/zql/OpenSees/SRC/modelbuilder/tcl/TclModelBuilder.cpp:2509: warning: unused variable ‘ndf’
/home/zql/OpenSees/SRC/modelbuilder/tcl/TclModelBuilder.cpp: In function ‘int TclCommand_Package(void*, Tcl_Interp*, int, const char**)’:
/home/zql/OpenSees/SRC/modelbuilder/tcl/TclModelBuilder.cpp:3393: warning: dereferencing type-punned pointer will break strict-aliasing rules
/home/zql/OpenSees/SRC/modelbuilder/tcl/TclModelBuilder.cpp:3395: warning: dereferencing type-punned pointer will break strict-aliasing rules
/home/zql/OpenSees/SRC/modelbuilder/tcl/TclModelBuilder.cpp:3399: warning: unused variable ‘result’
/home/zql/OpenSees/SRC/modelbuilder/tcl/TclModelBuilder.cpp:3389: warning: unused variable ‘funcName’
/home/zql/OpenSees/SRC/system_of_eqn/linearSOE/petsc/PetscSOE.h: At global scope:
/home/zql/OpenSees/SRC/system_of_eqn/linearSOE/petsc/PetscSOE.h:96: error: ‘Mat’ does not name a type
/home/zql/OpenSees/SRC/system_of_eqn/linearSOE/petsc/PetscSOE.h:97: error: ‘Vec’ does not name a type
/home/zql/OpenSees/SRC/system_of_eqn/linearSOE/petsc/PetscSOE.h:99: error: ‘PetscTruth’ does not name a type
/home/zql/OpenSees/SRC/system_of_eqn/linearSOE/petsc/PetscSolver.h:51: error: expected `)' before ‘method’
/home/zql/OpenSees/SRC/system_of_eqn/linearSOE/petsc/PetscSolver.h:52: error: expected `)' before ‘method’
/home/zql/OpenSees/SRC/system_of_eqn/linearSOE/petsc/PetscSolver.h:70: error: ‘KSP’ does not name a type
/home/zql/OpenSees/SRC/system_of_eqn/linearSOE/petsc/PetscSolver.h:71: error: ‘PC’ does not name a type
/home/zql/OpenSees/SRC/system_of_eqn/linearSOE/petsc/PetscSolver.h:73: error: ‘KSPType’ does not name a type
/home/zql/OpenSees/SRC/system_of_eqn/linearSOE/petsc/PetscSolver.h:74: error: ‘PCType’ does not name a type
/home/zql/OpenSees/SRC/system_of_eqn/linearSOE/petsc/PetscSparseSeqSolver.h:47: error: expected `)' before ‘method’
/home/zql/OpenSees/SRC/system_of_eqn/linearSOE/petsc/PetscSparseSeqSolver.h:48: error: expected `)' before ‘method’
/home/zql/OpenSees/SRC/system_of_eqn/linearSOE/petsc/PetscSparseSeqSolver.h:64: error: ‘KSP’ does not name a type
/home/zql/OpenSees/SRC/system_of_eqn/linearSOE/petsc/PetscSparseSeqSolver.h:65: error: ‘PC’ does not name a type
/home/zql/OpenSees/SRC/system_of_eqn/linearSOE/petsc/PetscSparseSeqSolver.h:67: error: ‘KSPType’ does not name a type
/home/zql/OpenSees/SRC/system_of_eqn/linearSOE/petsc/PetscSparseSeqSolver.h:68: error: ‘PCType’ does not name a type
/home/zql/OpenSees/SRC/system_of_eqn/linearSOE/petsc/PetscSparseSeqSolver.h:74: error: ‘Mat’ does not name a type
/home/zql/OpenSees/SRC/system_of_eqn/linearSOE/petsc/PetscSparseSeqSolver.h:75: error: ‘Vec’ does not name a type
commands.cpp: In function ‘int specifySOE(void*, Tcl_Interp*, int, const char**)’:
commands.cpp:2447: warning: unused variable ‘permSpec’
commands.cpp:2448: warning: unused variable ‘panelSize’
commands.cpp:2449: warning: unused variable ‘relax’
commands.cpp:2532: error: ‘KSPType’ was not declared in this scope
commands.cpp:2532: error: expected `;' before ‘method’
commands.cpp:2533: error: ‘PCType’ was not declared in this scope
commands.cpp:2533: error: expected `;' before ‘preconditioner’
commands.cpp:2564: error: ‘method’ was not declared in this scope
commands.cpp:2564: error: ‘KSPCG’ was not declared in this scope
commands.cpp:2566: error: ‘method’ was not declared in this scope
commands.cpp:2566: error: ‘KSPBICG’ was not declared in this scope
commands.cpp:2568: error: ‘method’ was not declared in this scope
commands.cpp:2568: error: ‘KSPRICHARDSON’ was not declared in this scope
commands.cpp:2570: error: ‘method’ was not declared in this scope
commands.cpp:2570: error: ‘KSPCHEBYCHEV’ was not declared in this scope
commands.cpp:2572: error: ‘method’ was not declared in this scope
commands.cpp:2572: error: ‘KSPGMRES’ was not declared in this scope
commands.cpp:2575: error: ‘preconditioner’ was not declared in this scope
commands.cpp:2575: error: ‘PCJACOBI’ was not declared in this scope
commands.cpp:2577: error: ‘preconditioner’ was not declared in this scope
commands.cpp:2577: error: ‘PCILU’ was not declared in this scope
commands.cpp:2579: error: ‘preconditioner’ was not declared in this scope
commands.cpp:2579: error: ‘PCICC’ was not declared in this scope
commands.cpp:2581: error: ‘preconditioner’ was not declared in this scope
commands.cpp:2581: error: ‘PCBJACOBI’ was not declared in this scope
commands.cpp:2583: error: ‘preconditioner’ was not declared in this scope
commands.cpp:2583: error: ‘PCNONE’ was not declared in this scope
commands.cpp:2589: error: ‘method’ was not declared in this scope
commands.cpp:2589: error: ‘preconditioner’ was not declared in this scope
commands.cpp:2592: error: ‘method’ was not declared in this scope
commands.cpp:2592: error: ‘preconditioner’ was not declared in this scope
commands.cpp:2676: warning: dereferencing type-punned pointer will break strict-aliasing rules
commands.cpp:2647: warning: unused variable ‘result’
commands.cpp: In function ‘int specifyIntegrator(void*, Tcl_Interp*, int, const char**)’:
commands.cpp:5026: warning: dereferencing type-punned pointer will break strict-aliasing rules
commands.cpp:4998: warning: unused variable ‘result’
commands.cpp:5094: warning: dereferencing type-punned pointer will break strict-aliasing rules
commands.cpp: In function ‘int removeObject(void*, Tcl_Interp*, int, const char**)’:
commands.cpp:5760: warning: unused variable ‘nodTag’
commands.cpp: At global scope:
commands.cpp:2268: warning: ‘theExternalAlgorithmCommands’ defined but not used
make[2]: *** [commands.o] Error 1
make[2]: Leaving directory `/home/zql/OpenSees/SRC/tcl'
make[1]: *** [tcl] Error 2
make[1]: Leaving directory `/home/zql/OpenSees/SRC/modelbuilder/tcl'
make: *** [all] Error 2


Hi,fmk:
i have a compiling error problem as shown above, please help me for solve that. thanks.

fmk
Site Admin
Posts: 5883
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: Compiling Error in CentOS by OpenSeesMP makefile

Post by fmk » Thu May 08, 2014 4:27 pm

its looking for mpi.h and cannot find it .. add it to the include path (which probably should not be neccessary if YOU WERE USING THE CORRECT COMPILER!.

don't start by truying to include the Petsc code unless you have installed petsc .. and if you have installed Petsc set the include directories to point to it.

Post Reply