Incorrect path for link libraries from PETSc

Bug #694507 reported by Garth Wells
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DOLFIN
Fix Released
Medium
Johannes Ring

Bug Description

The correct path is not being added for some link libraries provided by PETSc (specifically, those provided by PCC_LINKER_LIBS).

I see this when building PETSc and DOLFIN using a locally installed OpenMPI. The consequence is that during configuration I get
messages like

 Cannot generate a safe runtime search path for target
  dg-advection-diffusion-demo because files in some directories may conflict
  with libraries in implicit directories:

    runtime library [libmpi_f90.so.0] in /usr/lib may be hidden by files in:
      /home/gnw20/local/lib

Changed in dolfin:
status: New → Confirmed
importance: Undecided → Medium
Changed in dolfin:
milestone: none → 0.9.11
assignee: nobody → Johannes Ring (johannr)
Revision history for this message
Johannes Ring (johannr) wrote :

I have tried to reproduce this, but without success. What I did was to let Dorsal build OpenMPI, PETSc, and DOLFIN using the attached platform file. I did see some similar warnings like

  CMake Warning at demo/la/eigenvalue/cpp/CMakeLists.txt:31 (add_executable):
    Cannot generate a safe linker search path for target demo_eigenvalue
    because files in some directories may conflict with libraries in implicit
    directories:

      link library [libumfpack.so] in /usr/lib may be hidden by files in:
        /work/johannr/dorsal/Work/FEniCS/lib
      link library [libamd.so] in /usr/lib may be hidden by files in:
        /work/johannr/dorsal/Work/FEniCS/lib

    Some of these libraries may not be found correctly.

but nothing related to OpenMPI and PETSc.

Anyway, these are just CMake warnings and, unless you see some strange behavior, can safely be ignored.

Revision history for this message
Garth Wells (garth-wells) wrote :

The issue is that the libs that PETSc supplied 3rd party libs do not use the full path.

I may have partially 'fixed' this a while back by not using as many of the PETSc supplied libs when linking.

Revision history for this message
Johannes Ring (johannr) wrote :

The attached patch reduces the number of 3rd party libs for both PETSc and SLEPc to a minimum. This is close to what we had in the SCons based build system. I have tested the patch with several different configurations and will apply it unless someone has any objections.

Johannes Ring (johannr)
Changed in dolfin:
status: Confirmed → Fix Committed
Changed in dolfin:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.