UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor zawicki
Visitor
271 Views
Registered: ‎02-28-2019

Failed to compile tricube from UG1209

I have been following the embedded design tutorial (UG1209) using a ZCU102 board. I have been using the 2018.3 version of all tools (SDK, Vivado, and petalinux bsp).

For design example 2 (the tricube application), when I try to build petalinux (page 156 of UG1209 version 2018.3) I get the following output:

[INFO] building project
[INFO] generating Kconfig for project
[INFO] oldconfig project
[INFO] sourcing bitbake
[INFO] generating plnxtool conf
[INFO] generating meta-plnx-generated layer
[INFO] generating bbappends for project . This may take time ! 
[INFO] generating u-boot configuration files
[INFO] generating kernel configuration files
[INFO] generating kconfig for Rootfs
[INFO] oldconfig rootfs
[INFO] generating petalinux-user-image.bb
INFO: bitbake petalinux-user-image
Loading cache: 100% |#######################################################################| Time: 0:00:00
Loaded 3461 entries from dependency cache.
Parsing recipes: 100% |#####################################################################| Time: 0:00:02
Parsing of 2570 .bb files complete (2528 cached, 42 parsed). 3462 targets, 136 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |##################################################################| Time: 0:00:06
Checking sstate mirror object availability: 100% |##########################################| Time: 0:00:26
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: tricube-1.0-r0 do_compile: Function failed: do_compile (log file is located at /usr/local/david.zawicki/Xilinx/edt/xilinx-zcu102-2018.3/build/tmp/work/aarch64-xilinx-linux/tricube/1.0-r0/temp/log.do_compile.8971)
ERROR: Logfile of failure stored in: /usr/local/david.zawicki/Xilinx/edt/xilinx-zcu102-2018.3/build/tmp/work/aarch64-xilinx-linux/tricube/1.0-r0/temp/log.do_compile.8971
Log data follows:
| DEBUG: Executing shell function do_compile
| /usr/local/david.zawicki/Xilinx/edt/xilinx-zcu102-2018.3/build/tmp/work/aarch64-xilinx-linux/tricube/1.0-r0/recipe-sysroot-native/usr/bin/aarch64-xilinx-linux/../../libexec/aarch64-xilinx-linux/gcc/aarch64-xilinx-linux/7.3.0/ld: cannot find -lexpat
| /usr/local/david.zawicki/Xilinx/edt/xilinx-zcu102-2018.3/build/tmp/work/aarch64-xilinx-linux/tricube/1.0-r0/recipe-sysroot-native/usr/bin/aarch64-xilinx-linux/../../libexec/aarch64-xilinx-linux/gcc/aarch64-xilinx-linux/7.3.0/ld: cannot find -lglapi
| /usr/local/david.zawicki/Xilinx/edt/xilinx-zcu102-2018.3/build/tmp/work/aarch64-xilinx-linux/tricube/1.0-r0/recipe-sysroot-native/usr/bin/aarch64-xilinx-linux/../../libexec/aarch64-xilinx-linux/gcc/aarch64-xilinx-linux/7.3.0/ld: cannot find -lXxf86vm
| /usr/local/david.zawicki/Xilinx/edt/xilinx-zcu102-2018.3/build/tmp/work/aarch64-xilinx-linux/tricube/1.0-r0/recipe-sysroot-native/usr/bin/aarch64-xilinx-linux/../../libexec/aarch64-xilinx-linux/gcc/aarch64-xilinx-linux/7.3.0/ld: cannot find -lGL
| collect2: error: ld returned 1 exit status
| WARNING: /usr/local/david.zawicki/Xilinx/edt/xilinx-zcu102-2018.3/build/tmp/work/aarch64-xilinx-linux/tricube/1.0-r0/temp/run.do_compile.8971:1 exit 1 from 'aarch64-xilinx-linux-g++ --sysroot=/usr/local/david.zawicki/Xilinx/edt/xilinx-zcu102-2018.3/build/tmp/work/aarch64-xilinx-linux/tricube/1.0-r0/recipe-sysroot -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/usr/local/david.zawicki/Xilinx/edt/xilinx-zcu102-2018.3/build/tmp/work/aarch64-xilinx-linux/tricube/1.0-r0=/usr/src/debug/tricube/1.0-r0 -fdebug-prefix-map=/usr/local/david.zawicki/Xilinx/edt/xilinx-zcu102-2018.3/build/tmp/work/aarch64-xilinx-linux/tricube/1.0-r0/recipe-sysroot-native= -fdebug-prefix-map=/usr/local/david.zawicki/Xilinx/edt/xilinx-zcu102-2018.3/build/tmp/work/aarch64-xilinx-linux/tricube/1.0-r0/recipe-sysroot= -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed tricube.cpp -lm -lpthread -ldl -lX11 -lxcb -lXau -lXdmcp -ldrm -lXfixes -lXext -lXdamage -lexpat -lglapi -lX11-xcb -lxcb-glx -lxcb-dri2 -lXxf86vm -lEGL -lGLESv2 -lGL -o tricube -I/usr/lib -L/usr/include'
| ERROR: Function failed: do_compile (log file is located at /usr/local/david.zawicki/Xilinx/edt/xilinx-zcu102-2018.3/build/tmp/work/aarch64-xilinx-linux/tricube/1.0-r0/temp/log.do_compile.8971)
ERROR: Task (/usr/local/david.zawicki/Xilinx/edt/xilinx-zcu102-2018.3/project-spec/meta-user/recipes-apps/tricube/tricube.bb:do_compile) failed with exit code '1'

I believe I have followed the steps in the document correctly. How can I resolve this build issue?

0 Kudos
2 Replies
Voyager
Voyager
105 Views
Registered: ‎10-31-2016

Re: Failed to compile tricube from UG1209

Hi,

Do you get the solution for this problem ?

I have the same issue.

Best regards

0 Kudos
Highlighted
Visitor zawicki
Visitor
93 Views
Registered: ‎02-28-2019

Re: Failed to compile tricube from UG1209

I have been unable to find a solution.

0 Kudos