cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ymm1995
Contributor
Contributor
1,088 Views
Registered: ‎04-28-2016

libgcc.a not found when building OPTEE on ZCU102

Hello,

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.

Thank you!

Best Regards,

Mengmei

| 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

 

0 Kudos
3 Replies
sabankocal
Voyager
Voyager
1,085 Views
Registered: ‎08-02-2019

Hi @ymm1995 ,

I replied a similar thread, related with libgcc problem, can you follow my instructions in that thread?

By the way, I'm using Petalinux 2018.2.

Saban

 

<--- If reply is helpful, please feel free to give Kudos, and close if it answers your question --->
0 Kudos
ymm1995
Contributor
Contributor
1,054 Views
Registered: ‎04-28-2016

Hi @sabankocal,

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. 

Best Regards,

Mengmei

0 Kudos
whatement
Newbie
Newbie
762 Views
Registered: ‎11-11-2019

I also encountered this problem, have you solved it?

0 Kudos