Dear kwant user,

I am trying to build kwant and its dependencies from sources.
A first build without Mumps succeeded. When adding Mumps however, the linker returns the following error:

/usr/bin/ld: /opt/mumps-5.4.1/lib/libzmumps.a(ztools.o): relocation R_X86_64_PC32 against symbol `.gomp_critical_user_critical_old_ooc' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value

Here is the content of the build.conf

[mumps]
include_dirs = /opt/mumps-5.4.1/include /opt/scotch-7.0/include
library_dirs = /opt/mumps-5.4.1/lib /opt/mumps-5.4.1/libseq /opt/scotch-7.0/lib libraries = zmumps mumps_common pord esmumps scotch scotcherr mpiseq gfortran

Would adding -fPIC flag as suggested by the error message solve the issue ? If so, how can this flag be added with the python build setup ?

Best,

Etienne F

Reply via email to