Thanks, I'll check it out. Em qua, 7 de nov de 2018 às 08:54, Lawrence Mitchell <wence@gmx.li> escreveu:
Dear Emmanuel,
On 7 Nov 2018, at 00:47, Emmanuel Yarleque Medina <eyarmed@gmail.com> wrote:
This is my installation error:
Your installation log indicates that petsc4py failed to build:
creating build/temp.linux-x86_64-3.5 creating build/temp.linux-x86_64-3.5/arch-linux2-c-debug creating build/temp.linux-x86_64-3.5/arch-linux2-c-debug/src
/home/emmanuel/Area_de_Trabalho/petsc-3.9.0/arch-linux2-c-debug/bin/mpicc -pthread -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -fstack-protector -g3 -fPIC -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fdebug-prefix-map=/build/python3.5-nLrllb/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -g -flto -fuse-linker-plugin -ffat-lto-objects -DPETSC_DIR=/home/emmanuel/Area_de_Trabalho/petsc-3.9.0 -I/home/emmanuel/Area_de_Trabalho/petsc-3.9.0/arch-linux2-c-debug/include/eigen3 -I/home/emmanuel/Area_de_Trabalho/petsc-3.9.0/arch-linux2-c-debug/include -I/home/emmanuel/Area_de_Trabalho/petsc-3.9.0/include -Isrc/include -I/home/emmanuel/firedrake/lib/python3.5/site-packages/numpy/core/include -I/home/emmanuel/firedrake/include -I/usr/include/python3.5m -c src/PETSc.c -o build/temp.linux-x86_64-3.5/arch-linux2-c-debug/src/PETSc.o In file included from src/PETSc.c:4:0: src/petsc4py.PETSc.c:3176:70: error: unknown type name ‘PCPatchConstructType’ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_PCPatchConstructType(PCPatchConstructType value);
...
I see you ran firedrake-install with --honour-petsc-dir. While this is a supported route, we do have particular requirements on how recent the PETSc you use is (and what packages it builds with). It looks like the PETSc you are using is too old for the version of petsc4py we want. You have a few options, in order of easiest to hardest:
1. Run firedrake-install without --honour-petsc-dir. This installs a known-compatible version of PETSc inside the firedrake virtualenv (it doesn't interfere with anything else you use).
2. Build the version of PETSc we know is good yourself: clone github.com/firedrakeproject/petsc.git. The firedrake branch in this repository tracks PETSc master with some (small) delays.
3. Build a more modern PETSc (probably the master branch).
Thanks,
Lawrence