[PATCH] elf/tests: Make thrlock and noload depend on libm

Florian Weimer fweimer@redhat.com
Thu Jul 8 05:46:53 GMT 2021


* Siddhesh Poyarekar:

> On 7/7/21 10:36 PM, Florian Weimer via Libc-alpha wrote:
>> * Siddhesh Poyarekar via Libc-alpha:
>> 
>>> Both tests try to dlopen libm.so at runtime, so make them depend on it
>>> to avoid running before libm.so is built.
>> Can that really happen in the current build system?
>
> I don't the exact sequence of events, but I did run into this a few
> minutes ago, which is how I realized there was a missing dependency. 
> The tests failed with "file too short", which was probably them racing
> with the static linker linking libm.so.

Hmm.  I would expect that recursive make running in elf subdirectory
simply does not have the knowledge how to link libm properly.  And it
will definitely not do that while running tests.

Thanks,
Florian



More information about the Libc-alpha mailing list