Amlogic-no.aarch64-22 build error on ubuntu 24.04

Hello, when I try to build latest CE on ubuntu 24.04:

git clone https://github.com/CoreELEC/CoreELEC.git
cd CoreELEC
make all

Failed with error when compile u-boot:

./tools/Makefile:168: warning: pattern recipe did not update peer target 'tools/lib/bootm.c'.
  HOSTCC  tools/aisimage.o
  WRAP    tools/common/image-fit.c
../tools/Makefile:168: warning: pattern recipe did not update peer target 'tools/lib/image-fit.c'.
In file included from ../tools/../include/libfdt.h:54,
                 from ../tools/fdt_host.h:11,
                 from ../tools/imagetool.h:22,
                 from ../tools/fit_common.c:21:
/usr/include/libfdt_env.h:27:30: error: conflicting types for ‘fdt64_t’; have ‘uint64_t’ {aka ‘long unsigned int’}
   27 | typedef uint64_t FDT_BITWISE fdt64_t;
      |                              ^~~~~~~
In file included from <command-line>:
./../include/libfdt_env.h:19:16: note: previous declaration of ‘fdt64_t’ with type ‘fdt64_t’ {aka ‘long long unsigned int’}
   19 | typedef __be64 fdt64_t;
      |                ^~~~~~~
In file included from ./../include/libfdt_env.h:12:
/usr/include/libfdt_env.h:47:24: error: expected ‘)’ before ‘x’
   47 | static inline uint32_t fdt32_to_cpu(fdt32_t x)
      |                        ^~~~~~~~~~~~
./../include/compiler.h:66:16: error: expected ‘)’ before ‘&’ token
   66 |         ((((x) & 0xff000000) >> 24) | \

Any suggestions would be greatly appreciated.

Are you kidding? You didn’t even provide which package failed :frowning:

Anyway, building here on Ubuntu 24.04.2 LTS.

Many build error like this when build u-boot:

/usr/include/libfdt_env.h:27:30: error: conflicting types for ‘fdt64_t’; have ‘uint64_t’ {aka ‘long unsigned int’}
   27 | typedef uint64_t FDT_BITWISE fdt64_t;
      |                              ^~~~~~~
In file included from <command-line>:
./../include/libfdt_env.h:19:16: note: previous declaration of ‘fdt64_t’ with type ‘fdt64_t’ {aka ‘long long unsigned int’}
   19 | typedef __be64 fdt64_t;
      |                ^~~~~~~
In file included from ./../include/libfdt_env.h:12:
/usr/include/libfdt_env.h:47:24: error: expected ‘)’ before ‘x’
   47 | static inline uint32_t fdt32_to_cpu(fdt32_t x)

And my build environment is also Ubuntu 24.04.2 LTS

No info requested is given.
Use Google and forum search!