When building on a host with gcc 15 it fails.
There is a fix on buildroot: https://git.buildroot.net/buildroot/commit/?id=7a07a9d155b8f601d68f07ee0ed1dc8d48907644
`git clone https://github.com/openlgtv/buildroot-nc4.git
cd buildroot-nc4
make webos_tv_defconfig
make all
...
host-m4 1.4.19 Building
...
Making all in lib
GEN alloca.h
GEN configmake.h
...
/usr/bin/make all-am
CC asyncsafe-spin.o
CC openat-proc.o
...
In file included from gl_avltree_oset.h:21,
from gl_avltree_oset.c:21:
gl_oset.h:275:1: warning: 'nodiscard' attribute ignored [-Wattributes]
275 | GL_OSET_INLINE _GL_ATTRIBUTE_NODISCARD int
| ^~~~~~~~~~~~~~
gl_oset.h:275:40: error: expected identifier or '(' before 'int'
275 | GL_OSET_INLINE _GL_ATTRIBUTE_NODISCARD int
make[1]: *** [package/pkg-generic.mk:273: buildroot-nc4/output/build/host-m4-1.4.19/.stamp_built] Error 2
make: *** [Makefile:83: _all] Error 2
`
The fix from buildroot uses BR2_HOST_GCC_AT_LEAST_15 which is not evaluated with buildroot from this repo.
When building on a host with gcc 15 it fails.
There is a fix on buildroot: https://git.buildroot.net/buildroot/commit/?id=7a07a9d155b8f601d68f07ee0ed1dc8d48907644
`git clone https://github.com/openlgtv/buildroot-nc4.git
cd buildroot-nc4
make webos_tv_defconfig
make all
...
The fix from buildroot uses
BR2_HOST_GCC_AT_LEAST_15which is not evaluated with buildroot from this repo.