Skip to content

Defect: caf script fails to fall back to dynamic libcaf if the static lib is missing #672

@LaHaine

Description

@LaHaine

The title of the issue should start with Defect: followed by a
succinct title.

Please make sure to put any logs, terminal output, or code in
fenced code blocks. Please also read the contributing guidelines
before submitting a new issue.

Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information.

  • I am reporting a bug others will be able to reproduce and not asking a question or requesting a new feature.

System information including:

  • OpenCoarrays Version: 2.6.3
  • Fortran Compiler: 8.3.0
  • C compiler used for building lib: 8.3.0
  • Installation method: rpm package from OpenHPC
  • All flags & options passed to the installer
  • Output of uname -a: Linux obst25.something 3.10.0-957.12.2.el7.x86_64 tests dis_transpose: test passed  #1 SMP Tue May 14 15:23:27 CDT 2019 x86_64 x86_64 x86_64 GNU/Linux
  • MPI library being used: openmpi 3.1.3
  • Machine architecture and number of physical cores: x86_64 8
  • Version of CMake:

To help us debug your issue please explain:

The fix from issue #575 doesn't help as OpenHPC removes the static lib and installs to /opt/ohpc/pub/libs/gnu8/openmpi3/opencoarrays/2.6.3/

What you were trying to do (and why)

caf --version

What happened (include command output, screenshots, logs, etc.)

caf --version
Failed to find static library /opt/ohpc/pub/libs/gnu8/openmpi3/opencoarrays/2.6.3/lib64/libcaf_mpi.a or shared library alternatives.

Output of bash -x caf --version:

++ substitute_lib /opt/ohpc/pub/libs/gnu8/openmpi3/opencoarrays/2.6.3/lib64/libcaf_mpi.a
++ [[ -f /opt/ohpc/pub/libs/gnu8/openmpi3/opencoarrays/2.6.3/lib64/libcaf_mpi.a ]]
++ case "${1##*.}" in
++ for suff in so dylib dll
++ [[ -f /opt/ohpc/pub/libs/gnu8/openmpi3/opencoarrays/2.so ]]
++ for suff in so dylib dll
++ [[ -f /opt/ohpc/pub/libs/gnu8/openmpi3/opencoarrays/2.dylib ]]
++ for suff in so dylib dll
++ [[ -f /opt/ohpc/pub/libs/gnu8/openmpi3/opencoarrays/2.dll ]]
++ echo 'Failed to find static library /opt/ohpc/pub/libs/gnu8/openmpi3/opencoarrays/2.6.3/lib64/libcaf_mpi.a or shared library alternatives.'

What you expected to happen

output of 2.6.3

Step-by-step reproduction instructions to reproduce the error/bug

  • Install opencoarrays to a path that contains one or several dots.
  • remove libcaf_mpi.a
  • run caf --version

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions