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-AM64X: SDK 09.02.01.10: error when compiling OP-TEE

Part Number: PROCESSOR-SDK-AM64X
Other Parts Discussed in Thread: SK-AM64B

Tool/software:

I am trying to get the MCU+ example "SBL OSPI Linux" working on the SK-AM64B board.

To do this, I have to re-build OP-TEE.

Unfortunately, when trying to compile OP-TEE as described here

https://software-dl.ti.com/processor-sdk-linux/esd/AM64X/09_02_01_10/exports/docs/linux/Foundational_Components_OPTEE.html

I get the following error:

...@...:~/ti/ubootsources/optee_os$ make CROSS_COMPILE="$CROSS_COMPILE_32" CROSS_COMPILE64="$CROSS_COMPILE_64" PLATFORM=k3-am64x CFG_ARM64_core=y
  CHK     out/arm-plat-k3/conf.mk
  CHK     out/arm-plat-k3/include/generated/conf.h
  CHK     out/arm-plat-k3/core/include/generated/asm-defines.h
  LD      out/arm-plat-k3/ldelf/ldelf.elf
/home/.../ti/ti-processor-sdk-linux-am64xx-evm-09.02.01.10//linux-devkit/sysroots/x86_64-arago-linux/usr/bin/aarch64-oe-linux/aarch64-oe-linux-ld.bfd: cannot find libgcc.a: No such file or directory
make: *** [ldelf/link.mk:60: out/arm-plat-k3/ldelf/ldelf.elf] Error 1

I use the recommended toolchain setup as described here:

https://software-dl.ti.com/processor-sdk-linux/esd/AM64X/09_02_01_10/exports/docs/linux/Overview/GCC_ToolChain.html#yocto-toolchain

Regards,

Benjamin