possible but in termio.h

Klaus Dittrich kladit@t-online.de
Wed Jul 2 13:57:30 GMT 2025



Am 01.07.25 um 17:40 schrieb Andrew Pinski:
> On Tue, Jul 1, 2025 at 7:23 AM Klaus Dittrich <kladit@t-online.de> wrote:
>>
>> I installed glibc-2.41.9000-486-g632d895f3e.
>> Afterwards I tried to compile gcc (GCC) 14.3.1 20250627.
>>
>> This failed with this error:
>>
>> /sources/gcc/gcc-14-20250627/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h:592:10:
>> warning: ISO C++ prohibits anonymous structs [-Wpedantic]
>>
>>     592 |   struct {
>>
>>         |          ^
>>
>> /sources/gcc/gcc-14-20250627/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp:483:31:
>>
>> error: invalid application of 'sizeof' to incomplete type
>> '__sanitizer::termio'
>>
>>     483 |   unsigned struct_termio_sz = sizeof(struct termio);
>>
>> With my last installation of glibc: glibc-2.41.9000-462-g69f8b3e7de
>> the  same gcc installed without error.
>>
>> Is this a bug or is anything wrong with my setup?
> 
> No, the fix to libsanitizer has not been backported to GCC 14 or
> before. It is only on the trunk and GCC 15 release branches.
> See https://gcc.gnu.org/cgit/gcc/commit/libsanitizer?h=releases/gcc-15&id=d32ece49d32b00448d967e7dbc6900fb25cbc775
> for the backport to GCC 15.
> 
> This is more of a discussion for GCC now rather than glibc really.
> 
> Thanks,
> Andrew Pinski
> 
>> Any help welcome.
>> Please cc me.
>> --
>> Regards Klaus
>>
>> e-mail: kladit@t-online.de
>>
>>
Thank you, I missed that.
I installed gcc-15 and the newest glibc from git and now all works fine.
-- 
Regards Klaus



More information about the Libc-alpha mailing list