Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 26 |
Nodes: | 6 (1 / 5) |
Uptime: | 06:50:48 |
Calls: | 483 |
Calls today: | 1 |
Files: | 1,073 |
Messages: | 98,027 |
Anybody else seeing this?
error: initializer-string for array of æcharÆ truncates NUL
terminator but destination lacks ænonstringÆ attribute (8 chars
into 7 available) [-Werror=unterminated-string-initialization]
$ gcc --versionhttps://bugs.gentoo.org/955773
gcc (Gentoo Hardened 15.1.0 p55) 15.1.0
thanks,
raffaele
On May 10, 2025, at 12:09, yahoo <mentadent47@yahoo.com> wrote:
Anybody else seeing this?
error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (8 chars into 7 available) [-Werror=unterminated-string-initialization]
$ gcc --version
gcc (Gentoo Hardened 15.1.0 p55) 15.1.0
thanks,
raffaele
I had this error when building (if I remember correctly) libxcrypt for the initrd with genkernel. But genkernel is now obsolete, so I set it aside until I get around to switching my kernel bulids to a more modern setup.
It looks like this warning was added in the recently-released GCC 15. It's not enabled by default or with -Wall, only with -Wextra. But apparently libxcrypt was being built with -Wextra -Werror so it breaks the build.