Fail to build ERT of XRT 2021.1

Open
#7,444 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start by reproducing the ERT build and inspecting the ERT_VERSION definition used while compiling src/runtime_src/ert/scheduler/scheduler.cpp. Check the related build rules in src/runtime_src/ert/scheduler/scheduler.mk and the generated CMake build output, then verify that the ERT target builds successfully without the reported numeric-literal error.

Written by the indexing model from the issue text.

Description

When I build XRT 2021.1 including ERT, I get the following error of ERT. What should I do to solve it?

/home/yellowd/Documents/XRT/XRT-2021.1/src/runtime_src/ert/scheduler/scheduler.cpp: In function 'bool ert::cu_stat(ert::size_type)': <command-line>: error: unable to find numeric literal operator 'operator""x' /home/yellowd/Documents/XRT/XRT-2021.1/src/runtime_src/ert/scheduler/scheduler.cpp:919:47: note: in expansion of macro 'ERT_VERSION' 919 | write_reg(slot.slot_addr + (pkt_idx++ << 2),ERT_VERSION); | ^~~~~~~~~~~ <command-line>: note: use '-fext-numeric-literals' to enable more built-in suffixes /home/yellowd/Documents/XRT/XRT-2021.1/src/runtime_src/ert/scheduler/scheduler.cpp:919:47: note: in expansion of macro 'ERT_VERSION' 919 | write_reg(slot.slot_addr + (pkt_idx++ << 2),ERT_VERSION); | ^~~~~~~~~~~ /home/yellowd/Documents/XRT/XRT-2021.1/src/runtime_src/ert/scheduler/scheduler.mk:23: recipe for target '/home/yellowd/Documents/XRT/XRT-2021.1/build/Debug/runtime_src/ert/scheduler/legacy/scheduler.o' failed make[3]: *** [/home/yellowd/Documents/XRT/XRT-2021.1/build/Debug/runtime_src/ert/scheduler/legacy/scheduler.o] Error 1 runtime_src/ert/scheduler/CMakeFiles/scheduler.dir/build.make:76: recipe for target 'runtime_src/ert/scheduler/legacy/sched.bin' failed make[2]: *** [runtime_src/ert/scheduler/legacy/sched.bin] Error 2 CMakeFiles/Makefile2:1771: recipe for target 'runtime_src/ert/scheduler/CMakeFiles/scheduler.dir/all' failed make[1]: *** [runtime_src/ert/scheduler/CMakeFiles/scheduler.dir/all] Error 2

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.