Package Details: petsc 3.21.0-2

Git Clone URL: https://aur.archlinux.org/petsc.git (read-only, click to copy)
Package Base: petsc
Description: Portable, extensible toolkit for scientific computation
Upstream URL: https://petsc.org
Keywords: computing scientific
Licenses: BSD
Provides: petsc4py
Submitter: heitzmann
Maintainer: MartinDiehl
Last Packager: MartinDiehl
Votes: 19
Popularity: 0.000100
First Submitted: 2018-02-24 11:36 (UTC)
Last Updated: 2024-04-03 06:01 (UTC)

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.

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 Next › Last »

exocortex commented on 2023-11-29 14:56 (UTC)

When trying out the example from here (and putting the HS21 directory next to my main) I got this error:

[0]PETSC ERROR: Could not locate solver type superlu for factorization type LU and matrix type mpiaij. Perhaps you must ./configure with --download-superlu

Is there a way I can change my installation so that it does download this stuff. (if that is indeed the cause of this error).

exocortex commented on 2023-11-03 22:08 (UTC)

@MartinDiehl thank you! This was the first time I used pacman to downgrade something and it worked quite well :-)

MartinDiehl commented on 2023-11-02 14:21 (UTC)

@exocortex: This is a bug in SuiteSparse 7.3.0 (https://github.com/DrTimothyAldenDavis/SuiteSparse/issues/478). You either have to downgrade or uninstall it for the moment. Hopefully, SuiteSparse 7.3.1 is out soon.

exocortex commented on 2023-11-02 13:13 (UTC) (edited on 2023-11-02 13:13 (UTC) by exocortex)

installing petsc fails for me. I couldn't run a python script (simple tutorial) after I upgraded my computer because of some problem with libcholmod. I tried reinstalling petsc (and slepc) but now also during installation of petsc there's an error (this time in a file aijcholmod. My terminal output with the error is here:

         CC arch-linux-c-opt/obj/src/mat/impls/aij/seq/matrart.o
         CC arch-linux-c-opt/obj/src/mat/impls/aij/seq/symtranspose.o
         CC arch-linux-c-opt/obj/src/mat/impls/aij/seq/crl/crl.o
         CC arch-linux-c-opt/obj/src/mat/impls/aij/seq/cholmod/aijcholmod.o
In file included from /home/lukipuki/.cache/yay/petsc/src/petsc-3.20.0/include/petscsystypes.h:553,
                 from /home/lukipuki/.cache/yay/petsc/src/petsc-3.20.0/include/petscsys.h:43,
                 from /home/lukipuki/.cache/yay/petsc/src/petsc-3.20.0/include/petscvec.h:8,
                 from /home/lukipuki/.cache/yay/petsc/src/petsc-3.20.0/include/petscmat.h:6,
                 from /home/lukipuki/.cache/yay/petsc/src/petsc-3.20.0/include/petsc/private/matimpl.h:3,
                 from /home/lukipuki/.cache/yay/petsc/src/petsc-3.20.0/include/../src/mat/impls/aij/seq/aij.h:3,
                 from /home/lukipuki/.cache/yay/petsc/src/petsc-3.20.0/src/mat/impls/aij/seq/cholmod/aijcholmod.c:1:
/usr/include/cholmod.h:1902:12: error: expected ‘)’ before ‘__extension__’
 1902 |     void **I,       // integer block of memory (int32_t or int64_t)
      |            ^
In file included from /home/lukipuki/.cache/yay/petsc/src/petsc-3.20.0/include/../src/mat/impls/sbaij/seq/cholmod/cholmodimpl.h:43,
                 from /home/lukipuki/.cache/yay/petsc/src/petsc-3.20.0/src/mat/impls/aij/seq/cholmod/aijcholmod.c:2:
/usr/include/cholmod.h:1903:5: error: expected ‘;’, ‘,’ or ‘)’ before ‘void’
 1903 |     void **J,       // integer block of memory (int32_t or int64_t)
      |     ^~~~
make[3]: *** [gmakefile:197: arch-linux-c-opt/obj/src/mat/impls/aij/seq/cholmod/aijcholmod.o] Error 1
make[3]: *** Waiting for unfinished jobs....
         CC arch-linux-c-opt/obj/src/mat/impls/aij/seq/inode.o
         CC arch-linux-c-opt/obj/src/mat/impls/aij/seq/aijperm/aijperm.o
         CC arch-linux-c-opt/obj/src/mat/impls/aij/seq/matmatmult.o
make[3]: Leaving directory '/home/lukipuki/.cache/yay/petsc/src/petsc-3.20.0'
make[2]: *** [/home/lukipuki/.cache/yay/petsc/src/petsc-3.20.0/lib/petsc/conf/rules.doc:28: libs] Error 2
make[2]: Leaving directory '/home/lukipuki/.cache/yay/petsc/src/petsc-3.20.0'
**************************ERROR*************************************
  Error during compile, check arch-linux-c-opt/lib/petsc/conf/make.log
  Send it and arch-linux-c-opt/lib/petsc/conf/configure.log to petsc-maint@mcs.anl.gov
********************************************************************
make[1]: *** [makefile:45: all] Error 1
make: *** [GNUmakefile:9: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: petsc-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
petsc - exit status 4

MartinDiehl commented on 2023-10-14 11:38 (UTC)

@bred: Did you uninstall a previous PETSc installation?

bred commented on 2023-10-12 14:11 (UTC) (edited on 2023-10-12 14:15 (UTC) by bred)

I've this error in 1.20

 Error while running make check
 make[1]: *** [makefile:132: check] Error 1
 make: *** [GNUmakefile:17: check] Error 2

 -> error making: petsc-exit status 4
 -> Failed to install the following packages. Manual intervention is required: petsc - exit status 4

lahwaacz commented on 2023-09-26 06:14 (UTC)

Still getting the same error due to hypre 2.29.0-1 with petsc 3.19.4-2...

lahwaacz commented on 2023-08-04 05:50 (UTC)

I get the following error trying to build petsc 3.19.4-1 with hypre 2.29.0-1:

In file included from /build/petsc/src/petsc-3.19.4/include/petscsys.h:1086,
                 from /build/petsc/src/petsc-3.19.4/include/petscvec.h:9,
                 from /build/petsc/src/petsc-3.19.4/include/petscmat.h:7,
                 from /build/petsc/src/petsc-3.19.4/include/petscpc.h:7,
                 from /build/petsc/src/petsc-3.19.4/include/petscksp.h:7,
                 from /build/petsc/src/petsc-3.19.4/include/petsc/private/pcimpl.h:5,
                 from /build/petsc/src/petsc-3.19.4/src/ksp/pc/impls/hypre/hypre.c:6:
/build/petsc/src/petsc-3.19.4/src/ksp/pc/impls/hypre/hypre.c: In function ‘PCApply_HYPRE’:
/build/petsc/src/petsc-3.19.4/src/ksp/pc/impls/hypre/hypre.c:446:31: error: incompatible types when assigning to type ‘hypre_Error’ from type ‘int’
  446 |         hypre__global_error = 0;
      |                               ^
/build/petsc/src/petsc-3.19.4/include/petscerror.h:1738:7: note: in definition of macro ‘PetscStackCallExternalVoid’
 1738 |       __VA_ARGS__; \
      |       ^~~~~~~~~~~
/build/petsc/src/petsc-3.19.4/src/ksp/pc/impls/hypre/hypre.c: In function ‘PCApplyTranspose_HYPRE_BoomerAMG’:
/build/petsc/src/petsc-3.19.4/src/ksp/pc/impls/hypre/hypre.c:636:31: error: incompatible types when assigning to type ‘hypre_Error’ from type ‘int’
  636 |         hypre__global_error = 0;
      |                               ^
/build/petsc/src/petsc-3.19.4/include/petscerror.h:1738:7: note: in definition of macro ‘PetscStackCallExternalVoid’
 1738 |       __VA_ARGS__; \
      |       ^~~~~~~~~~~
make[3]: *** [gmakefile:195: arch-linux-c-opt/obj/ksp/pc/impls/hypre/hypre.o] Error 1
make[3]: *** Waiting for unfinished jobs....
         CC arch-linux-c-opt/obj/ksp/pc/impls/mpi/pcmpi.o
         CC arch-linux-c-opt/obj/ksp/pc/impls/vpbjacobi/vpbjacobi.o
         CC arch-linux-c-opt/obj/ksp/pc/impls/jacobi/jacobi.o
         CC arch-linux-c-opt/obj/ksp/pc/impls/mg/fmg.o
         CC arch-linux-c-opt/obj/ksp/ksp/interface/itfunc.o
         CC arch-linux-c-opt/obj/ksp/pc/impls/gamg/geo.o
         CC arch-linux-c-opt/obj/ksp/pc/impls/deflation/deflation.o
         CC arch-linux-c-opt/obj/ksp/pc/impls/gamg/classical.o
         CC arch-linux-c-opt/obj/ksp/pc/impls/is/nn/nn.o
         CC arch-linux-c-opt/obj/ksp/pc/impls/is/pcis.o
         CC arch-linux-c-opt/obj/ksp/pc/impls/hmg/hmg.o
         CC arch-linux-c-opt/obj/ksp/pc/impls/wb/wb.o
         CC arch-linux-c-opt/obj/ksp/pc/impls/gamg/agg.o
         CC arch-linux-c-opt/obj/ksp/pc/impls/mg/gdsw.o
         CC arch-linux-c-opt/obj/ksp/pc/impls/ml/ml.o
         CC arch-linux-c-opt/obj/vec/is/sf/impls/basic/sfpack.o
         CC arch-linux-c-opt/obj/ksp/pc/impls/asm/asm.o
         CC arch-linux-c-opt/obj/ksp/pc/impls/bjacobi/bjacobi.o
         CC arch-linux-c-opt/obj/ksp/pc/impls/gamg/gamg.o
make[3]: Leaving directory '/build/petsc/src/petsc-3.19.4'
make[2]: *** [/build/petsc/src/petsc-3.19.4/lib/petsc/conf/rules.doc:28: libs] Error 2
make[2]: Leaving directory '/build/petsc/src/petsc-3.19.4'
**************************ERROR*************************************
  Error during compile, check arch-linux-c-opt/lib/petsc/conf/make.log
  Send it and arch-linux-c-opt/lib/petsc/conf/configure.log to petsc-maint@mcs.anl.gov
********************************************************************
make[1]: *** [makefile:45: all] Error 1
make: *** [GNUmakefile:9: all] Error 2