Viet Hoang Posted April 13, 2020 Report Share Posted April 13, 2020 I've build a systemC environment and now I want to get the coverage. I found that this library could be used. I'm trying to install FC4SC library (https://github.com/amiq-consulting/fc4sc) And this is tested by google test. when I do following the guideline (https://github.com/amiq-consulting/fc4sc/blob/master/docs/FC4SC_User_Guide.pdf) on page 13 At the beginning I use the command "cmake -DBUILD_GTEST=ON BUILD_GTEST -DBUILD_SHARED_LIBS=ON .." as the guideline shows, and it doesn't work, it the show as below: -bash $'cmake\342\200\213 command not found Then I realized that cmake has been installed and it should be used by run cmake.exe, and it shows like this cmake -DBUILD_GTEST=ON BUILD_GTEST -DBUILD_SHARED_LIBS=ON .. -- The C compiler identification is GNU 9.3.0 -- The CXX compiler identification is GNU 9.3.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- broken CMake Error at /usr/share/cmake-3.14.5/Modules/CMakeTestCCompiler.cmake:60 (message): The C compiler "/usr/bin/cc" is not able to compile a simple test program. It fails with the following output: Change Dir: /cygdrive/d/SystemC/7_UVM/Coverage/fc4sc-master/test/googletest/build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make.exe cmTC_694fb/fast CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:4 (project) -- Configuring incomplete, errors occurred! See also "/cygdrive/d/SystemC/7_UVM/Coverage/fc4sc-master/test/googletest/build/CMakeFiles/CMakeOutput.log". See also "/cygdrive/d/SystemC/7_UVM/Coverage/fc4sc-master/test/googletest/build/CMakeFiles/CMakeError.log". The CMakeError.log is attached to this post I tried to reinstall compiler and some other component that could be relevant, I found some topic has similar situation but there's no hope. Could anyone help me overcome this? CMakeError.log Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.