# cmake 3.31.3 and failing Stub-fail test on linux musl

**URL:** https://discourse.cmake.org/t/cmake-3-31-3-and-failing-stub-fail-test-on-linux-musl/13292
**Category:** Development
**Created:** [December 30, 2024, 9:08pm UTC](https://discourse.cmake.org/t/cmake-3-31-3-and-failing-stub-fail-test-on-linux-musl/13292 "2024-12-30T21:08:43Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![bvdeenen](https://discourse.cmake.org/user_avatar/discourse.cmake.org/bvdeenen/32/5238_2.png) [@bvdeenen](https://discourse.cmake.org/u/bvdeenen)
#### Post date: [December 30, 2024, 9:08pm UTC](https://discourse.cmake.org/t/cmake-3-31-3-and-failing-stub-fail-test-on-linux-musl/13292/1 "2024-12-30T21:08:43Z")

</div>

Hi all

I’m using Void Linux, which also supports the musl C library. I just updated the cmake version in the void package definition to 3.31.3. All the glibc tests work fine on glibc and arm, but musl x86 triggers one test failure on github actions:

The error is a mismatch in a `stderr` result:

```auto

Expected stderr to match:

expect-stderr> (error while loading shared libraries: libStub\.so\.1|Library not loaded: '?@rpath/libStub\.1\.dylib'?|(Cannot|Could not) load module libStub\.a\(libStub\.so\.1\)|fatal: libStub\.so\.1: open failed|Shared object "libStub\.so\.1" not found)

Actual stderr:

actual-stderr> Error loading shared library libStub.so.1: No such file or directory (needed by /builddir/cmake-3.31.3/build/Tests/RunCMake/RuntimePath/Stub-build/libStubUse.so)

actual-stderr> Error relocating /builddir/cmake-3.31.3/build/Tests/RunCMake/RuntimePath/Stub-build/libStubUse.so: Stub: symbol not found

```

I think I’ve found a regex pattern in `Tests/RunCMake/RuntimePath/Stub-fail-stderr.txt`. Should the actual `stderr` result just be added to this pattern?

Greetings

Bart

---

<div class="post-metadata">

### Author: ![craig.scott](https://discourse.cmake.org/user_avatar/discourse.cmake.org/craig.scott/32/20_2.png) [@craig.scott](https://discourse.cmake.org/u/craig.scott)
#### Post date: [December 30, 2024, 9:30pm UTC](https://discourse.cmake.org/t/cmake-3-31-3-and-failing-stub-fail-test-on-linux-musl/13292/2 "2024-12-30T21:30:38Z")

</div>

Could you please open a bug report in our issue tracker? This looks like something that will need to be fixed in the CMake test’s expected output.

[https://gitlab.kitware.com/cmake/cmake/-/issues/new](https://gitlab.kitware.com/cmake/cmake/-/issues/new)

---

<div class="post-metadata">

### Author: ![bvdeenen](https://discourse.cmake.org/user_avatar/discourse.cmake.org/bvdeenen/32/5238_2.png) [@bvdeenen](https://discourse.cmake.org/u/bvdeenen)
#### Post date: [December 31, 2024, 10:27am UTC](https://discourse.cmake.org/t/cmake-3-31-3-and-failing-stub-fail-test-on-linux-musl/13292/3 "2024-12-31T10:27:37Z")

</div>

Issue created: [issue 26565](https://gitlab.kitware.com/cmake/cmake/-/issues/26565)
