On Sat, Aug 8, 2026, at 11:46 AM, Andrea Pinski wrote:
> On Sat, Aug 8, 2026 at 8:20 AM Pietro Monteiro
> <[email protected]> wrote:
>>
>> Otherwise libatomic build fails with:
>> ../../../gcc/libatomic/fence.c:27:10: fatal error: stdatomic.h: No such file 
>> or directory
>>    27 | #include <stdatomic.h>
>>       |          ^~~~~~~~~~~~~
>> compilation terminated.
>> ../../../gcc/libatomic/flag.c:27:10: fatal error: stdatomic.h: No such file 
>> or directory
>>    27 | #include <stdatomic.h>
>>
>> gcc/ChangeLog:
>>
>>         * config/t-openbsd (USER_H): Add $(srcdir)/ginclude/stdatomic.h.
>
> Do we have an openbsd maintainer?

MAINTAINERS doesn't list one in the "OS Port Maintainers" section.
Building GCC git/releases have been broken on openbsd for at lest 2 years.

>> Signed-off-by: Pietro Monteiro <[email protected]>
>> ---
>>  gcc/config/t-openbsd | 3 ++-
>>  1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/gcc/config/t-openbsd b/gcc/config/t-openbsd
>> index 3b625d62b30..485d8aea368 100644
>> --- a/gcc/config/t-openbsd
>> +++ b/gcc/config/t-openbsd
>> @@ -1,5 +1,6 @@
>>  # We don't need GCC's own include files.
>> -USER_H = $(EXTRA_HEADERS)
>> +USER_H = $(srcdir)/ginclude/stdatomic.h \
>> +       $(EXTRA_HEADERS)
>
> Please update the comment above this.
> Otherwise ok.
>
>>
>>  # OpenBSD-specific D support.
>>  openbsd-d.o: $(srcdir)/config/openbsd-d.cc
>> --
>> 2.54.0
>>

Reply via email to