Package Details: trilinos 15.1.1-1

Git Clone URL: (read-only, click to copy)
Package Base: trilinos
Description: algorithms for the solution of large-scale scientific problems
Upstream URL:
Keywords: computing scientific
Licenses: LGPL3
Provides: kokkos, trilinos-ml, trilinos-sacado, zoltan
Submitter: Alad
Maintainer: MartinDiehl
Last Packager: MartinDiehl
Votes: 5
Popularity: 0.052286
First Submitted: 2019-03-18 02:48 (UTC)
Last Updated: 2024-04-02 05:39 (UTC)

Required by (13)

Sources (1)

Pinned Comments

MartinDiehl commented on 2020-06-05 12:05 (UTC)

@hacksd: I had a look at the gtest issue, and I assume the following is happening: Trilinos brings its own version of gtest, hence the conflict with gtest. However, during build an existing gtest installation is required (in my case, the already installed trilinos package provides it). I'll figure out if this can be solved, but since disabling gtest works it's not on my list of priorities

I have disabled pyTrilinos in this package to have no dependency on python or python2. From, it seems that python3 is not supported. I also remember vaguely that even python2 (SWIG) caused problems. Also note that current gtest depends on python2.

Once gtest 1.10 (currently in testing) is available, I will see if trilinos works with a system-wide gtest.

Latest Comments

1 2 3 Next › Last »

lahwaacz commented on 2023-12-24 11:24 (UTC)

Please don't hardcode the amount of build parallelism with --parallel 4. If you want to enforce parallelism, it is best to add ninja to makedepends and -G Ninja to CMake's configure flags, otherwise just leave it up to users to define their MAKEFLAGS environment variable as they like.

carlosal1015 commented on 2023-06-25 18:36 (UTC) (edited on 2023-07-10 23:24 (UTC) by carlosal1015)

For me, seems strange the following output

$ldd /usr/lib/
        statically linked

Also is possible to add provides=(kokkos).

Edited 2023-07-10: This patch allow bump version to 14.2.0. And works with deal.II 9.5.0 or later. 14.0.0 does not work with 9.4.2 due libkokkos shared/static object issue.

carlosal1015 commented on 2022-09-23 19:46 (UTC) (edited on 2022-09-23 19:47 (UTC) by carlosal1015)

Hi, could you add


gpettinello commented on 2022-07-23 06:45 (UTC)

@petronny Same for me

petronny commented on 2022-07-05 14:31 (UTC)

Getting the following error:

[ 25%] Building C object packages/seacas/libraries/exodus/CMakeFiles/exodus.dir/src/ex_update.c.o
cd /build/trilinos/src/Trilinos-trilinos-release-13-2-0/build/packages/seacas/libraries/exodus && /usr/bin/mpicc -Dexodus_EXPORTS -I/build/trilinos/src/Trilinos-trilinos-release-13-2-0/build -I/build/trilinos/src/Trilinos-trilinos-release-13-2-0/packages/seacas/libraries/exodus/include -I/build/trilinos/src/Trilinos-trilinos-release-13-2-0/build/packages/seacas/libraries/exodus -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -O3 -DNDEBUG -fPIC -std=gnu99 -MD -MT packages/seacas/libraries/exodus/CMakeFiles/exodus.dir/src/ex_update.c.o -MF CMakeFiles/exodus.dir/src/ex_update.c.o.d -o CMakeFiles/exodus.dir/src/ex_update.c.o -c /build/trilinos/src/Trilinos-trilinos-release-13-2-0/packages/seacas/libraries/exodus/src/ex_update.c
[ 25%] Building C object packages/seacas/libraries/exodus/CMakeFiles/exodus.dir/src/ex_utils.c.o
cd /build/trilinos/src/Trilinos-trilinos-release-13-2-0/build/packages/seacas/libraries/exodus && /usr/bin/mpicc -Dexodus_EXPORTS -I/build/trilinos/src/Trilinos-trilinos-release-13-2-0/build -I/build/trilinos/src/Trilinos-trilinos-release-13-2-0/packages/seacas/libraries/exodus/include -I/build/trilinos/src/Trilinos-trilinos-release-13-2-0/build/packages/seacas/libraries/exodus -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -O3 -DNDEBUG -fPIC -std=gnu99 -MD -MT packages/seacas/libraries/exodus/CMakeFiles/exodus.dir/src/ex_utils.c.o -MF CMakeFiles/exodus.dir/src/ex_utils.c.o.d -o CMakeFiles/exodus.dir/src/ex_utils.c.o -c /build/trilinos/src/Trilinos-trilinos-release-13-2-0/packages/seacas/libraries/exodus/src/ex_utils.c
In file included from /build/trilinos/src/Trilinos-trilinos-release-13-2-0/packages/seacas/libraries/exodus/include/exodusII.h:20,
                 from /build/trilinos/src/Trilinos-trilinos-release-13-2-0/packages/seacas/libraries/exodus/src/ex_utils.c:20:
/build/trilinos/src/Trilinos-trilinos-release-13-2-0/packages/seacas/libraries/exodus/src/ex_utils.c: In function ‘ex__compress_variable’:
/build/trilinos/src/Trilinos-trilinos-release-13-2-0/packages/seacas/libraries/exodus/src/ex_utils.c:1739:19: error: expected identifier or ‘(’ before numeric constant
 1739 |         const int NC_SZIP_NN = 32;      /* Selects nearest neighbor coding method for szip. */
      |                   ^~~~~~~~~~
make[2]: *** [packages/seacas/libraries/exodus/CMakeFiles/exodus.dir/build.make:2526: packages/seacas/libraries/exodus/CMakeFiles/exodus.dir/src/ex_utils.c.o] Error 1
make[2]: Leaving directory '/build/trilinos/src/Trilinos-trilinos-release-13-2-0/build'
make[1]: *** [CMakeFiles/Makefile2:11323: packages/seacas/libraries/exodus/CMakeFiles/exodus.dir/all] Error 2
make[1]: Leaving directory '/build/trilinos/src/Trilinos-trilinos-release-13-2-0/build'
make: *** [Makefile:166: all] Error 2
==> ERROR: A failure occurred in build().

Full build log:

mane.andrea commented on 2021-12-02 01:45 (UTC)

Hi, I have a small request: I made an AUR package called trilinos-sacado which only compiles sacado because I needed it for something else (I mostly took inspiration from yours).

Could you perhaps add a provides=('trilinos-sacado') to your PKGBUILD? Many thanks in advance!

gpettinello commented on 2021-11-07 07:35 (UTC) (edited on 2021-11-07 07:35 (UTC) by gpettinello)

Hello Martin, Trilinos is now at version 13.2.0 I just updated the PKGBUILD

# Maintainer: Martin Diehl <>
# Contributor: Gianluca Pettinello <>
# Contributor: Alad Wenter <>
# Contributor: Jingbei Li <>
# Contributor: Simon Pintarelli <>
# Contributor: Feng Wang <>
pkgdesc="algorithms for the solution of large-scale scientific problems"
depends=('python' 'lapack' 'boost' 'netcdf' 'libmatio' 'libx11' 'hdf5-openmpi')
makedepends=('gcc-fortran' 'perl' 'blas' 'cmake' 'bc' 'python-numpy')

prepare() {
  patch -d  Trilinos-trilinos-release-"$_pkgver" -p1 -i ../python-mpi-version.patch

build() {
    cd Trilinos-trilinos-release-"$_pkgver"
    mkdir -p build
    cd build

             -DTrilinos_ENABLE_ALL_PACKAGES:BOOL=ON \
             -DTrilinos_ENABLE_PyTrilinos:BOOL=OFF \
             -DTrilinos_ENABLE_Gtest:BOOL=OFF \
             -DTrilinos_ENABLE_TESTS=OFF \
             -DTPL_ENABLE_gtest:BOOL=OFF \
             -DTPL_ENABLE_MPI:BOOL=ON \
             -DTPL_ENABLE_HDF5:BOOL=ON \
             -DCMAKE_INSTALL_PREFIX:PATH=/usr \
    make VERBOSE=1

check() {
    cd Trilinos-trilinos-release-"$_pkgver"/build

package() {
    cd Trilinos-trilinos-release-"$_pkgver"/build
    make DESTDIR="$pkgdir" install

Please could you update? Thanks Regards Gianluca

lahwaacz commented on 2020-12-20 22:04 (UTC) (edited on 2020-12-21 10:15 (UTC) by lahwaacz)

python-numpy and swig should be added to dependencies, the package does not build otherwise.

But even when I added the packages, the build failed in the end:

[ 99%] Generating Teuchos.RCP.i
cd /build/trilinos/src/Trilinos-trilinos-release-13-0-1/build/packages/PyTrilinos/src && /usr/bin/python /build/trilinos/src/Trilinos-trilinos-release-13-0-1/build/packages/PyTrilinos/src/ > /build/trilinos/src/Trilinos-trilinos-release-13-0-1/build/packages/PyTrilinos/src/Teuchos.RCP.i
Traceback (most recent call last):
  File "/build/trilinos/src/Trilinos-trilinos-release-13-0-1/build/packages/PyTrilinos/src/", line 659, in <module>
  File "/build/trilinos/src/Trilinos-trilinos-release-13-0-1/build/packages/PyTrilinos/src/", line 557, in main
    print("#define MPI_VERSION %s" % get_mpi_version())
  File "/build/trilinos/src/Trilinos-trilinos-release-13-0-1/build/packages/PyTrilinos/src/", line 58, in get_mpi_version
    for line in open(header, 'r').readlines():
FileNotFoundError: [Errno 2] No such file or directory: '/include/mpi.h'

Edit: this patch fixed the build for me:

diff --unified --recursive --text --color Trilinos-trilinos-release-13-0-1.old/packages/PyTrilinos/src/
--- Trilinos-trilinos-release-13-0-1.old/packages/PyTrilinos/src/  2020-11-14 01:13:13.000000000 +0100
+++  2020-12-21 09:48:13.021304841 +0100
@@ -53,7 +53,7 @@

 def get_mpi_version():
-    header = "${MPI_BASE_DIR}/include/mpi.h"
+    header = os.path.join(MPI_BASE_DIR, "include/mpi.h")
     version = ""
     for line in open(header, 'r').readlines():
         if "MPI_VERSION" in line:

Bollos00 commented on 2020-12-02 01:15 (UTC) (edited on 2020-12-02 02:09 (UTC) by Bollos00)

Good morning/afternoon/night,

trilinos can be updated to version 13.0.1

I have uptated the PKGBUILD file to apply those changes.

EDIT: not everything is working.

So, the line 25 should be changed:

    cd Trilinos-trilinos-release-12-18-1


    cd Trilinos-trilinos-release-"$_pkgver"

The new sha256sums:


But it is failing on prepare(), in one of those lines:

    patch --forward --strip=1 --input="${srcdir}/Makefile.kokkos.patch"
    patch --forward --strip=1 --input="${srcdir}/Seacas.patch"

If i comment those it seems to work.

pepijndevos commented on 2020-11-17 21:27 (UTC)

Would it be possible to extend the options for this package for use with Xyce?