Skip to content

Hash test fails when stdlib is a shared library #641

Closed
@awvwgk

Description

@awvwgk
❯ cmake -B _build_gcc11 -G Ninja -DBUILD_SHARED_LIBS=ON
-- The Fortran compiler identification is GNU 11.2.0
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Check for working Fortran compiler: /usr/bin/f95 - skipped
-- Performing Test WITH_QP
-- Performing Test WITH_QP - Success
-- Performing Test WITH_XDP
-- Performing Test WITH_XDP - Success
-- Performing Test f18errorstop
-- Performing Test f18errorstop - Failed
-- Performing Test f03rank
-- Performing Test f03rank - Success
-- Performing Test f03real128
-- Performing Test f03real128 - Success
-- test-drive: Find installed package
-- Retrieving test-drive from https://github.com/fortran-lang/test-drive
-- Setting build type to 'RelWithDebInfo' as none was specified.
-- The CXX compiler identification is GNU 11.2.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The C compiler identification is GNU 11.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/awvwgk/projects/src/git/stdlib/_build_gcc11
❯ ninja -C _build_gcc11/
...
❯ ctest --test-dir _build_gcc11  --output-on-failure
...
      Start 10: hash_functions
10/55 Test #10: hash_functions ...................***Failed    0.00 sec
$SRC_DIR/_build/src/tests/hash_functions/test_hash_functions: error while loading shared libraries: libfortran_stdlib.so: cannot open shared object file: No such file or directory

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingbuild: cmakeIssue with stdlib's CMake build files

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions