The problem of Build U-boot for Fuchsia

root@Khadas:~/project/u-boot# make -j8 CROSS_COMPILE=aarch64-linux-gnu-
CHK include/config/uboot.release
CHK include/generated/timestamp_autogenerated.h
UPD include/generated/timestamp_autogenerated.h
GEN ./Makefile
Using … as source for U-Boot
CHK include/generated/version_autogenerated.h
HOSTCC tools/mkenvimage.o
HOSTCC tools/image-host.o
HOSTCC tools/dumpimage.o
HOSTCC tools/mkimage.o
HOSTLD tools/dumpimage
HOSTLD tools/mkenvimage
HOSTLD tools/mkimage
AS arch/arm/cpu/armv8/exceptions.o
AS arch/arm/cpu/armv8/cache.o
AS arch/arm/cpu/armv8/tlb.o
AS arch/arm/cpu/armv8/transition.o
AS arch/arm/cpu/armv8/start.o
CC drivers/usb/gadget/f_fastboot.o
LD arch/arm/cpu/armv8/built-in.o
CC lib/display_options.o
LD lib/built-in.o
CC common/main.o
CC common/board_f.o
CC common/cmd_version.o
LD drivers/usb/gadget/built-in.o
LD common/built-in.o
LD u-boot
OBJCOPY u-boot.srec
OBJCOPY u-boot.bin
OBJCOPY u-boot.hex
Building board/khadas/kvim2/acs.bin
Building board/khadas/kvim2/bl21.bin
2172+0 records in
2172+0 records out
2172 bytes (2.2 kB, 2.1 KiB) copied, 0.0217477 s, 99.9 kB/s
3936+0 records in
3936+0 records out
3936 bytes (3.9 kB, 3.8 KiB) copied, 0.0368919 s, 107 kB/s
…/fip/fip_create: 1: …/fip/fip_create: Syntax error: “(” unexpected
/root/project/u-boot/Makefile:894: recipe for target ‘fip.bin’ failed
make[1]: *** [fip.bin] Error 2
Makefile:147: recipe for target ‘sub-make’ failed
make: *** [sub-make] Error 2

My Ubuntu release is Ubuntu 18.04.1 LTS
My device is VIM2 MAX

thanks a lot!

You build u-boot a VIM2 device running ubuntu?

yes.I have read the page Google Fuchsia OS on Khadas VIM2

Have you solved the problem? @numbqq @appsoft

You can update your toolchain to newer version, or modify the following Makefile and delete “-Werror” in CFLAGS.


1 Like