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 tommy-github2@thorn.ws
Date: Thu Mar 2 12:02:11 2023 -0800
-- 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 tosimpoint_roi'
dromajo/src/riscv_cpu.cpp:1882: undefined reference to simpoint_roi' dromajo/src/riscv_cpu.cpp:1883: undefined reference tosimpoint_roi'
dromajo/src/riscv_cpu.cpp:1887: undefined reference to `simpoint_roi'
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 tommy-github2@thorn.ws 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 tosimpoint_roi' dromajo/src/riscv_cpu.cpp:1883: undefined reference to
simpoint_roi' dromajo/src/riscv_cpu.cpp:1887: undefined reference to `simpoint_roi'Thanks.