06-25-2020 05:41 AM
I am currently trying to deploy OPTEE on ZCU102. The petalinux was installed successfully. However, when I used "make -f zynqmp.mk" from OPTEE build repo to build the system, the errors were shown below. I would truly appreciate it if anyone could provide any guidance or suggestions to solve the issue.
| aarch64-xilinx-linux-ld.bfd: cannot find libgcc.a: No such file or directory | make: *** [ldelf/link.mk:54: out/arm-plat-zynqmp/ldelf/ldelf.elf] Error 1 | make: *** Waiting for unfinished jobs.... | ERROR: oe_runmake failed | WARNING: /home/petalinux20182/Research/petalinux/zcu102-2018.2/build/tmp/work/aarch64-xilinx-linux/optee-os/latest+gitAUTOINC+f208f17a1f-r0/temp/run.do_compile.20311:1 exit 1 from 'exit 1' | ERROR: Function failed: do_compile (log file is located at /home/petalinux20182/Research/petalinux/zcu102-2018.2/build/tmp/work/aarch64-xilinx-linux/optee-os/latest+gitAUTOINC+f208f17a1f-r0/temp/log.do_compile.20311) ERROR: Task (/home/petalinux20182/Research/petalinux/zcu102-2018.2/project-spec/meta-user/recipes-bsp/optee-os/optee-os.bb:do_compile) failed with exit code '1' NOTE: Tasks Summary: Attempted 3086 tasks of which 2255 didn't need to be rerun and 1 failed. Summary: 1 task failed: /home/petalinux20182/Research/petalinux/zcu102-2018.2/project-spec/meta-user/recipes-bsp/optee-os/optee-os.bb:do_compile Summary: There were 2 ERROR messages shown, returning a non-zero exit code. ERROR: Failed to build project zynqmp.mk:91: recipe for target 'petalinux-build' failed make: *** [petalinux-build] Error 255
06-25-2020 05:49 AM - edited 06-25-2020 05:49 AM
06-25-2020 07:35 AM
Thank you so much for your quick response! I have enabled libgcc via your instructions. However, when I tried to remake the optee project via an updated zynqmp.mk (i.e., the makefile with petalinux-config, petalinux-build, and petalinux-package but without petalinux-create), the error still existed. I double checked the rootfs configuration, and it was set correctly. Not sure why. I am currently following the readme file provided by the created project to manually build the project.