The version 3.15.4-3 does not build for me (in a clean chroot with aurutils):
=========================================
Now to install the libraries do:
sudo make PETSC_DIR=/build/petsc/src/petsc-3.15.4 PETSC_ARCH=arch-linux-c-opt install
=========================================
*** Using PETSC_DIR=/build/petsc/src/petsc-3.15.4 PETSC_ARCH=arch-linux-c-opt ***
*** Copying PETSc to DESTDIR location: /build/petsc/src/tmp/opt/petsc/linux-c-opt ***
====================================
Copy to DESTDIR /build/petsc/src/tmp/opt/petsc/linux-c-opt is now complete.
Before use - please copy/install over to specified prefix: /opt/petsc/linux-c-opt
====================================
/usr/bin/make --no-print-directory -f makefile PETSC_ARCH=arch-linux-c-opt PETSC_DIR=/build/petsc/src/petsc-3.15.4 mpi4py-install petsc4py-install libmesh-install mfem-install slepc-install hpddm-install amrex-install bamg-install
make[2]: Nothing to be done for 'mpi4py-install'.
*** Building petsc4py ***
Sorry, user builduser is not allowed to execute '/usr/bin/python setup.py build' as builduser on lahwaacz.
**************************ERROR*************************************
Error building petsc4py.
********************************************************************
make[2]: *** [/build/petsc/src/petsc-3.15.4/arch-linux-c-opt/lib/petsc/conf/petscrules:49: petsc4pybuild] Error 1
make[1]: *** [makefile:296: install] Error 2
make: *** [GNUmakefile:17: install] Error 2
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Build failed, check /var/lib/aurbuild/x86_64/lahwaacz/build
Pinned Comments
MartinDiehl commented on 2022-10-06 10:26 (UTC)
@jrohwer
When building PETSc (more specifically, petsc4py), one test (ex100 from ksp) will fail if a previous (major) version is installed. I could not figure out why this happens. The solution would be to build in a clean root (which is a little bit complicated due to dependency on other AUR packages) or simply uninstall the old version before.
Any help to solve this issue is welcomed.