Skip to content

build fails with undefined reference to `simpoint_roi' #71

Description

@yswntht

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: 3e95064
(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 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions