Issues building elfutils

Philip Prindeville philipp_subx at redfish-solutions.com
Mon Dec 15 15:25:10 PST 2025


I’m trying to build a RPi-5 image, and during the build of the entire tree I saw the following.  Anyone else seeing something similar?

The package hasn’t been updated in a couple of months so I’m surprised that I’m encountering it.

...
Making all in libgnu
make  all-recursive
/usr/bin/env bash ../libtool  --tag=CC   --mode=compile /home/philipp/lede2/staging_dir/host/bin/gcc -DHAVE_CONFIG_H -iquote . -I.. -I../libgnu   -I/home/philipp/lede2/staging_dir/host/include -I../lib  -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-sign-conversion -Wno-type-limits -Wno-unsuffixed-float-constants -D_FORTIFY_SOURCE=3 -O2 -I/home/philipp/lede2/staging_dir/host/include -Wno-error -fPIC -std=gnu17 -c -o libgnu_la-argp-eexst.lo `test -f 'argp-eexst.c' || echo './'`argp-eexst.c
OpenWrt-libtool: compile:  /home/philipp/lede2/staging_dir/host/bin/gcc -DHAVE_CONFIG_H -iquote . -I.. -I../libgnu -I/home/philipp/lede2/staging_dir/host/include -I../lib -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-sign-conversion -Wno-type-limits -Wno-unsuffixed-float-constants -D_FORTIFY_SOURCE=3 -O2 -I/home/philipp/lede2/staging_dir/host/include -Wno-error -fPIC -std=gnu17 -c argp-eexst.c -o libgnu_la-argp-eexst.o
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_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 | #if /*@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/philipp/lede2/build_dir/host/elfutils-0.192'
make[3]: *** [Makefile:135: /home/philipp/lede2/build_dir/host/elfutils-0.192/.built] Error 2
make[3]: Leaving directory '/home/philipp/lede2/tools/elfutils'
time: tools/elfutils/compile#0.15#0.13#0.27
    ERROR: tools/elfutils failed to build.
make[2]: *** [tools/Makefile:243: tools/elfutils/compile] Error 1
make[2]: Leaving directory '/home/philipp/lede2'
make[1]: *** [tools/Makefile:239: /home/philipp/lede2/staging_dir/host/stamp/.tools_compile_nyyynyynnnynyynynyyyyyyyynyyynynyynnynnyyyyyynyyyyyyyyyyynynnyyyyynyyy] Error 2
make[1]: Leaving directory '/home/philipp/lede2'
make: *** [/home/philipp/lede2/include/toplevel.mk:233: world] Error 2


More information about the openwrt-devel mailing list