Jump to content

Recommended Posts

 

  Choices of greetings to everyone  here.

 I am trying to install on my system systemc verification, scv-2.0.1, but I am getting error when I tried to build the source.  The error is this"

One error generate:

make[2]: *** [Makefile:528: libscv_la-scv_debug.lo] Error 1

...

make: *** [Makefile:484: all-recursive] Error 1

I googled and I found this:  

sc_dt::sc_logic_value_t(this->_get_instance()->get_bit(i))

But  I do not know where this must be inserted or put.

 Any help will be appreciated

with best regards

Gebreselema

Link to comment
Share on other sites

  I did this:

   root  ../configure --prefix=/usr/local/scv-2.0.1  --with-systemc=/usr/local/systemc-2.3.4 and I got this the following output:

      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gmake[2]: *** [Makefile:514: libscv_la-scv_constraint.lo] Error 1
gmake[2]: Leaving directory '/home/gebreselema/myinstalls/mysystemc/systemccore/scv-2.0.1/scvdir/src/scv'
gmake[1]: *** [Makefile:440: all-recursive] Error 1
gmake[1]: Leaving directory '/home/gebreselema/myinstalls/mysystemc/systemccore/scv-2.0.1/scvdir/src'
gmake: *** [Makefile:484: all-recursive] Error 1

 

Link to comment
Share on other sites

Hi Gebreselema,

- Which compiler + version did you use for the SystemC build and for the SCV build (I assume you used the same for both)?

- Can you post the full output of the configure command (or attach it as a log file)?

- Can you post the full output of the make command (or attach it as a log file)?

We still miss sufficient relevant output to debug your issue. Thanks.

 

--

Bas

Link to comment
Share on other sites

  This is the configuration output.  I used both g++ with the systemc and I have tried using gcc and g++  for scv: This one is using g++

../configure --prefix=/usr/local/scv-2.0.1 --with-systemc=/usr/local/systemc-2.3.4
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking support 32-bit host compilation using 64-bit tools... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... yes
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking make for GNU make... found 4.3 which is OK
checking for GNU ld... yes
checking for supported C++ compiler... configure: WARNING: gcc 11.3 is not a supported version (i.e. (3.2|3.4|4.1|4.2|4.3|4.4|4.5|4.6|4.7|4.8|4.9|5.4|6.1|6.3)).  Beware.
checking for supported operating system... linux-gnu is supported
setting compiler flags for Linux/x86_64
setting compiler flags for g++
setting library options for g++ on Linux/x86_64
checking for working C++ compiler... ok
checking size of int... 4
checking size of long... 8
checking size of void *... 8
checking for /usr/local/systemc-2.3.4/lib-linux64/libsystemc.a... yes
checking for /usr/local/systemc-2.3.4/include/systemc.h... yes
checking for SystemC version... 2003004
configure: WARNING: SCV has only been tested with Accellera SystemC 2.2.0--2.3.2 (2002000--2003002)
checking for absolute path prefix and that it exists... yes, OK
checking whether documentation needs to be installed... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating docs/Makefile
config.status: creating docs/scv/Makefile
config.status: creating examples/Makefile
config.status: creating examples/data_structures/Makefile
config.status: creating examples/data_structures/scv_bag/Makefile
config.status: creating examples/data_structures/scv_sparse_array/Makefile
config.status: creating examples/extensions/Makefile
config.status: creating examples/extensions/ex_01_userdata/Makefile
config.status: creating examples/extensions/ex_02_enumdata/Makefile
config.status: creating examples/extensions/ex_03_nestdata/Makefile
config.status: creating examples/extensions/introspection1/Makefile
config.status: creating examples/extensions/private/Makefile
config.status: creating examples/general/Makefile
config.status: creating examples/general/hello/Makefile
config.status: creating examples/randomization/Makefile
config.status: creating examples/randomization/constraints/Makefile
config.status: creating examples/randomization/debug/Makefile
config.status: creating examples/randomization/ex_04_simplerand/Makefile
config.status: creating examples/randomization/ex_05_disablerand/Makefile
config.status: creating examples/randomization/ex_07_seedfile/Makefile
config.status: creating examples/randomization/ex_08_dist/Makefile
config.status: creating examples/randomization/ex_09_distrange/Makefile
config.status: creating examples/randomization/ex_10_basicconstraint/Makefile
config.status: creating examples/randomization/ex_11_softconstraint/Makefile
config.status: creating examples/randomization/ex_12_hier_constraint/Makefile
config.status: creating examples/randomization/ex_13_custom_next/Makefile
config.status: creating examples/randomization/pythagoras/Makefile
config.status: creating examples/transactions/Makefile
config.status: creating examples/transactions/overview/Makefile
config.status: creating src/Makefile
config.status: creating src/scv.pc
config.status: creating src/cudd/Makefile
config.status: creating src/cudd/2.3.0/Makefile
config.status: creating src/cudd/2.3.0/cudd/Makefile
config.status: creating src/cudd/2.3.0/cudd/doc/Makefile
config.status: creating src/cudd/2.3.0/cudd/doc/icons/Makefile
config.status: creating src/cudd/2.3.0/dddmp/Makefile
config.status: creating src/cudd/2.3.0/dddmp/doc/Makefile
config.status: creating src/cudd/2.3.0/mtr/Makefile
config.status: creating src/cudd/2.3.0/mtr/doc/Makefile
config.status: creating src/cudd/2.3.0/util/Makefile
config.status: creating src/cudd/2.3.0/st/Makefile
config.status: creating src/cudd/2.3.0/st/doc/Makefile
config.status: creating src/cudd/2.3.0/obj/Makefile
config.status: creating src/cudd/2.3.0/nanotrav/Makefile
config.status: creating src/cudd/2.3.0/nanotrav/doc/Makefile
config.status: creating src/cudd/2.3.0/mnemosyne/Makefile
config.status: creating src/cudd/2.3.0/sis/Makefile
config.status: creating src/scv/Makefile
config.status: creating config/config.h
config.status: config/config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
gebreselema@system76-pc:~/myinstalls/mysys

Link to comment
Share on other sites

 This is the cut out from the out of the  compiler:

 _SCV_EXT_RW_FC_COMMON_SYSC_D \
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../src/scv/_scv_ext_rw.h:472:1: note: in expansion of macro '_SCV_EXT_RW_FC_D'
  472 | _SCV_EXT_RW_FC_D(sc_bv_base,sc_bv_base)
      | ^~~~~~~~~~~~~~~~
../../../src/scv/_scv_ext_rw.h:347:26: error: 'sc_lv_base' has not been declared
  347 |   virtual void get_value(sc_lv_base& v) const;
      |                          ^~~~~~~~~~
../../../src/scv/_scv_ext_rw.h:398:3: note: in expansion of macro '_SCV_EXT_RW_FC_COMMON_SYSC_D'
  398 |   _SCV_EXT_RW_FC_COMMON_SYSC_D \
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../src/scv/_scv_ext_rw.h:472:1: note: in expansion of macro '_SCV_EXT_RW_FC_D'
  472 | _SCV_EXT_RW_FC_D(sc_bv_base,sc_bv_base)
      | ^~~~~~~~~~~~~~~~
../../../src/scv/_scv_ext_rw.h:347:16: error: 'virtual void _scv_extension_rw_sc_bv_base::get_value(int&) const' cannot be overloaded with 'virtual void _scv_extension_rw_sc_bv_base::get_value(int&) const'
  347 |   virtual void get_value(sc_lv_base& v) const;
      |                ^~~~~~~~~
../../../src/scv/_scv_ext_rw.h:398:3: note: in expansion of macro '_SCV_EXT_RW_FC_COMMON_SYSC_D'
  398 |   _SCV_EXT_RW_FC_COMMON_SYSC_D \
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../src/scv/_scv_ext_rw.h:472:1: note: in expansion of macro '_SCV_EXT_RW_FC_D'
  472 | _SCV_EXT_RW_FC_D(sc_bv_base,sc_bv_base)
      | ^~~~~~~~~~~~~~~~
../../../src/scv/_scv_ext_rw.h:345:16: note: previous declaration 'virtual void _scv_extension_rw_sc_bv_base::get_value(int&) const'
  345 |   virtual void get_value(sc_bv_base& v) const; \
      |                ^~~~~~~~~
../../../src/scv/_scv_ext_rw.h:398:3: note: in expansion of macro '_SCV_EXT_RW_FC_COMMON_SYSC_D'
  398 |   _SCV_EXT_RW_FC_COMMON_SYSC_D \
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../src/scv/_scv_ext_rw.h:472:1: note: in expansion of macro '_SCV_EXT_RW_FC_D'
  472 | _SCV_EXT_RW_FC_D(sc_bv_base,sc_bv_base)
      | ^~~~~~~~~~~~~~~~
../../../src/scv/_scv_ext_rw.h:472:18: error: 'sc_bv_base' does not name a type; did you mean 'scv_bag'?
  472 | _SCV_EXT_RW_FC_D(sc_bv_base,sc_bv_base)
      |                  ^~~~~~~~~~
../../../src/scv/_scv_ext_rw.h:399:9: note: in definition of macro '_SCV_EXT_RW_FC_D'
  399 |   const basic_type& read(); \
      |         ^~~~~~~~~~
../../../src/scv/_scv_ext_rw.h:472:18: error: 'sc_bv_base' does not name a type; did you mean 'scv_bag'?
  472 | _SCV_EXT_RW_FC_D(sc_bv_base,sc_bv_base)

      |                  ^~~~~~~~~~
../../../src/scv/_scv_ext_rw.h:400:20: note: in definition of macro '_SCV_EXT_RW_FC_D'
  400 |   void write(const basic_type& rhs); \
      |                    ^~~~~~~~~~
../../../src/scv/_scv_ext_rw.h:472:18: error: 'sc_bv_base' does not name a type; did you mean 'scv_bag'?
  472 | _SCV_EXT_RW_FC_D(sc_bv_base,sc_bv_base)
      |                  ^~~~~~~~~~
../../../src/scv/_scv_ext_rw.h:403:3: note: in definition of macro '_SCV_EXT_RW_FC_D'
  403 |   basic_type * _instance; \
      |   ^~~~~~~~~~
../../../src/scv/_scv_ext_rw.h:472:18: error: 'sc_bv_base' was not declared in this scope; did you mean 'sc_dt::sc_bv_base'?
  472 | _SCV_EXT_RW_FC_D(sc_bv_base,sc_bv_base)
      |                  ^~~~~~~~~~

                                                                                                              .

                                                                                                              .

                                                                                                              .

 

../../../src/scv/scv_constraint.cpp:3676:42: error: no matching function for call to '_scv_constraint_range_generator_base_sc_signed::_scv_constraint_range_generator_base_sc_signed(sc_dt::sc_signed&, sc_dt::sc_signed&, scv_shared_ptr<scv_random>, const char*)'
 3676 |      lb, ub, get_random(s), s->get_name());
      |                                          ^
In file included from ../../../src/scv/_scv_randomization.h:46,
                 from ../../../src/scv/_scv_ext_rand.h:47,
                 from ../../../src/scv/_scv_ext_comp.h:161,
                 from ../../../src/scv/scv_introspection.h:434,
                 from ../../../src/scv/scv_constraint.h:69,
                 from ../../../src/scv/scv_constraint.cpp:47:
../../../src/scv/scv_constraint_range.h:424:3: note: candidate: '_scv_constraint_range_generator_base_sc_signed::_scv_constraint_range_generator_base_sc_signed(const _scv_constraint_range_generator_base_sc_signed&, const char*)'
  424 |   _scv_constraint_range_generator_base_ ## TypeId(const _scv_constraint_range_generator_base_ ## TypeId& rhs,  \
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../src/scv/scv_constraint_range.h:424:3: note: in definition of macro '_SCV_CONSTRAINT_RANGE_GENERATOR_FC_D'
  424 |   _scv_constraint_range_generator_base_ ## TypeId(const _scv_constraint_range_generator_base_ ## TypeId& rhs,  \
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../src/scv/scv_constraint_range.h:424:3: note:   candidate expects 2 arguments, 4 provided
  424 |   _scv_constraint_range_generator_base_ ## TypeId(const _scv_constraint_range_generator_base_ ## TypeId& rhs,  \
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../src/scv/scv_constraint_range.h:424:3: note: in definition of macro '_SCV_CONSTRAINT_RANGE_GENERATOR_FC_D'
  424 |   _scv_constraint_range_generator_base_ ## TypeId(const _scv_constraint_range_generator_base_ ## TypeId& rhs,  \
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../src/scv/scv_constraint_range.h:422:3: note: candidate: '_scv_constraint_range_generator_base_sc_signed::_scv_constraint_range_generator_base_sc_signed(const int&, const int&, scv_shared_ptr<scv_random>, const char*)'
  422 |   _scv_constraint_range_generator_base_ ## TypeId(const EltT& lb, const EltT& ub,  \
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../src/scv/scv_constraint_range.h:422:3: note: in definition of macro '_SCV_CONSTRAINT_RANGE_GENERATOR_FC_D'
  422 |   _scv_constraint_range_generator_base_ ## TypeId(const EltT& lb, const EltT& ub,  \
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../src/scv/scv_constraint_range.h:422:63: note:   no known conversion for argument 1 from 'sc_dt::sc_signed' to 'const int&'
  422 |   _scv_constraint_range_generator_base_ ## TypeId(const EltT& lb, const EltT& ub,  \
      |                                                   ~~~~~~~~~~~~^~
../../../src/scv/scv_constraint_range.h:529:1: note: in expansion of macro '_SCV_CONSTRAINT_RANGE_GENERATOR_FC_D'
  529 | _SCV_CONSTRAINT_RANGE_GENERATOR_FC_D(sc_signed ,sc_signed ,sc_unsigned,true,_scv_random_unsigned_big);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../src/scv/scv_constraint_range.h:412:7: note: candidate: '_scv_constraint_range_generator_base_sc_signed::_scv_constraint_range_generator_base_sc_signed(const _scv_constraint_range_generator_base_sc_signed&)'
  412 | class _scv_constraint_range_generator_base_ ## TypeId {  \
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../src/scv/scv_constraint_range.h:412:7: note: in definition of macro '_SCV_CONSTRAINT_RANGE_GENERATOR_FC_D'
  412 | class _scv_constraint_range_generator_base_ ## TypeId {  \
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../src/scv/scv_constraint_range.h:412:7: note:   candidate expects 1 argument, 4 provided
  412 | class _scv_constraint_range_generator_base_ ## TypeId {  \
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../src/scv/scv_constraint_range.h:412:7: note: in definition of macro '_SCV_CONSTRAINT_RANGE_GENERATOR_FC_D'
  412 | class _scv_constraint_range_generator_base_ ## TypeId {  \
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gmake[2]: *** [Makefile:514: libscv_la-scv_constraint.lo] Error 1
gmake[2]: Leaving directory '/home/gebreselema/myinstalls/mysystemc/systemccore/scv-2.0.1/scvdir/src/scv'
gmake[1]: *** [Makefile:440: all-recursive] Error 1
gmake[1]: Leaving directory '/home/gebreselema/myinstalls/mysystemc/systemccore/scv-2.0.1/scvdir/src'
gmake: *** [Makefile:484: all-recursive] Error 1
gebreselema@system76-pc:~/myinstalls/mysystemc/syst

Link to comment
Share on other sites

 

Compiler versions are the following:

 

g++ (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
 

gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
 

Link to comment
Share on other sites

I just tried it out with g++/gcc 11.1.0, SCV 2.0.1, SystemC 2.3.4 on RedHat EL7. This worked, although I had to recreate the SystemC 2.3.4 configure script. I suspect that your SystemC installation is not fully correct, giving the errors on `sc_bv_base` and `sc_lv_base`.

Could you please try the following and tell me whether it works or where it breaks for you.

$ mkdir -p $HOME/tryout/src && cd $HOME/tryout/src

$ tar zxf <your_path_to>/systemc-2.3.4.tar.gz

$ tar zxf <your_path_to>/scv-2.0.1.tar.gz

$ cd systemc-2.3.4

$ ./config/bootstrap

$ mkdir objdir && cd objdir

$ ../configure --prefix=$HOME/tryout/install/systemc-2.3.4

$ make -j check

$ make -j install

$ cd ../../scv-2.0.1

$ mkdir objdir && cd objdir

$ ../configure --prefix=$HOME/tryout/install/scv-2.0.1 --with-systemc=$HOME/tryout/install/systemc-2.3.4

$ make -j check

 

--

Bas

Link to comment
Share on other sites

Thank you so much  Bas Arts, appreciated.    I did not  understand this one, $ mkdir -p $HOME/tryout/src && cd $HOME/tryout/src

Note: There is no problem with Systemc-2.3.4. I have successfully installed Systemc-2.3.4 and Systemc-AMS-2.3.1. My only problem is installing scv-2.0.1.  Note, my OS, Ubuntu 22.04 LTS and I have 11.3  GCC and g++.  If you can explain what the $ mkdir -p $HOME/tryout/src && cd $HOME/tryout/src, meant to be, I can try to install scv-2.0.1 .

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...