[llvm-dev] DynamicLibraryTest fails with musl libc

Marvin Schmidt via llvm-dev llvm-dev at lists.llvm.org
Sat May 2 02:19:14 PDT 2020


Hi all,

on Exherbo (we have downstream patches to adjust some paths to our
directory structures, not sure if that's relevant here though) I'm
seeing the
following test failure on a x86_64-pc-linux-musl system (tests pass
fine on a system glibc system):

 [==========] Running 1 test from 1 test case.
 [----------] Global test environment set-up.
 [----------] 1 test from DynamicLibrary
 [ RUN      ] DynamicLibrary.Shutdown
 /var/tmp/paludis/build/dev-lang-llvm-10.0.0/work/llvm-project/llvm/unittests/Support/DynamicLibrary/DynamicLibraryTest.cpp:156:
Failure
       Expected: A
       Which is: "PipSqueak"
 To be equal to: "Global::~Global"
 /var/tmp/paludis/build/dev-lang-llvm-10.0.0/work/llvm-project/llvm/unittests/Support/DynamicLibrary/DynamicLibraryTest.cpp:157:
Failure
       Expected: B
       Which is: "Local::Local(SecondLib)"
 To be equal to: "Local::~Local"
 /var/tmp/paludis/build/dev-lang-llvm-10.0.0/work/llvm-project/llvm/unittests/Support/DynamicLibrary/DynamicLibraryTest.cpp:162:
Failure
       Expected: Order.size()
       Which is: 0
 To be equal to: 2UL
       Which is: 2
 ********************
 Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
 Testing Time: 440.11s
 ********************
 Failing Tests (1):
     LLVM-Unit ::
Support/DynamicLibrary/./DynamicLibraryTests/DynamicLibrary.Shutdown
   Expected Passes    : 33833
   Expected Failures  : 140
   Unsupported Tests  : 1307
   Unexpected Failures: 1


I see that Alpine Linux has a patch[1] that disables the
DynamicLibrary test because `dlclose` is a noop according to the
commit message. Is that test
supposed to work on musl systems? If so, any clues why it would fail
in my configuration? I'd appreciate any input on this and be happy to
dig deeper and
provide more information if necessary

Best regards,
Marvin

[1] https://git.alpinelinux.org/aports/tree/main/llvm10/0001-Disable-dynamic-lib-tests-for-musl-s-dlclose-is-noop.patch


More information about the llvm-dev mailing list