milkv-duo / duo-buildroot-sdk-v2

Milk-V Duo Official buildroot SDK V2
27 stars 23 forks source link

U-boot build error - Buffer overflow detected #5

Open wrkslava opened 4 months ago

wrkslava commented 4 months ago

What is the issue? I try to build _sg2002_milkv_duo256m_glibc_arm64sd image by cmd ./build.sh lunch and catch error at u-boot-build target.

[TARGET] u-boot-build 
  ....
  AR      lib/zlib/built-in.o
  AR      lib/efi_loader/built-in.o
  AR      lib/built-in.o
  LD      u-boot
*** buffer overflow detected ***: terminated
Aborted (core dumped)
make[2]: *** [/home/slava/milkv/duo-buildroot-sdk-v2-develop/u-boot-2021.10/Makefile:1801: u-boot] Error 134
make[2]: *** Deleting file «u-boot»
make[2]: Exit directory «/home/slava/milkv/duo-buildroot-sdk-v2-develop/u-boot-2021.10/build/sg2002_milkv_duo256m_glibc_arm64_sd»
make[1]: *** [Makefile:178: sub-make] Error 2
make[1]: Exit directory  «/home/slava/milkv/duo-buildroot-sdk-v2-develop/u-boot-2021.10»
make: *** [Makefile:184: u-boot-build] Error 2
Error: Build board milkv-duo256m-glibc-arm64-sd failed!

What I expected: Successful image build.

OS: Ubuntu 22.04.