This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PROCESSOR-SDK-AM68A: AM68A Uboot build error

Part Number: PROCESSOR-SDK-AM68A
Other Parts Discussed in Thread: AM68A

Dear TI Team 

I downloaded to the ti-processor-sdk-linux-edgeai-j721s2-evm-09_01_00_06.bin and installed my ubunt 20.04.6 LTS.

I installed some of package as below. but only lz4 package dosn't exist for my ubuntu version. 

sudo apt-get -f -y install \
git build-essential diffstat texinfo gawk chrpath socat doxygen \
dos2unix python3 bison flex libssl-dev u-boot-tools mono-devel \
mono-complete curl python3-distutils repo pseudo python3-sphinx \
g++-multilib libc6-dev-i386 jq git-lfs pigz zstd liblz4-tool \
cpio file zstd lz4

I succed to build sdk kernel but uboot build was failed with some error log. 

Could you give me some guide for error fix during the building process. 

1) error message is here 
cc: error: unrecognized command line option ‘-fmacro-prefix-map=/nativesdk-python3/3.8.14-r0=/usr/src/debug/nativesdk-python3/3.8.14-r0’
cc: error: unrecognized command line option ‘-fmacro-prefix-map=/nativesdk-python3/3.8.14-r0=/usr/src/debug/nativesdk-python3/3.8.14-r0’
error: command 'cc' failed with exit status 1

2) build message is here. 

(base) skilove13@skilove13-HP-Z800-Workstation:~/am68a/ti-processor-sdk-linux-edgeai-j721s2-evm-09_01_00_06$ make u-boot
===================================
Building U-boot for a72
===================================
make -j 12 -C /home/skilove13/am68a/ti-processor-sdk-linux-edgeai-j721s2-evm-09_01_00_06/board-support/ti-u-boot-2023.04+gitAUTOINC+71b8c840ca-g71b8c840ca ARCH=arm j721s2_evm_a72_defconfig \
O=/home/skilove13/am68a/ti-processor-sdk-linux-edgeai-j721s2-evm-09_01_00_06/board-support/ti-u-boot-2023.04+gitAUTOINC+71b8c840ca-g71b8c840ca/build/a72
make[1]: Entering directory '/home/skilove13/am68a/ti-processor-sdk-linux-edgeai-j721s2-evm-09_01_00_06/board-support/ti-u-boot-2023.04+gitAUTOINC+71b8c840ca-g71b8c840ca'
make[2]: Entering directory '/home/skilove13/am68a/ti-processor-sdk-linux-edgeai-j721s2-evm-09_01_00_06/board-support/ti-u-boot-2023.04+gitAUTOINC+71b8c840ca-g71b8c840ca/build/a72'
HOSTCC scripts/basic/fixdep
GEN Makefile
HOSTCC scripts/kconfig/conf.o
YACC scripts/kconfig/zconf.tab.c
LEX scripts/kconfig/zconf.lex.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
#
# configuration written to .config
#
make[2]: Leaving directory '/home/skilove13/am68a/ti-processor-sdk-linux-edgeai-j721s2-evm-09_01_00_06/board-support/ti-u-boot-2023.04+gitAUTOINC+71b8c840ca-g71b8c840ca/build/a72'
make[1]: Leaving directory '/home/skilove13/am68a/ti-processor-sdk-linux-edgeai-j721s2-evm-09_01_00_06/board-support/ti-u-boot-2023.04+gitAUTOINC+71b8c840ca-g71b8c840ca'
make -j 12 -C /home/skilove13/am68a/ti-processor-sdk-linux-edgeai-j721s2-evm-09_01_00_06/board-support/ti-u-boot-2023.04+gitAUTOINC+71b8c840ca-g71b8c840ca \
ARCH=arm CROSS_COMPILE=/home/skilove13/am68a/ti-processor-sdk-linux-edgeai-j721s2-evm-09_01_00_06/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/aarch64-oe-linux/aarch64-oe-linux- CC="/home/skilove13/am68a/ti-processor-sdk-linux-edgeai-j721s2-evm-09_01_00_06/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/aarch64-oe-linux/aarch64-oe-linux-gcc --sysroot=/home/skilove13/am68a/ti-processor-sdk-linux-edgeai-j721s2-evm-09_01_00_06/linux-devkit/sysroots/aarch64-oe-linux" \
BINMAN_INDIRS=/home/skilove13/am68a/ti-processor-sdk-linux-edgeai-j721s2-evm-09_01_00_06/board-support/prebuilt-images BL31=/home/skilove13/am68a/ti-processor-sdk-linux-edgeai-j721s2-evm-09_01_00_06/board-support/prebuilt-images/bl31.bin TEE=/home/skilove13/am68a/ti-processor-sdk-linux-edgeai-j721s2-evm-09_01_00_06/board-support/prebuilt-images/bl32.bin \
O=/home/skilove13/am68a/ti-processor-sdk-linux-edgeai-j721s2-evm-09_01_00_06/board-support/ti-u-boot-2023.04+gitAUTOINC+71b8c840ca-g71b8c840ca/build/a72
make[1]: Entering directory '/home/skilove13/am68a/ti-processor-sdk-linux-edgeai-j721s2-evm-09_01_00_06/board-support/ti-u-boot-2023.04+gitAUTOINC+71b8c840ca-g71b8c840ca'
make[2]: Entering directory '/home/skilove13/am68a/ti-processor-sdk-linux-edgeai-j721s2-evm-09_01_00_06/board-support/ti-u-boot-2023.04+gitAUTOINC+71b8c840ca-g71b8c840ca/build/a72'
GEN Makefile
scripts/kconfig/conf --syncconfig Kconfig
CFG u-boot.cfg
GEN include/autoconf.mk.dep
CFG spl/u-boot.cfg
GEN include/autoconf.mk
GEN spl/include/autoconf.mk
GEN Makefile
ENVC include/generated/env.txt
UPD include/generated/timestamp_autogenerated.h
HOSTCC scripts/dtc/dtc.o
HOSTCC scripts/dtc/flattree.o
HOSTCC scripts/dtc/data.o
HOSTCC scripts/dtc/fstree.o
HOSTCC scripts/dtc/livetree.o
HOSTCC scripts/dtc/srcpos.o
HOSTCC scripts/dtc/treesource.o
HOSTCC scripts/dtc/checks.o
HOSTCC scripts/dtc/util.o
LEX scripts/dtc/dtc-lexer.lex.c
PYMOD rebuild
YACC scripts/dtc/dtc-parser.tab.h
YACC scripts/dtc/dtc-parser.tab.c
HOSTCC scripts/dtc/dtc-lexer.lex.o
HOSTCC scripts/dtc/dtc-parser.tab.o
/home/skilove13/ti_am62a/SW/ti-processor-sdk-linux-am62axx-evm-08.06.00.45/linux-devkit/sysroots/x86_64-arago-linux/usr/lib/python3.8/site-packages/setuptools/dist.py:473: UserWarning: Normalizing '2023.04' to '2023.4'
warnings.warn(
Using /home/skilove13/am68a/ti-processor-sdk-linux-edgeai-j721s2-evm-09_01_00_06/board-support/ti-u-boot-2023.04+gitAUTOINC+71b8c840ca-g71b8c840ca as source for U-Boot
ENVP include/generated/env.in
UPD include/generated/version_autogenerated.h
ENVT include/generated/environment.h
HOSTLD scripts/dtc/dtc
cc: error: unrecognized command line option ‘-fmacro-prefix-map=/nativesdk-python3/3.8.14-r0=/usr/src/debug/nativesdk-python3/3.8.14-r0’
cc: error: unrecognized command line option ‘-fmacro-prefix-map=/nativesdk-python3/3.8.14-r0=/usr/src/debug/nativesdk-python3/3.8.14-r0’
error: command 'cc' failed with exit status 1
/home/skilove13/am68a/ti-processor-sdk-linux-edgeai-j721s2-evm-09_01_00_06/board-support/ti-u-boot-2023.04+gitAUTOINC+71b8c840ca-g71b8c840ca/scripts/dtc/pylibfdt/Makefile:30: recipe for target 'rebuild' failed
make[4]: *** [rebuild] Error 1
/home/skilove13/am68a/ti-processor-sdk-linux-edgeai-j721s2-evm-09_01_00_06/board-support/ti-u-boot-2023.04+gitAUTOINC+71b8c840ca-g71b8c840ca/scripts/Makefile.build:397: recipe for target 'scripts/dtc/pylibfdt' failed
make[3]: *** [scripts/dtc/pylibfdt] Error 2
/home/skilove13/am68a/ti-processor-sdk-linux-edgeai-j721s2-evm-09_01_00_06/board-support/ti-u-boot-2023.04+gitAUTOINC+71b8c840ca-g71b8c840ca/Makefile:2003: recipe for target 'scripts_dtc' failed
make[2]: *** [scripts_dtc] Error 2
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/home/skilove13/am68a/ti-processor-sdk-linux-edgeai-j721s2-evm-09_01_00_06/board-support/ti-u-boot-2023.04+gitAUTOINC+71b8c840ca-g71b8c840ca/build/a72'
Makefile:177: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory '/home/skilove13/am68a/ti-processor-sdk-linux-edgeai-j721s2-evm-09_01_00_06/board-support/ti-u-boot-2023.04+gitAUTOINC+71b8c840ca-g71b8c840ca'
makerules/Makefile_u-boot:11: recipe for target 'u-boot-a72' failed
make: *** [u-boot-a72] Error 2

Best Regards,

Sung man, Hong