Issues linking xcl_vcu_test.exe in gcc 9.3 clock_gettime

Open
#6,778 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
cmake, cpp
Domain
build-system

Research direction

Start with the CMake link step for xcl_vcu_test.exe and the src/plugin_dec.cpp object named in the failure. Reproduce the gcc 9.3 build in the shown environment, then inspect how the target links clock_gettime. Done means xcl_vcu_test.exe links successfully without the undefined reference or missing DSO error.

Written by the indexing model from the issue text.

Description

Can we use some standard C++ way of measuring time?

#include <chrono>

[ 97%] Linking CXX executable xcl_vcu_test.exe

/scratch/bryanloz/mambaforge/conda-bld/xilinx-runtime_1655485890460/_build_env/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: CMakeFiles/xcl_vcu_test.exe.dir/src/plugin_dec.cpp.o: undefined reference to symbol 'clock_gettime@@GLIBC_2.2.5'
/scratch/bryanloz/mambaforge/conda-bld/xilinx-runtime_1655485890460/_build_env/bin/../lib/gcc/x86_64-conda-linux-gnu/9.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /scratch/bryanloz/mambaforge/conda-bld/xilinx-runtime_1655485890460/_build_env/bin/../x86_64-conda-linux-gnu/sysroot/lib64/librt.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Dominant language
C++
Stars
686
Forks
549
Avg merge
2d 4h
Merged PRs (30d)
70

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Xilinx/XRT

All issues in Xilinx/XRT

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.