Skip to contentSkip to conversation

compile error

DISCUSSION Chan Kim 2 participants 2 messages Jun 4, 2023 – Jun 12, 2023

lore
Share & tools
lore

Chan Kim

author
#0 lore raw

Hello all,
For commit 26659d42654 (Fri Jun 2 12:13:01 2023 -0400)

When I do 'make qemu_arm64_defconfig' and 'make', I get this compile error.

ckim@ckim-ubuntu:~/u-boot-test/u-boot$ make -j28
  ENVC    include/generated/env.txt
  UPD     include/generated/timestamp_autogenerated.h
  ENVP    include/generated/env.in
  ENVT    include/generated/environment.h
  HOSTCC  tools/lib/sha1.o
  HOSTCC  tools/lib/sha256.o
  HOSTCC  tools/lib/sha512.o
In file included from include/watchdog.h:13,
                 from ./tools/../lib/sha512.c:20,
                 from tools/lib/sha512.c:1:
include/cyclic.h:40:20: error: field ??list?? has incomplete type
   40 |  struct hlist_node list;
      |                    ^~~~
In file included from include/watchdog.h:13,
                 from ./tools/../lib/sha1.c:25,
                 from tools/lib/sha1.c:1:
include/cyclic.h:40:20: error: field ??list?? has incomplete type
   40 |  struct hlist_node list;
      |                    ^~~~
In file included from include/watchdog.h:13,
                 from ./tools/../lib/sha256.c:14,
                 from tools/lib/sha256.c:1:
include/cyclic.h:40:20: error: field ??list?? has incomplete type
   40 |  struct hlist_node list;
      |                    ^~~~
make[1]: *** [scripts/Makefile.host:112: tools/lib/sha512.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [scripts/Makefile.host:112: tools/lib/sha1.o] Error 1
make[1]: *** [scripts/Makefile.host:112: tools/lib/sha256.o] Error 1
make: *** [Makefile:1853: tools] Error 2

Can anyone please fix it?

Thank you!

Chan Kim

#1 lore raw

Hi Chan,

Quoted 38 lines · Chan Kim

Hello all,
For commit 26659d42654 (Fri Jun 2 12:13:01 2023 -0400)

When I do 'make qemu_arm64_defconfig' and 'make', I get this compile error.

ckim@ckim-ubuntu:~/u-boot-test/u-boot$ make -j28
  ENVC    include/generated/env.txt
  UPD     include/generated/timestamp_autogenerated.h
  ENVP    include/generated/env.in
  ENVT    include/generated/environment.h
  HOSTCC  tools/lib/sha1.o
  HOSTCC  tools/lib/sha256.o
  HOSTCC  tools/lib/sha512.o
In file included from include/watchdog.h:13,
                 from ./tools/../lib/sha512.c:20,
                 from tools/lib/sha512.c:1:
include/cyclic.h:40:20: error: field ??list?? has incomplete type
   40 |  struct hlist_node list;
      |                    ^~~~
In file included from include/watchdog.h:13,
                 from ./tools/../lib/sha1.c:25,
                 from tools/lib/sha1.c:1:
include/cyclic.h:40:20: error: field ??list?? has incomplete type
   40 |  struct hlist_node list;
      |                    ^~~~
In file included from include/watchdog.h:13,
                 from ./tools/../lib/sha256.c:14,
                 from tools/lib/sha256.c:1:
include/cyclic.h:40:20: error: field ??list?? has incomplete type
   40 |  struct hlist_node list;
      |                    ^~~~
make[1]: *** [scripts/Makefile.host:112: tools/lib/sha512.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [scripts/Makefile.host:112: tools/lib/sha1.o] Error 1
make[1]: *** [scripts/Makefile.host:112: tools/lib/sha256.o] Error 1
make: *** [Makefile:1853: tools] Error 2
Quoted 1 line

Can anyone please fix it?

Can you please provide the git hash or version you are using?

Did you add CROSS_COMPILE= when building? I cannot repeat this problem...and it seems that CI is working OK.

Regards,
Simon