cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
nediver
Visitor
Visitor
799 Views
Registered: ‎05-22-2018

ug1021 SW Emulation Problem

Hi, I do some tutorial in sdaccel documents. (Ubuntu 18.04)

(ug1021 sdaccel intro tutorial page 15, step 2, running software emulation)

When I process the Run button to run Software Emulation, following errors are occured.

How to I debugging this problem?

Is it libboost error or anything else?

 

(Error Log)

03:03:41 **** Build of configuration Emulation-SW for project jykim3 ****
make -j96 incremental
/tools/Xilinx/SDx/2018.3/bin/xocc -t sw_emu --platform xilinx_u200_xdma_201830_1 --save-temps -c -k krnl_sum_scan -g --messageDb krnl_sum_scan/krnl_sum_scan.mdb -I"../src" --xp misc:solution_name=krnl_sum_scan --temp_dir krnl_sum_scan --report_dir krnl_sum_scan/reports --log_dir krnl_sum_scan/logs --kernel_frequency 235 -o"krnl_sum_scan/krnl_sum_scan.xo" "../src/krnl_sum_scan.cl"

****** xocc v2018.3 (64-bit)
**** SW Build 2405991 on Thu Dec 6 23:36:41 MST 2018
** Copyright 1986-2018 Xilinx, Inc. All Rights Reserved.

Attempting to get a license: ap_opencl
INFO: [XOCC 17-86] Your ap_opencl license expires in 22 day(s)
INFO: [XOCC 17-1223] The version limit for your license is '2019.02' and will expire in 29 days. A version limit expiration means that, although you may be able to continue to use the current version of tools or IP with this license, you will not be eligible for any updates or new releases.
Feature available: ap_opencl
INFO: [XOCC 60-1306] Additional information associated with this xocc compile can be found at:
Reports: /home/et/workspace/jykim3/Emulation-SW/krnl_sum_scan/reports/krnl_sum_scan
Log files: /home/et/workspace/jykim3/Emulation-SW/krnl_sum_scan/logs/krnl_sum_scan
INFO: [XOCC 60-585] Compiling for software emulation target
INFO: [XOCC 60-895] Target platform: /opt/xilinx/platforms/xilinx_u200_xdma_201830_1/xilinx_u200_xdma_201830_1.xpfm
INFO: [XOCC 60-423] Target device: xilinx_u200_xdma_201830_1
INFO: [XOCC 60-242] Creating kernel: 'krnl_sum_scan'
INFO: [XOCC 60-594] Finished kernel compilation
INFO: [XOCC 60-586] Created krnl_sum_scan/krnl_sum_scan.xo
INFO: [XOCC 60-791] Total elapsed time: 0h 0m 7s
/tools/Xilinx/SDx/2018.3/bin/xocc -t sw_emu --platform xilinx_u200_xdma_201830_1 --save-temps -l --nk krnl_sum_scan:1:krnl_sum_scan_1 -g --messageDb krnl_sum_scan.mdb --xp misc:solution_name=link --temp_dir krnl_sum_scan --report_dir krnl_sum_scan/reports --log_dir krnl_sum_scan/logs --remote_ip_cache /home/et/workspace/ip_cache -o"krnl_sum_scan.xclbin" krnl_sum_scan/krnl_sum_scan.xo

****** xocc v2018.3 (64-bit)
**** SW Build 2405991 on Thu Dec 6 23:36:41 MST 2018
** Copyright 1986-2018 Xilinx, Inc. All Rights Reserved.

Attempting to get a license: ap_opencl
INFO: [XOCC 17-86] Your ap_opencl license expires in 22 day(s)
INFO: [XOCC 17-1223] The version limit for your license is '2019.02' and will expire in 29 days. A version limit expiration means that, although you may be able to continue to use the current version of tools or IP with this license, you will not be eligible for any updates or new releases.
Feature available: ap_opencl
INFO: [XOCC 60-1306] Additional information associated with this xocc link can be found at:
Reports: /home/et/workspace/jykim3/Emulation-SW/krnl_sum_scan/reports/link
Log files: /home/et/workspace/jykim3/Emulation-SW/krnl_sum_scan/logs/link
INFO: [XOCC 60-629] Linking for software emulation target
INFO: [XOCC 60-895] Target platform: /opt/xilinx/platforms/xilinx_u200_xdma_201830_1/xilinx_u200_xdma_201830_1.xpfm
INFO: [XOCC 60-423] Target device: xilinx_u200_xdma_201830_1
INFO: [XOCC 60-586] Created krnl_sum_scan.xclbin
INFO: [XOCC 60-1307] Run completed. Additional information can be found in:
Steps Log File: /home/et/workspace/jykim3/Emulation-SW/krnl_sum_scan/logs/link/link.steps.log

INFO: [XOCC 60-791] Total elapsed time: 0h 0m 10s
/tools/Xilinx/SDx/2018.3/bin/xcpp -DSDX_PLATFORM=xilinx_u200_xdma_201830_1 -D__USE_XOPEN2K8 -I/home/et/workspace/jykim3/libs/xcl2 -I/opt/xilinx/xrt/include/ -I/tools/Xilinx/Vivado/2018.3/include/ -O0 -g -Wall -c -fmessage-length=0 -std=c++14 -DSDX_PLATFORM=xilinx_u200_xdma_201830_1 -D__USE_XOPEN2K8 -I/home/et/workspace/jykim3/libs/xcl2 -I/opt/xilinx/xrt/include/ -I/tools/Xilinx/Vivado/2018.3/include/ -O0 -g -Wall -c -fmessage-length=0 -o "libs/xcl2/xcl2.o" "../libs/xcl2/xcl2.cpp"
/tools/Xilinx/SDx/2018.3/bin/xcpp -DSDX_PLATFORM=xilinx_u200_xdma_201830_1 -D__USE_XOPEN2K8 -I/home/et/workspace/jykim3/libs/xcl2 -I/opt/xilinx/xrt/include/ -I/tools/Xilinx/Vivado/2018.3/include/ -O0 -g -Wall -c -fmessage-length=0 -std=c++14 -DSDX_PLATFORM=xilinx_u200_xdma_201830_1 -D__USE_XOPEN2K8 -I/home/et/workspace/jykim3/libs/xcl2 -I/opt/xilinx/xrt/include/ -I/tools/Xilinx/Vivado/2018.3/include/ -O0 -g -Wall -c -fmessage-length=0 -o "src/host.o" "../src/host.cpp"
/tools/Xilinx/SDx/2018.3/bin/xcpp -o "jykim3.exe" libs/xcl2/xcl2.o src/host.o -lxilinxopencl -lpthread -lrt -lstdc++ -lmpfr -lgmp -lhlsmc++-GCC46 -lIp_floating_point_v7_0_bitacc_cmodel -lIp_xfft_v9_1_bitacc_cmodel -lIp_fir_compiler_v7_2_bitacc_cmodel -lIp_dds_compiler_v6_0_bitacc_cmodel -L/opt/xilinx/xrt/lib/ -L/tools/Xilinx/Vivado/2018.3/lnx64/tools/fpo_v7_0 -L/tools/Xilinx/Vivado/2018.3/lnx64/lib/csim -L/tools/Xilinx/Vivado/2018.3/lnx64/tools/dds_v6_0 -L/tools/Xilinx/Vivado/2018.3/lnx64/tools/fir_v7_0 -L/tools/Xilinx/Vivado/2018.3/lnx64/tools/fft_v9_1 -Wl,-rpath,/tools/Xilinx/Vivado/2018.3/lnx64/lib/csim -Wl,-rpath,/tools/Xilinx/Vivado/2018.3/lnx64/tools/fpo_v7_0 -Wl,-rpath,/tools/Xilinx/Vivado/2018.3/lnx64/tools/fft_v9_1 -Wl,-rpath,/tools/Xilinx/Vivado/2018.3/lnx64/tools/fir_v7_0 -Wl,-rpath,/tools/Xilinx/Vivado/2018.3/lnx64/tools/dds_v6_0 -lxilinxopencl -lpthread -lrt -lstdc++ -lmpfr -lgmp -lhlsmc++-GCC46 -lIp_floating_point_v7_0_bitacc_cmodel -lIp_xfft_v9_1_bitacc_cmodel -lIp_fir_compiler_v7_2_bitacc_cmodel -lIp_dds_compiler_v6_0_bitacc_cmodel -L/opt/xilinx/xrt/lib/ -L/tools/Xilinx/Vivado/2018.3/lnx64/tools/fpo_v7_0 -L/tools/Xilinx/Vivado/2018.3/lnx64/lib/csim -L/tools/Xilinx/Vivado/2018.3/lnx64/tools/dds_v6_0 -L/tools/Xilinx/Vivado/2018.3/lnx64/tools/fir_v7_0 -L/tools/Xilinx/Vivado/2018.3/lnx64/tools/fft_v9_1 -Wl,-rpath,/tools/Xilinx/Vivado/2018.3/lnx64/lib/csim -Wl,-rpath,/tools/Xilinx/Vivado/2018.3/lnx64/tools/fpo_v7_0 -Wl,-rpath,/tools/Xilinx/Vivado/2018.3/lnx64/tools/fft_v9_1 -Wl,-rpath,/tools/Xilinx/Vivado/2018.3/lnx64/tools/fir_v7_0 -Wl,-rpath,/tools/Xilinx/Vivado/2018.3/lnx64/tools/dds_v6_0
/usr/bin/ld: warning: libboost_filesystem.so.1.58.0, needed by /opt/xilinx/xrt/lib//libxilinxopencl.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libboost_system.so.1.58.0, needed by /opt/xilinx/xrt/lib//libxilinxopencl.so, not found (try using -rpath or -rpath-link)
/opt/xilinx/xrt/lib//libxilinxopencl.so: undefined reference to `boost::filesystem::detail::dir_itr_close(void*&, void*&)'
makefile:98: recipe for target 'jykim3.exe' failed
/opt/xilinx/xrt/lib//libxilinxopencl.so: undefined reference to `boost::filesystem::path::operator/=(char const*)'
/opt/xilinx/xrt/lib//libxilinxopencl.so: undefined reference to `boost::filesystem::path::filename() const'
/opt/xilinx/xrt/lib//libxilinxopencl.so: undefined reference to `boost::filesystem::detail::directory_iterator_construct(boost::filesystem::directory_iterator&, boost::filesystem::path const&, boost::system::error_code*)'
/opt/xilinx/xrt/lib//libxilinxopencl.so: undefined reference to `boost::system::system_category()'
/opt/xilinx/xrt/lib//libxilinxopencl.so: undefined reference to `boost::filesystem::path::extension() const'
/opt/xilinx/xrt/lib//libxilinxopencl.so: undefined reference to `boost::filesystem::path::compare(boost::filesystem::path const&) const'
/opt/xilinx/xrt/lib//libxilinxopencl.so: undefined reference to `boost::filesystem::detail::directory_iterator_increment(boost::filesystem::directory_iterator&, boost::system::error_code*)'
/opt/xilinx/xrt/lib//libxilinxopencl.so: undefined reference to `boost::filesystem::detail::status(boost::filesystem::path const&, boost::system::error_code*)'
/opt/xilinx/xrt/lib//libxilinxopencl.so: undefined reference to `boost::system::generic_category()'
/opt/xilinx/xrt/lib//libxilinxopencl.so: undefined reference to `boost::filesystem::path::operator/=(boost::filesystem::path const&)'
/opt/xilinx/xrt/lib//libxilinxopencl.so: undefined reference to `boost::filesystem::path::parent_path() const'
collect2: error: ld returned 1 exit status
make: *** [jykim3.exe] Error 1

03:04:03 Build Finished (took 22s.349ms)

0 Kudos
2 Replies
kmorris
Xilinx Employee
Xilinx Employee
726 Views
Registered: ‎01-11-2011

Hi @nediver, just as a double-check, did you source the SDx tools via the /tools/Xilinx/SDx/2018.3/settings64.sh script, or are you manually launching these tools from their direct path? The libboost_filesystem.so file resides in the /tools/Xilinx/SDx/2018.3/lib/lnx64.o folder. Sourcing the settings script should set up the environment variables to point to this location.

-------------------------------------------------------------------------
Please don’t forget to reply, kudo, and accept as solution!
-------------------------------------------------------------------------
hongh
Moderator
Moderator
690 Views
Registered: ‎11-04-2010

Hi, @nediver , 

Please also confirm you have installed Ubuntu Packages required in UG1238.

////////

Required Ubuntu Packages
The following packages should be installed with apt-get install command. For example:
sudo apt-get install ocl-icd-libopencl1.deb

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos