u-boot icon indicating copy to clipboard operation
u-boot copied to clipboard

Fails to build from source if libfdt-dev installed on host

Open wom-bat opened this issue 7 years ago • 2 comments

If upstream libfdt include files are installed, they clash with the ones in this tree:

HOSTCC  tools/aisimage.o
In file included from tools/../include/../lib/libfdt/libfdt.h:10,
                 from tools/../include/libfdt.h:1,
                 from tools/fdt_host.h:11,
                 from tools/imagetool.h:24,
                 from tools/aisimage.c:8:
/usr/include/libfdt_env.h:70:30: error: conflicting types for ‘fdt64_t’
 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’ was here
 typedef __be64 fdt64_t;
                ^~~~~~~
In file included from ././include/libfdt_env.h:12,
                 from <command-line>:
/usr/include/libfdt_env.h:90:24: error: expected ‘)’ before ‘x’
 static inline uint32_t fdt32_to_cpu(fdt32_t x)
                        ^~~~~~~~~~~~

wom-bat avatar Aug 29 '18 00:08 wom-bat

Any solution for this issue ?

FourierSignal avatar Feb 26 '19 08:02 FourierSignal

I would second that, my alternative was removing the system libfdt, but should be a better way.

waltercool avatar Jun 11 '19 04:06 waltercool