chipsalliance / chipsalliance/dromajo
build fails with undefined reference to `simpoint_roi'
- Dominant language
- C++
- Stars
- 244
- Forks
- 69
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
When I was try to build dromajo with simpoint flag as following, the build fails. can you please help with this issue? I'm using the latest commit: 3e9506409dfa693b2e278e699619bcbc7d0b196e
(HEAD -> master, origin/master, origin/HEAD)
Author: Tommy Thorn
Date: Thu Mar 2 12:02:11 2023 -0800
********************************************************************************************
`dromajo/build_simpoint - [master] $ cmake -DSIMPOINT=On ../`
-- The C compiler identification is GNU 8.5.0
-- The CXX compiler identification is GNU 8.5.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: dromajo/build_simpoint
dromajo/build_simpoint - [master] $ make
[ 85%] Building CXX object CMakeFiles/dromajo.dir/src/dromajo.cpp.o
[ 90%] Linking CXX executable dromajo
[ 90%] Built target dromajo
[ 95%] Building CXX object CMakeFiles/dromajo_cosim_test.dir/src/dromajo_cosim_test.cpp.o
[100%] Linking CXX executable dromajo_cosim_test
libdromajo_cosim.a(riscv_cpu.cpp.o): In function `csr_write(RISCVCPUState*, unsigned int, unsigned int, unsigned long)':
dromajo/src/riscv_cpu.cpp:1878: undefined reference to `simpoint_roi'
dromajo/src/riscv_cpu.cpp:1880: undefined reference to `simpoint_roi'
dromajo/src/riscv_cpu.cpp:1882: undefined reference to `simpoint_roi'
dromajo/src/riscv_cpu.cpp:1883: undefined reference to `simpoint_roi'
dromajo/src/riscv_cpu.cpp:1887: undefined reference to `simpoint_roi'
Thanks.
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the failure with `cmake -DSIMPOINT=On ../` followed by `make` in the `build_simpoint` directory. Start by inspecting the `simpoint_roi` references in `src/riscv_cpu.cpp` and the build configuration used by CMake. Done means the SIMPOINT-enabled build links both executables without undefined-reference errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100