anstmichaels / emopt

A suite of tools for optimizing the shape and topology of electromagnetic structures.
BSD 3-Clause "New" or "Revised" License
100 stars 41 forks source link

some errors when run setup.py #17

Closed kaipengliuHIT closed 4 years ago

kaipengliuHIT commented 4 years ago

when I run python setup.py install --user, I get these error:

Running petsc4py-3.13.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-fe_ENw/petsc4py-3.13.0/egg-dist-tmp-YNeh2p In file included from src/PETSc.c:4:0: src/petsc4py.PETSc.c: In function ‘pyx_pf_8petsc4py_5PETSc_3Sys_28infoAllow’: src/petsc4py.PETSc.c:66766:47: error: too few arguments to function ‘PetscInfoAllow’ pyx_t_2 = pyx_f_8petsc4py_5PETSc_CHKERR(PetscInfoAllow(pyx_v_tval)); if (unlikely(pyx_t_2 == ((int)-1))) __PYX_ERR(27, 165, pyx_L1_error) ^~~~~~ In file included from /home/kaipeng/.emopt/include/petscbag.h:4:0, from /home/kaipeng/.emopt/include/petsc.h:5, from src/petsc4py.PETSc.c:598, from src/PETSc.c:4: /home/kaipeng/.emopt/include/petscsys.h:1252:29: note: declared here PETSC_EXTERN PetscErrorCode PetscInfoAllow(PetscBool ,const char []); ^~~~~~ In file included from src/PETSc.c:4:0: src/petsc4py.PETSc.c:66810:49: warning: implicit declaration of function ‘PetscInfoSetFile’; did you mean ‘PetscDrawSetTitle’? [-Wimplicit-function-declaration] pyx_t_2 = pyx_f_8petsc4py_5PETSc_CHKERR(PetscInfoSetFile(pyx_v_cfilename, pyx_v_cmode)); if (unlikely(pyx_t_2 == ((int)-1))) PYX_ERR(27, 169, pyx_L1_error) ^~~~ PetscDrawSetTitle src/petsc4py.PETSc.c: In function ‘pyx_pf_8petsc4py_5PETSc_6DMStag_54getProductCoordinateLocationSlot’: src/petsc4py.PETSc.c:269569:47: warning: implicit declaration of function ‘DMStagGetProductCoordinateLocationSlot’; did you mean ‘DMStagGet1dCoordinateLocationSlot’? [-Wimplicit-function-declaration] pyx_t_2 = pyx_f_8petsc4py_5PETSc_CHKERR(DMStagGetProductCoordinateLocationSlot(pyx_v_self->pyx_base.dm, pyx_v_sloc, (&pyx_v_slot))); if (unlikely(pyx_t_2 == ((int)-1))) PYX_ERR(49, 274, pyx_L1_error) ^~~~~~~~~~ DMStagGet1dCoordinateLocationSlot src/petsc4py.PETSc.c: In function ‘initPETSc’: src/petsc4py.PETSc.c:320288:43: error: ‘MATLMVMBROYDEN’ undeclared (first use in this function); did you mean ‘MATLMVMBRDN’? pyx_t_7 = pyx_f_8petsc4py_5PETScS(MATLMVMBROYDEN); if (unlikely(!pyx_t_7)) PYX_ERR(38, 78, pyx_L1_error) ^~~~~~ MATLMVMBRDN src/petsc4py.PETSc.c:320288:43: note: each undeclared identifier is reported only once for each function it appears in src/petsc4py.PETSc.c:320300:43: error: ‘MATLMVMBADBROYDEN’ undeclared (first use in this function); did you mean ‘MATLMVMBROYDEN’? pyx_t_7 = pyx_f_8petsc4py_5PETScS(MATLMVMBADBROYDEN); if (unlikely(!pyx_t_7)) PYX_ERR(38, 79, pyx_L1_error) ^~~~~ MATLMVMBROYDEN src/petsc4py.PETSc.c:320312:43: error: ‘MATLMVMSYMBROYDEN’ undeclared (first use in this function); did you mean ‘MATLMVMBADBROYDEN’? pyx_t_7 = pyx_f_8petsc4py_5PETScS(MATLMVMSYMBROYDEN); if (unlikely(!pyx_t_7)) PYX_ERR(38, 80, pyx_L1_error) ^~~~~ MATLMVMBADBROYDEN src/petsc4py.PETSc.c:320324:43: error: ‘MATLMVMSYMBADBROYDEN’ undeclared (first use in this function); did you mean ‘MATLMVMSYMBROYDEN’? pyx_t_7 = pyx_f_8petsc4py_5PETScS(MATLMVMSYMBADBROYDEN); if (unlikely(!pyx_t_7)) PYX_ERR(38, 81, pyx_L1_error) ^~~~~~~~ MATLMVMSYMBROYDEN src/petsc4py.PETSc.c:320336:43: error: ‘MATLMVMDIAGBROYDEN’ undeclared (first use in this function); did you mean ‘MATLMVMBADBROYDEN’? pyx_t_7 = pyx_f_8petsc4py_5PETScS(MATLMVMDIAGBROYDEN); if (unlikely(!pyx_t_7)) PYX_ERR(38, 82, pyx_L1_error) ^~~~~~ MATLMVMBADBROYDEN src/petsc4py.PETSc.c:323584:43: error: ‘KSPPIPEPRCG’ undeclared (first use in this function); did you mean ‘KSPPIPELCG’? pyx_t_7 = pyx_f_8petsc4py_5PETScS(KSPPIPEPRCG); if (unlikely(!pyx_t_7)) PYX_ERR(40, 11, __pyx_L1_error) ^~~ KSPPIPELCG