-----Ursprüngliche Nachricht----- Von: firedrake-bounces@imperial.ac.uk [mailto:firedrake- bounces@imperial.ac.uk] Im Auftrag von Buesing, Henrik Gesendet: 17 September 2015 12:29 An: firedrake@imperial.ac.uk Betreff: Re: [firedrake] undefined symbol: kspfgmresmodifypcksp_
-----Ursprüngliche Nachricht----- Von: firedrake-bounces@imperial.ac.uk [mailto:firedrake- bounces@imperial.ac.uk] Im Auftrag von Buesing, Henrik Gesendet: 17 September 2015 11:43 An: firedrake@imperial.ac.uk Betreff: Re: [firedrake] undefined symbol: kspfgmresmodifypcksp_
-----Ursprüngliche Nachricht----- Von: firedrake-bounces@imperial.ac.uk [mailto:firedrake- bounces@imperial.ac.uk] Im Auftrag von Buesing, Henrik Gesendet: 17 September 2015 10:53 An: firedrake@imperial.ac.uk Betreff: Re: [firedrake] undefined symbol: kspfgmresmodifypcksp_
@Lawrence: I will go through your tests. At the moment I try to use my own petsc version (and not the pip installed one) for petsc4py. This crashed because I did not have "--download-ctetgen --download-triangle - -download-chaco". I'm doing a petsc ./configure atm. I will see how that goes.
[Buesing, Henrik] This gave at least different errors (see the attached pyop2 test). I get "Import errors" No module named sparsity cannot import name plan No module named computeind
[Buesing, Henrik] There are shared object files
computeind.so plan.so sparsity.so
in the pyop2 directory
build/lib.linux-x86_64-2.7/pyop2
Maybe he does not find these files somehow?
[Buesing, Henrik] I have added the above directory to the PYTHONPATH. He now does not complain about sparsity anymore. I get a Intel MKL FATAL ERROR: Cannot load libmkl_mc3.so or libmkl_def.so. Well, I guess that has to do with Petsc and its blas-lapack-dir. I will try to reconfigure with --download-fblaslapack and not set the directory.
I will then kill this version install petsc with pip again and do your tests. Will take a while due to all the PETSc configuring.
[Buesing, Henrik] For the tests see below.
Just for sanity checking, I presume you used the provided "firedrake- install" script to install firedrake?
[Buesing, Henrik] No, I'm using the step-by-step instructions.
I think the problem has already started when installing PETSc (and/or petsc4py). Let's try and figure out what's gone wrong. Can you first try building and running the attached PETSc C
program.
You'll need to do:
PETSC_DIR=/home/user/.local/lib/python2.7/site-packages/petsc/ make testksp
[Buesing, Henrik] This already fails with /home/hb111949/.local/lib/python2.7/site- packages/petsc/lib/libpetsc.so: undefined reference to `kspfgmresmodifypcnochange_' /home/hb111949/.local/lib/python2.7/site- packages/petsc/lib/libpetsc.so: undefined reference to `tsmonitordefault_' /home/hb111949/.local/lib/python2.7/site- packages/petsc/lib/libpetsc.so: undefined reference to `kspfgmresmodifypcksp_'
If that doesn't work, we know the problem has already appeared and need to figure out what went wrong when installing PETSc.
If it does work let's then see if petsc4py works:
[Buesing, Henrik] It's only working with my own petsc version.
$ python -c "from petsc4py import PETSc; print PETSc.__file__"
[Buesing, Henrik] ...yields
for pip petsc ImportError: /home/hb111949/.local/lib/python2.7/site- packages/petsc/lib/libpetsc.so.3.06: undefined symbol: kspfgmresmodifypcksp_
for own petsc /home/hb111949/.local/lib/python2.7/site-packages/petsc4py/lib/arch- linux2-c-opt/PETSc.so
_______________________________________________ firedrake mailing list firedrake@imperial.ac.uk https://mailman.ic.ac.uk/mailman/listinfo/firedrake