Elfutils libgnu/stddef.h has no right operand (build failure)

In the process of transitioning to 25.10.0, local build for ath79 (ar750s) has run into a couple of failures in the toolchain build. make targetcleanhas been run. Debian Trixie.

The first is that apt install libext2fs-dev is now required for the cmake build.

The other I have not yet resolved:

TL;DR – Manually deleting build_dir and staging_dir resolved this.

$ cat logs/tools/elfutils/compile.txt
make[4]: Entering directory '/home/jeff/build/openwrt/ar750s/build_dir/host/elfutils-0.192'
make --no-print-directory all-recursive
Making all in libgnu
make all-recursive
CC libgnu_la-argp-eexst.lo
In file included from /usr/include/locale.h:28,
from ../libgnu/locale.h:41,
from ../libgnu/gettext.h:122,
from ../lib/eu-config.h:34,
from ../config.h:2700,
from argp-eexst.c:20:
../libgnu/stddef.h:37:9: error: operator '!' has no right operand
37 | && !
| ^
../libgnu/stddef.h:93:35: error: operator '!' has no right operand
93 | # if !defined _GCC_NULLPTR_T && !
| ^
In file included from ../libgnu/locale.h:54:
../libgnu/stddef.h:37:9: error: operator '!' has no right operand
37 | && !
| ^
In file included from ../libgnu/setlocale_null.h:22,
from ../libgnu/locale.h:758:
../libgnu/stddef.h:37:9: error: operator '!' has no right operand
37 | && !
| ^
../libgnu/locale.h:761:33: error: operator '&&' has no left operand
761 | #if@GNULIB_NEWLOCAL@GNULIB_NEWLOCALE/@GNULIB_NEWLOCALE*@ ||/ ( && 0 && 1)
| ^~
../libgnu/locale.h:794:12: error: operator '&&' has no left operand
794 |
#if 0 || ( && 0 && 1)
| ^~
../libgnu/locale.h:824:34: error: operator '&&' has no left operand
824 |@GNULIB_FREELOCALE#
@GNULIB_FREELOCALEf /@GNULIB_FREELOCALE@ ||*/ ( && 0 && 1)
| ^~
In file included from /usr/include/string.h:33,
from ../libgnu/string.h:41,
from ../libgnu/gettext.h:192:
../libgnu/stddef.h:37:9: error: operator '!' has no right operand
37 | && !
| ^
In file included from /usr/include/strings.h:23,
from ../libgnu/strings.h:34,
from /usr/include/string.h:462:
../libgnu/stddef.h:37:9: error: operator '!' has no right operand
37 | && !
| ^
In file included from ../libgnu/string.h:56:
../libgnu/stddef.h:37:9: error: operator '!' has no right operand
37 | && !
| ^
../libgnu/string.h:1619:5: error: #if with no expression
1619 | #if
| ^
../libgnu/string.h:1627:5: error: #if with no expression
1627 | #if
| ^
In file included from /usr/include/stdio.h:34,
from ../libgnu/stdio.h:55,
from argp.h:27,
from argp-eexst.c:25:
../libgnu/stddef.h:37:9: error: operator '!' has no right operand
37 | && !
| ^
In file included from ../libgnu/stdio.h:77:
../libgnu/stddef.h:37:9: error: operator '!' has no right operand
37 | && !
| ^
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:144,
from ../libgnu/sys/types.h:46,
from ../libgnu/stdio.h:83:
../libgnu/stddef.h:37:9: error: operator '!' has no right operand
37 | && !
| ^
../libgnu/sys/types.h:65:6: error: operator '!' has no right operand
65 | #if !
| ^
../libgnu/stdio.h:820:5: error: #if with no expression
820 | #if
| ^
../libgnu/stdio.h:1110:5: error: #if with no expression
1110 | #if
| ^
../libgnu/stdio.h:1662:5: error: #if with no expression
1662 | #if
| ^
../libgnu/stdio.h:1815:5: error: #if with no expression
1815 | #if
| ^
../libgnu/stdio.h:2064:5: error: #if with no expression
2064 | #if
| ^
../libgnu/stdio.h:2125:5: error: #if with no expression
2125 | #if
| ^
../libgnu/stdio.h:2237:5: error: #if with no expression
2237 | #if
| ^
../libgnu/stdio.h:2317:5: error: #if with no expression
2317 | #if
| ^
../libgnu/stdio.h:2370:5: error: #if with no expression
2370 | #if
| ^
../libgnu/stdio.h:2460:5: error: #if with no expression
2460 | #if
| ^
../libgnu/stdio.h:2535:5: error: #if with no expression
2535 | #if
| ^
../libgnu/stdio.h:2596:5: error: #if with no expression
2596 | #if
| ^
make[8]: *** [Makefile:3019: libgnu_la-argp-eexst.lo] Error 1
make[7]: *** [Makefile:4318: all-recursive] Error 1
make[6]: *** [Makefile:2678: all] Error 2
make[5]: *** [Makefile:2082: all-recursive] Error 1
make[4]: *** [Makefile:1989: all] Error 2
make[4]: Leaving directory '/home/jeff/build/openwrt/ar750s/build_dir/host/elfutils-0.192'
make[3]: *** [Makefile:135: /home/jeff/build/openwrt/ar750s/build_dir/host/elfutils-0.192/.built] Error 2
time: tools/elfutils/compile#0.12#0.07#0.20

Suggestions are welcome.

Manually deleting build_dir and staging_dir resolved this.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.