Hi,
I am trying to build Uboot for BPIM4 but getting the below error:
NOTICE: new build.sh default select BPI-M4-720P and pack all boards supported boards: BPI-M4-720P
BPI-M4-720P configured. Now run make
This tool support following building mode(s):
1. Build all, uboot and kernel and pack to download images.
2. Build uboot only.
3. Build kernel only.
4. kernel configure.
5. Pack the builds to target download image, this step must execute after u-boot,
kernel and rootfs build out
6. Create bsp update packages for BPI SD Images
7. Update local build to SD with BPI Image flashed
8. Clean all build.
Now building…
make -C u-boot-rtk rtd1395_bananapi_defconfig CROSS_COMPILE=/Experiment/armv8/bpim4/BPI-M4-bsp/toolchains/asdk64-4.9.3-a53-EL-3.10-g2.19-a64nt-150615/bin/aarch64-linux-
make[1]: Entering directory '/Experiment/armv8/bpim4/BPI-M4-bsp/u-boot-rtk'
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
In file included from scripts/kconfig/zconf.tab.c:2534:
scripts/kconfig/confdata.c: In function ‘conf_write’:
scripts/kconfig/confdata.c:765:19: warning: ‘%s’ directive writing likely 7 or more bytes into a region of size between 1 and 4097 [-Wformat-overflow=]
765 | sprintf(newname, "%s%s", dirname, basename);
| ^~~~~~
scripts/kconfig/confdata.c:765:19: note: assuming directive output of 7 bytes
In file included from /usr/include/stdio.h:867,
from scripts/kconfig/zconf.tab.c:84:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output 1 or more bytes (assuming 4104) into a destination of size 4097
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from scripts/kconfig/zconf.tab.c:2534:
scripts/kconfig/confdata.c:768:20: warning: ‘.tmpconfig.’ directive writing 11 bytes into a region of size between 1 and 4097 [-Wformat-overflow=]
768 | sprintf(tmpname, "%s.tmpconfig.%d", dirname, (int)getpid());
| ^~~~~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:867,
from scripts/kconfig/zconf.tab.c:84:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output between 13 and 4119 bytes into a destination of size 4097
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HOSTLD scripts/kconfig/conf
#
# configuration written to .config
#
make[1]: Leaving directory '/Experiment/armv8/bpim4/BPI-M4-bsp/u-boot-rtk'
make -C u-boot-rtk CROSS_COMPILE=/Experiment/armv8/bpim4/BPI-M4-bsp/toolchains/asdk64-4.9.3-a53-EL-3.10-g2.19-a64nt-150615/bin/aarch64-linux- BUILD_BOOTCODE_ONLY=true
make[1]: Entering directory '/Experiment/armv8/bpim4/BPI-M4-bsp/u-boot-rtk'
/Experiment/armv8/bpim4/BPI-M4-bsp/toolchains/asdk64-4.9.3-a53-EL-3.10-g2.19-a64nt-150615//bin/aarch64-linux-xgcc: No such file or directory
/Experiment/armv8/bpim4/BPI-M4-bsp/toolchains/asdk64-4.9.3-a53-EL-3.10-g2.19-a64nt-150615//bin/aarch64-linux-xgcc: No such file or directory
dirname: missing operand
Try 'dirname --help' for more information.
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/config.h
UPD include/config.h
GEN include/autoconf.mk
/Experiment/armv8/bpim4/BPI-M4-bsp/toolchains/asdk64-4.9.3-a53-EL-3.10-g2.19-a64nt-150615//bin/aarch64-linux-xgcc: No such file or directory
GEN include/autoconf.mk.dep
/Experiment/armv8/bpim4/BPI-M4-bsp/toolchains/asdk64-4.9.3-a53-EL-3.10-g2.19-a64nt-150615//bin/aarch64-linux-xgcc: No such file or directory
/Experiment/armv8/bpim4/BPI-M4-bsp/toolchains/asdk64-4.9.3-a53-EL-3.10-g2.19-a64nt-150615//bin/aarch64-linux-xgcc: No such file or directory
/Experiment/armv8/bpim4/BPI-M4-bsp/toolchains/asdk64-4.9.3-a53-EL-3.10-g2.19-a64nt-150615//bin/aarch64-linux-xgcc: No such file or directory
dirname: missing operand
Try 'dirname --help' for more information.
CHK include/config/uboot.release
UPD include/config/uboot.release
CHK include/generated/version_autogenerated.h
/Experiment/armv8/bpim4/BPI-M4-bsp/toolchains/asdk64-4.9.3-a53-EL-3.10-g2.19-a64nt-150615//bin/aarch64-linux-xgcc: No such file or directory
execv: No such file or directory
UPD include/generated/version_autogenerated.h
CHK include/generated/timestamp_autogenerated.h
UPD include/generated/timestamp_autogenerated.h
CC lib/asm-offsets.s
/Experiment/armv8/bpim4/BPI-M4-bsp/toolchains/asdk64-4.9.3-a53-EL-3.10-g2.19-a64nt-150615//bin/aarch64-linux-xgcc: No such file or directory
fixdep: error opening depfile: lib/.asm-offsets.s.d: No such file or directory
make[2]: *** [Kbuild:44: lib/asm-offsets.s] Error 2
make[1]: *** [Makefile:1437: prepare0] Error 2
make[1]: Leaving directory '/Experiment/armv8/bpim4/BPI-M4-bsp/u-boot-rtk'
make: *** [Makefile:32: u-boot] Error 2
Build machine details:
Ubuntu 20.04.1 LTS \n \l
Pls let me know if any other information is needed.