build issues with DMShellSetCreateSubDM when building from master

Issue #42 resolved
Steven Vandekerckhove created an issue

I'm trying to build from master, but the build keeps failing.

Could anyone tell me how to resolve this?

Many thanks!

src/petsc4py.PETSc.c: In function ‘PyObject* __pyx_pf_8petsc4py_5PETSc_7DMShell_36setCreateSubDM(__pyx_obj_8petsc4py_5PETSc_DMShell*, PyObject*, PyObject*, PyObject*)’:
src/petsc4py.PETSc.c:235487:144: error: ‘DMShellSetCreateSubDM’ was not declared in this scope
     __pyx_t_4 = __pyx_f_8petsc4py_5PETSc_CHKERR(DMShellSetCreateSubDM(__pyx_v_self->__pyx_base.dm, __pyx_f_8petsc4py_5PETSc_DMSHELL_CreateSubDM)); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[44]; __pyx_lineno = 167; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                                                                                ^
src/petsc4py.PETSc.c:235505:104: error: ‘DMShellSetCreateSubDM’ was not declared in this scope
     __pyx_t_4 = __pyx_f_8petsc4py_5PETSc_CHKERR(DMShellSetCreateSubDM(__pyx_v_self->__pyx_base.dm, NULL)); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[44]; __pyx_lineno = 169; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                                        ^
error: command 'mpicxx' failed with exit status 1

Comments (2)

  1. Lisandro Dalcin

    Are you using petsc/master branch ? Otherwise, if you are using PETSc's latest release tarball (or petsc/maint branch), you have to switch to petsc4py/maint branch, i.e. do git checkout maint.

  2. Log in to comment