Package Details: slepc 3.7.3-2

Git Clone URL: (read-only)
Package Base: slepc
Description: Scalable library for Eigenvalue problem computations
Upstream URL:
Licenses: GNUv3
Submitter: myles
Maintainer: abilke
Last Packager: abilke
Votes: 9
Popularity: 0.042537
First Submitted: 2010-05-21 02:04
Last Updated: 2016-10-28 12:37

Latest Comments

heitzmann commented on 2016-10-28 10:59

slepcconf.h references the build dir.
This should fix it:

sed -i 's#'"${_build_dir}"'#'"${_install_dir}"'#g' "${pkgdir}${_install_dir}/include/slepcconf.h"

This reference seems to come from the definition in line 44 of the PKGBUILD (export SLEPC_DIR=${_build_dir}), so changing that might also fix the definition in the include file.

abilke commented on 2016-07-05 12:45

See for a patch to update to 3.7.1

myles commented on 2015-10-03 20:33

Thanks ftschindler, I've made those changes

ftschindler commented on 2015-09-29 07:58

Building dolfin fails due to a broken `slepc_rules` (reference to build dir). The following lines help (the first was already reported below but not implemented):
sed -i 's#'"${pkgdir}"'##g' "${pkgdir}${_install_dir}/lib/slepc/conf/slepc_rules"
sed -i 's#'"${pkgdir}"'##g' "${pkgdir}${_install_dir}/include/slepcconf.h"
In addition, there are some logs containing references to the build dir. Those should also be removed:
for ii in lib/slepc/conf/configure.log \
[ -e "${pkgdir}${_install_dir}/${ii}" ] && rm "${pkgdir}${_install_dir}/${ii}"

heitzmann commented on 2014-09-19 15:46

You should probably update your PETSc. AUR version is already 3.5.1.

Here's the sed's I've included in my PKGBUILD (line 49) to remove most references to the build directory:
sed -i 's#'"${pkgdir}"'##g' "${pkgdir}${_install_dir}/conf/slepc_rules"
sed -i 's#'"${pkgdir}"'##g' "${pkgdir}${_install_dir}/conf/slepc_variables"
sed -i 's#'"${pkgdir}"'##g' "${pkgdir}${_install_dir}/conf/slepcvariables"
sed -i 's#'"${pkgdir}"'##g' "${pkgdir}${_install_dir}/conf/"
sed -i 's#'"${pkgdir}"'##g' "${pkgdir}${_install_dir}/lib/pkgconfig/SLEPc.pc"
sed -i 's#'"${pkgdir}"'##g' "${pkgdir}${_install_dir}/lib/modules/3.5.0"

I'm not sure the one with is required (or even correct).

heitzmann commented on 2014-09-19 15:33

You should probably update your PETSc. AUR version is already 3.5.1.

Here's the 4 sed's I've included in my PKGBUILD (line 49) to remove the references to the build directory:
sed -i 's#'"${pkgdir}"'##g' "${pkgdir}${_install_dir}/conf/slepc_rules"
sed -i 's#'"${pkgdir}"'##g' "${pkgdir}${_install_dir}/conf/slepc_variables"
sed -i 's#'"${pkgdir}"'##g' "${pkgdir}${_install_dir}/conf/slepcvariables"
sed -i 's#'"${pkgdir}"'##g' "${pkgdir}${_install_dir}/conf/"

I'm not sure the last one is required (or even correct).

jancici commented on 2014-09-12 08:30

I am installing dolphin, and getting this error about compatible with PETSc version 3.4.

thank for help

here is output:

==> slepc dependencies:
- python2 (already installed)
- gcc (already installed)
- gcc-fortran (already installed)
- petsc (already installed)

==> Edit slepc.install ? [Y/n] ("A" to abort)
==> -----------------------------------------
==> n

==> Continue building slepc ? [Y/n]
==> -------------------------------
==> Building and installing package
==> Making package: slepc 3.5.0-1 (Pi sep 12 10:26:20 CEST 2014)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading slepc-3.5.0.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3121k 100 3121k 0 0 576k 0 0:00:05 0:00:05 --:--:-- 741k
==> Validating source files with md5sums...
slepc-3.5.0.tar.gz ... Passed
==> Extracting sources...
-> Extracting slepc-3.5.0.tar.gz with bsdtar
==> Starting build()...
Checking environment...
ERROR: This SLEPc version is not compatible with PETSc version 3.4
==> ERROR: A failure occurred in build().
==> ERROR: Makepkg was unable to build slepc.
==> Restart building slepc ? [y/N]
==> ------------------------------

heitzmann commented on 2014-09-10 15:50

Correcting my last comment: slepc_variables, not slepc_conf.

heitzmann commented on 2014-09-10 15:49

The installed package keep a few references pointing at the build directory. I believe the PKGBUILD should include 'sed's to remove those, similarly to what happens for petsc.

I found those references in these files in /opt/slepc/arch-linux2-cxx-opt/conf:
- slepc_conf
- slepc_rules
- slepcvariables

There could be more.

myles commented on 2013-08-11 17:22

Now installs to /opt/slepc.

gdolle commented on 2013-08-10 15:32

Hi, if you could change the default install dir "/usr/slepc/" to "/opt/slepc", it would be nice. (Or maybe there's a reason ?)

myles commented on 2012-05-03 18:30

@kkb110: Apparently it isn't necessary anymore, thanks for pointing that out.

kkimdev commented on 2012-05-03 07:32


Is that still true? On my machine, "sudo makepkg -s --asroot" just hung after "Checking PETSc installation...". So I removed the root checking code from PKGBUILD and compiled but it didn't show any error message.

kkimdev commented on 2012-05-03 07:22

kkimdev commented on 2012-05-03 04:13

update: This patch is pushed to trunk so it will work with "suitesparse" in the future.

diff --git a/config/packages/ b/config/packages/
--- a/config/packages/
+++ b/config/packages/
@@ -9,8 +9,9 @@
def __init__(self, framework):
config.package.Package.__init__(self, framework) = ['']
- self.liblist = [['libumfpack.a','libamd.a']]
- self.functions = ['umfpack_di_report_info']
+ self.liblist = [['libumfpack.a','libamd.a'],
+ ['libumfpack.a','libcholmod.a','libcamd.a','libccolamd.a','libcolamd.a','libamd.a']]
+ self.functions = ['umfpack_di_report_info','umfpack_dl_symbolic','umfpack_dl_numeric','umfpack_dl_wsolve']
self.includes = ['umfpack.h']
self.complex = 1

kkimdev commented on 2012-05-02 23:10

Build problem:

If I do sudo makepkg -s --asroot, it just hangs at

Checking environment...
Checking PETSc installation...
(no response from now on)

If I execute ./configure directly,

$ cd src/slepc-3.2-p5/
$ ./configure
Checking environment...
Checking PETSc installation...
ERROR: Unable to link with PETSc
ERROR: See "arch-installed-petsc/conf/configure.log" file for details

arch-installed-petsc/conf/configure.log says:
Checking PETSc installation...
#include "petscksp.h"
int main() {
return 0;
make: Entering directory `/tmp/slepc-w92i3B'
mpicxx -o checklink.o -c -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -O -fPIC -I/usr/petsc/arch-linux2-cxx-opt/include -I/usr/petsc/arch-linux2-cxx-opt/include -I/usr/include -I/usr/include/include -D__INSDIR__=./ checklink.c
mpicxx -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -O -o checklink checklink.o -Wl,-rpath,/usr/petsc/arch-linux2-cxx-opt/lib -L/usr/petsc/arch-linux2-cxx-opt/lib -lpetsc -lX11 -Wl,-rpath,/usr/lib -L/usr/lib -lml -Wl,-rpath,/usr/petsc/arch-linux2-cxx-opt/lib -lcmumps -ldmumps -lsmumps -lzmumps -lmumps_common -lpord -lparmetis -lmetis -lptesmumps -lptscotch -lptscotcherr -lpthread -lscalapack -lblacs -lHYPRE -Wl,-rpath,/usr/include/lib -L/usr/include/lib -lumfpack -lamd -llapack -lblas -lm -Wl,-rpath,/usr/lib/openmpi -L/usr/lib/openmpi -Wl,-rpath,/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0 -L/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0 -ldl -lmpi -lhwloc -lgcc_s -lpthread -lmpi_f90 -lmpi_f77 -lgfortran -lm -lgfortran -lm -lquadmath -lm -lmpi_cxx -lstdc++ -lrt -lm -lz -lz -ldl -lmpi -lhwloc -lgcc_s -lpthread -ldl
/usr/petsc/arch-linux2-cxx-opt/lib/ undefined reference to `cholmod_finish'
/usr/petsc/arch-linux2-cxx-opt/lib/ undefined reference to `cholmod_free_factor'
/usr/petsc/arch-linux2-cxx-opt/lib/ undefined reference to `cholmod_print_common'
/usr/petsc/arch-linux2-cxx-opt/lib/ undefined reference to `cholmod_free_sparse'
/usr/petsc/arch-linux2-cxx-opt/lib/ undefined reference to `cholmod_analyze'
/usr/petsc/arch-linux2-cxx-opt/lib/ undefined reference to `cholmod_start'
/usr/petsc/arch-linux2-cxx-opt/lib/ undefined reference to `cholmod_transpose'
collect2: error: ld returned 1 exit status
make: *** [checklink] Error 1
make: Leaving directory `/tmp/slepc-w92i3B'
ERROR: Unable to link with PETSc

I figured out the linking option line doesn't have -lcholmod -lcolamd. So I modified ./config/ line 283

before : makefile.write('\t${CLINKER} -o checklink checklink.o ${TESTFLAGS} ${PETSC_KSP_LIB}\n')
after : makefile.write('\t${CLINKER} -o checklink checklink.o ${TESTFLAGS} ${PETSC_KSP_LIB} -lcholmod -lcolamd\n')

Then ./configure was successfully done and I could compile "make SLEPC_DIR=$PWD PETSC_DIR=/usr/petsc/arch-linux2-cxx-opt PETSC_ARCH=arch-installed-petsc". This is not a packing problem, but I wonder if other people have the same issue or not.

myles commented on 2011-04-20 23:25

Slepc modifies an installed petsc lib and so this currently requires root privileges, i.e.:
sudo makepkg -s --asroot