Fail to build ERT of XRT 2021.1
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Xilinx/XRT
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
-
Difficulty 4/5 3-5 days Newbie friendliness 70/100
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
Sensor initialization takes very long when `--initial-sim-time` is set to current UNIX timestamp Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
gazebosim/gz-sensors#662 · 1 comment ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
LadybirdBrowser/ladybird#12123 ·