intel/systemc-compiler

CMake Error at CMakeLists.txt:28 (svc_target): Unknown CMake command "svc_target".

songlinli0803 opened this issue · 6 comments

Hello,

I have installed icsc, but failed to test the example "counter" with the error below:

CMake Error at CMakeLists.txt:28 (svc_target):
Unknown CMake command "svc_target".

Does anyone have some suggestions? Thanks.

Looks like SVC package is not available. Please check 1) you are using bash terminal, 2) run setenv.sh in installation folder in this terminal, 3) version of cmake >= 3.13 and g++ >= 9.0.0.

Hello mikhailmoiseev,

Thanks for your reply. The problem is solved. In fact, i copy "icsc/cmake/CMakelists.top" to the installation folder and change the name to "CMakelists.txt", and then run cmake ../ and ctest -j8, all goes well!

But now, the new problem is that only 40% test cases pass. For example, the test for all cases in "example", the following tests failed:
2:imm_assert_SYN 4:temp_assert_SYN 6:counter_SYN 8:decoder_SYN 10:DmaEngine_NoSs_SYN 12:dm_paranut_SYN 14:dvcon_simple_SYN 16:dvcon_fifo_SYN 17:dvcon_fifo_DIFF 19:fsm_SYN 21:intrinsic_SYN 23:latch_ff_SYN 25:sct_fifo_shared_SYN 26:sct_fifo_shared_DIFF 28:sct_fifo_single_SYN 29:sct_fifo_single_DIFF 31:sct_target_fifo_SYN 32:sct_target_fifo_DIFF 34:sct_initiator_thread_SYN 35:sct_initiator_thread_DIFF 37:sct_target_method_SYN 38:sct_target_method_DIFF 40:sct_signal_SYN 41:sct_signal_DIFF 43:sct_in_out_ports_SYN 44:sct_in_out_ports_DIFF 46:sct_always_ready_meth_SYN 47:sct_always_ready_meth_DIFF 49:sct_always_ready_thread_SYN 50:sct_always_ready_thread_DIFF

And for example, the test of "counter_BUILD" passed, by nothing was generated in the folder "/examples/counter/sv_out". I really want to know why...

If i run only ctest -R counter, the log file is as below where youcould find the error:
LastTest.log

The problem is solved. In fact, i copy "icsc/cmake/CMakelists.top" to the installation folder and change the name to "CMakelists.txt", and then run cmake ../ and ctest -j8, all goes well!

That is done by install.sh script. Did you use it? If so, looks like installation went wrong. I have checked installation with instal.sh at Ubuntu 22.04 again, it works well.

The current problem from your log is:

/usr/include/wchar.h:35:10: fatal error: 'stddef.h' file not found
#include <stddef.h>

Probably it needs to add path to STD library headers to $PATH. In my Ubuntu 22.04 it is /usr/lib/gcc/x86_64-linux-gnu/11/include

Probably it needs to add path to STD library headers to $PATH. In my Ubuntu 22.04 it is /usr/lib/gcc/x86_64-linux-gnu/11/include

Thanks for your advise, now it works for all examples!

100% tests passed, 0 tests failed out of 50

That is done by install.sh script. Did you use it? If so, looks like installation went wrong. I have checked installation with instal.sh at Ubuntu 22.04 again, it works well.

Just a feedback: I use WSL Ubuntu 22.04, install.sh doesn't work for me due to serveral problems (so i installed ICSC manually). I give some examples here:

  1. tar -xf v3.13.0.tar.gz --skip-old-files this command need add -m, if not, this is a error with 'timestamp' something like this
  2. mkdir build -p && cd build for protobuf, this command will report file already exist, and i found a file named BUILD, so i change the command to mkdir build1 -p && cd build1
  3. I can't 'su' in WSL environment, but some command need add sudo in front.

Thank you for feedback. Will update the install.sh for WSL compatibility.