I have the following message error
CC linux-c-opt/obj/src/vec/is/sf/interface/ftn-custom/zvscat.o
CXX linux-c-opt/obj/src/sys/objects/kokkos/kinit.o
In file included from /usr/include/OpenMP/Kokkos_OpenMP.hpp:203,
from /usr/include/decl/Kokkos_Declare_OPENMP.hpp:21,
from /usr/include/KokkosCore_Config_DeclareBackend.hpp:22,
from /usr/include/Kokkos_Core.hpp:45,
from /tmp/makepkg/petsc/src/petsc-3.21.5/include/petsc/private/kokkosimpl.hpp:6,
from /tmp/makepkg/petsc/src/petsc-3.21.5/src/sys/objects/kokkos/kinit.kokkos.cxx:2:
/usr/include/OpenMP/Kokkos_OpenMP_Instance.hpp:23:2: error: #error "You enabled Kokkos OpenMP support without enabling OpenMP in the compiler!"
23 | #error \
| ^~~~~
make[3]: *** [gmakefile:200: linux-c-opt/obj/src/sys/objects/kokkos/kinit.o] Error 1
make[3]: *** Waiting for unfinished jobs....
CC linux-c-opt/obj/src/vec/is/section/interface/sectionhdf5.o
CC linux-c-opt/obj/src/vec/is/sf/interface/ftn-custom/zsf.o
CC linux-c-opt/obj/src/vec/is/sf/impls/basic/neighbor/sfneighbor.o
CC linux-c-opt/obj/src/vec/is/sf/interface/sfregi.o
CC linux-c-opt/obj/src/vec/is/sf/utils/f90-custom/zsfutilsf90.o
CC linux-c-opt/obj/src/vec/is/is/impls/general/general.o
CC linux-c-opt/obj/src/vec/is/sf/impls/basic/allgatherv/sfallgatherv.o
CC linux-c-opt/obj/src/vec/is/sf/interface/sftype.o
CC linux-c-opt/obj/src/vec/is/is/utils/iscoloring.o
CC linux-c-opt/obj/src/vec/is/is/utils/isdiff.o
CC linux-c-opt/obj/src/vec/is/sf/impls/basic/sfbasic.o
CC linux-c-opt/obj/src/sys/objects/options.o
CC linux-c-opt/obj/src/vec/is/sf/impls/window/sfwindow.o
CC linux-c-opt/obj/src/vec/is/sf/interface/vscat.o
CC linux-c-opt/obj/src/vec/is/is/interface/index.o
CC linux-c-opt/obj/src/vec/is/sf/interface/sf.o
CC linux-c-opt/obj/src/vec/is/section/interface/section.o
CC linux-c-opt/obj/src/sys/logging/handler/impls/default/logdefault.o
CC linux-c-opt/obj/src/vec/is/sf/impls/basic/sfpack.o
make[3]: Leaving directory '/tmp/makepkg/petsc/src/petsc-3.21.5'
make[2]: *** [/tmp/makepkg/petsc/src/petsc-3.21.5/lib/petsc/conf/rules_doc.mk:5: libs] Error 2
make[2]: Leaving directory '/tmp/makepkg/petsc/src/petsc-3.21.5'
**************************ERROR*************************************
Error during compile, check linux-c-opt/lib/petsc/conf/make.log
Send it and linux-c-opt/lib/petsc/conf/configure.log to petsc-maint@mcs.anl.gov
********************************************************************
make[1]: *** [makefile:44: all] Error 1
make: *** [GNUmakefile:9: all] Error 2
==> ERROR: A failure occurred in build().
full log: https://0x0.st/XEmY.bin
TLDR: I had kokkos
installed before run makepkg. Something is wrong from kokkos's PKGBUILD side or PETSc configuration?
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.