[PATCH v3 19/19] configure: Allow clang 18 or above
Adhemerval Zanella Netto
adhemerval.zanella@linaro.org
Mon Nov 10 13:23:01 GMT 2025
On 03/11/25 15:17, Carlos O'Donell wrote:
> On 10/31/25 4:00 PM, Adhemerval Zanella wrote:
>> The clang support is still experimental and not all testcase build
>> or run correctly. Only clang 18 and onwards is supported and only
>> for x86_64-linux-gnu and aarch64-linux-gnu.
>> ---
>> NEWS | 5 +++++
>> configure | 2 +-
>> configure.ac | 2 +-
>> 3 files changed, 7 insertions(+), 2 deletions(-)
>>
>> diff --git a/NEWS b/NEWS
>> index 4b1f259fde6..895292855ea 100644
>> --- a/NEWS
>> +++ b/NEWS
>> @@ -13,6 +13,11 @@ Major new features:
>> * The ISO C23 memalignment function has been added.
>> +* Initial support for building with clang has been added. It requires
>> + at least clang version 18, aarch64-linux-gnu or x86_64-linux-gnu
>> + targets, and libgcc compatible runtime (including libgcc_s.so for
>> + pthread cancellation and backtrace runtime support).
>> +
>
> Curiously, we have a pre-commit CI failure here.
>
> https://patchwork.sourceware.org/project/glibc/patch/20251031200300.3716090-20-adhemerval.zanella@linaro.org/
>
> I don't know why the test fails?
>
> ../sysdeps/unix/sysv/linux/tst-getdents64.c:144: numeric comparison failure
> left: 0 (0x0); from: entry.d_type
> right: 8 (0x8); from: refentry->d_type
> ../sysdeps/unix/sysv/linux/tst-getdents64.c:144: numeric comparison failure
> left: 0 (0x0); from: entry.d_type
> right: 8 (0x8); from: refentry->d_type
> error: 2 test failures
>
> It hasn't failed in other pre-commit CI instances.
>
This seems an unrelated issue, since the code does not touch anything related
to Linux getdents syscall. I think it might be something from the CI bot
environment.
More information about the Libc-alpha
mailing list