Package Details: petsc 3.22.3-1

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-2-Clause
Provides: petsc4py
Submitter: heitzmann
Maintainer: MartinDiehl
Last Packager: MartinDiehl
Votes: 19
Popularity: 0.000000
First Submitted: 2018-02-24 11:36 (UTC)
Last Updated: 2025-02-05 08:49 (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

1 2 3 4 5 6 .. 11 Next › Last »

MartinDiehl commented on 2025-04-04 11:00 (UTC)

@ilovekiruna: Did you recompile PETSc?

ilovekiruna commented on 2025-04-04 10:57 (UTC)

It looks like the latest package still depends on libsuperlu in version 6. However, in the extra repo, the latest package is version 7. Therefore an ldd on libpetsc ldd /opt/petsc/linux-c-opt/lib/libpetsc.so.3.22 gives libsuperlu.so.6 => not found.

medaminezghal commented on 2025-02-05 14:04 (UTC)

@MartinDiehl Could you send me your /etc/makepkg.conf file in the email? Because even after the update the same problem happens again and I need the same fix. Maybe it is related to this file in my computer.

MartinDiehl commented on 2025-01-03 13:54 (UTC)

@medaminezghal

thanks. Good to see that you fixed it. I can't reproduce the error here and will try on other setups later.

medaminezghal commented on 2025-01-03 07:35 (UTC)

@MartinDiehl I found a fix


  ./configure --prefix=${_install_dir} ${CONFOPTS} \
              "CFLAGS=$CFLAGS" \
              "CXXFLAGS=$CXXFLAGS" \
              "FFLAGS=$FFLAGS" \
              "LDFLAGS=$LDFLAGS -lstdc++" \
              "MAKEFLAGS=$MAKEFLAGS"

Just add the -lstdc++ to the LDFLAGS

medaminezghal commented on 2025-01-02 17:53 (UTC)

@MartinDiehl I’ve already done the rebuild for all packages in my system to python 3.13 but this module has an issue when I import it. I found it by accident when I try to install donfinx. For that, I tried to test an example using the library in python and found this error.

MartinDiehl commented on 2025-01-02 16:12 (UTC)

@medaminezghal: maybe you need to rebuild for Python 3.13

medaminezghal commented on 2024-12-27 14:13 (UTC)

when I try to import the library I get this error:


>>> import petsc4py
>>> from petsc4py import PETSc
Traceback (most recent call last):
  File "<python-input-2>", line 1, in <module>
    from petsc4py import PETSc
  File "/opt/petsc/linux-c-opt/lib/petsc4py/PETSc.py", line 4, in <module>
    PETSc = ImportPETSc(ARCH)
  File "/opt/petsc/linux-c-opt/lib/petsc4py/lib/__init__.py", line 30, in ImportPETSc
    return Import('petsc4py', 'PETSc', path, arch)
  File "/opt/petsc/linux-c-opt/lib/petsc4py/lib/__init__.py", line 97, in Import
    module = import_module(pkg, name, path, arch)
  File "/opt/petsc/linux-c-opt/lib/petsc4py/lib/__init__.py", line 74, in import_module
    module = importlib.util.module_from_spec(spec)
ImportError: /opt/petsc/linux-c-opt/lib/libpetsc.so.3.22: undefined symbol: _ZTVN10__cxxabiv117__class_type_infoE


lahwaacz commented on 2024-11-14 11:48 (UTC) (edited on 2024-11-14 11:53 (UTC) by lahwaacz)

The build with trilinos-ml fails because Trilinos 16 has deprecated the ML package:

In file included from /usr/include/ml_include.h:16,
                 from /tmp/petsc-lz1o27i4/config.headers/conftest.cc:3:
/usr/include/ml_common.h:189:2: warning: #warning "The ML package is deprecated" [-Wcpp]
  189 | #warning "The ML package is deprecated"
      |  ^~~~~~~
In file included from /usr/include/ml_defs.h:8,
                 from /usr/include/ml_include.h:17:
/usr/include/ml_common.h:189:2: warning: #warning "The ML package is deprecated" [-Wcpp]
  189 | #warning "The ML package is deprecated"
      |  ^~~~~~~
/usr/include/ml_defs.h:200:2: warning: #warning "The ML package is deprecated" [-Wcpp]
  200 | #warning "The ML package is deprecated"
      |  ^~~~~~~
In file included from /usr/include/ml_struct.h:26,
                 from /usr/include/ml_include.h:18:
/usr/include/ml_common.h:189:2: warning: #warning "The ML package is deprecated" [-Wcpp]
  189 | #warning "The ML package is deprecated"
      |  ^~~~~~~
In file included from /usr/include/ml_struct.h:27:
/usr/include/ml_defs.h:200:2: warning: #warning "The ML package is deprecated" [-Wcpp]
  200 | #warning "The ML package is deprecated"
      |  ^~~~~~~
...

These warnings are printed to stderr by the compiler and the Petsc build system treats it as an error when it checks if the #include <ml_include.h> include statement works.

MartinDiehl commented on 2024-10-08 19:01 (UTC)

@carlosal1015: I assume you solved it, at least I saw in your Kokkos package '' -DKokkos_ENABLE_OPENMP=OFF''

We could also try to enable openMP in PETSc, but I think that is normally not recommended.