Re: git: e2c93ed09f25 - main - sys/font.h: avoid warnings about too-long initializer strings

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Fri, 26 Dec 2025 15:10:05 UTC
On 26 Dec 2025, at 15:53, Dimitry Andric <dim@freebsd.org> wrote:
> 
> On 26 Dec 2025, at 15:49, Nuno Teixeira <eduardo@freebsd.org> wrote:
>> 
>> I've just spoted by luck that world fails at this commit:
>> 
>> Building /usr/obj/usr/src/amd64.amd64/tmp/obj-tools/usr.sbin/zic/_debuginstall
>> In file included from /usr/src/usr.bin/vtfontcvt/vtfontcvt.c:32:
>> /usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/include/sys/font.h:111:22: error: expected ';' at end of declaration list
>>  111 |         uint8_t         fh_magic[8] __nonstring;
>>      |                                    ^
>>      |                                    ;
> 
> Strange, I did a full buildworld and it worked just fine? Are you using any special configuration settings?

Oh I see, commit 802c6d5d61d1 on 2025-12-16 introduced the attribute. For some reason, the vtfontcvt bootstrap build is using <sys/font.h> from the source tree, but <sys/cdefs.h> from the host system. This is weird, I will have to look into it. If I cannot resolve it quickly, I will revert for now.

-Dimitry