On Mon, Sep 22, 2014 at 2:56 PM, Serge Van Criekingen
<[email protected]> wrote:
> Having Scotch installed fixes the config problem.
> However, using dorsal, adding 'scotch' to the packages list did not end up
> having SCOTCH in the "optional packages found" list, even though it fixed
> the config problem (the full dorsal output is attached, as well as the
> dorsal input, i.e. the modified "opensuse11.3.platform" file):

Try cleaning out the cmake build cache for DOLFIN. When using Dorsal,
you can do this by removing the dorsal_build_dir in the DOLFIN source
directory. If that doesn't help, try adding  -DSCOTCH_DEBUG:BOOL=TRUE
when configuring DOLFIN. That should give you more information about
why it fails to find SCOTCH.

> ---------
> -- The following optional packages were not found:
> -- -----------------------------------------------
> -- (**) MPI
> -- (**) PETSC
> -- (**) PETSC4PY
> -- (**) SLEPC
> -- (**) TRILINOS
> -- (**) UMFPACK
> -- (**) CHOLMOD
> -- (**) PASTIX
> -- (**) SCOTCH
> -- (**) PARMETIS
> -- (**) CGAL
> -- (**) HDF5
> --
> -- Found Qt4: /usr/bin/qmake (found version "4.6.3")
> -- Enabling generation of documentation.
> -- Initializing sphinx projects
> -- Enabling generation of html-documentation
> -- Configuring done
> -- Generating done
> --------
>
> So I went on to the build process. There, I encounter a "recompile with
> -fPIC" problem (see again in attachment for the full output):
>
> -------
> [ 96%] Built target dolfin
> make[2]: Entering directory
> `/home/zatopek/Fenics/MyInstall/Downloads/dolfin-1.4.0/dorsal_build_dir'
> make[2]: Leaving directory
> `/home/zatopek/Fenics/MyInstall/Downloads/dolfin-1.4.0/dorsal_build_dir'
> make[2]: Entering directory
> `/home/zatopek/Fenics/MyInstall/Downloads/dolfin-1.4.0/dorsal_build_dir'
> make[2]: Leaving directory
> `/home/zatopek/Fenics/MyInstall/Downloads/dolfin-1.4.0/dorsal_build_dir'
> [ 96%] Built target copy_swig_files
> make[2]: Entering directory
> `/home/zatopek/Fenics/MyInstall/Downloads/dolfin-1.4.0/dorsal_build_dir'
> make[2]: Leaving directory
> `/home/zatopek/Fenics/MyInstall/Downloads/dolfin-1.4.0/dorsal_build_dir'
> make[2]: Entering directory
> `/home/zatopek/Fenics/MyInstall/Downloads/dolfin-1.4.0/dorsal_build_dir'
> Linking CXX shared module _mesh.so
> /usr/bin/ld: /usr/local/lib/libpython2.7.a(abstract.o): relocation
> R_X86_64_32S against `_Py_NotImplementedStruct' can not be used when making
> a shared object; recompile with -fPIC
> /usr/local/lib/libpython2.7.a: could not read symbols: Bad value
> collect2: error: ld returned 1 exit status
> make[2]: *** [dolfin/swig/modules/mesh/_mesh.so] Error 1
> make[2]: Leaving directory
> `/home/zatopek/Fenics/MyInstall/Downloads/dolfin-1.4.0/dorsal_build_dir'
> make[1]: *** [dolfin/swig/modules/mesh/CMakeFiles/_mesh.dir/all] Error 2
> make[1]: Leaving directory
> `/home/zatopek/Fenics/MyInstall/Downloads/dolfin-1.4.0/dorsal_build_dir'
> make: *** [all] Error 2
> make: Leaving directory
> `/home/zatopek/Fenics/MyInstall/Downloads/dolfin-1.4.0/dorsal_build_dir'
> Failure with exit status:
> Exit message: There was a problem building dolfin-1.4.0.
> --------
>
> I added the "-fPIC" option in several environment variables (see below), but
> can't get over this problem.
> Could you please help me with this too?

It is not DOLFIN that needs to be recompiled with -fPIC, it is Python.
Either do that or recompile Python with shared libraries.

Johannes
_______________________________________________
fenics-support mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics-support

Reply via email to