[logo] 
 
Home
News
Activity
About/Contact
Major Tools
  Dinotrace
  Verilator
  Verilog-mode
  Verilog-Perl
Other Tools
  BugVise
  CovVise
  Force-Gate-Sim
  Gspice
  IPC::Locker
  Rsvn
  Schedule::Load
  SVN::S4
  Synopsys-modes
  SystemPerl
  Verilog-Pli
  Voneline
  Vregs
General Info
  Papers

Debian packages for Verilator and SystemC 2.3.0

Added by Iztok Jeras 4 months ago

Hi,

I am trying to compile the new SystemC and Verilator for Debian/Ubuntu: https://launchpad.net/~iztok.jeras/+archive/ppa/+packages

In December Accellera published a public review version of SystemC 2.3.0 http://www.accellera.org/downloads/drafts_review/ So I decided to perform this review by attempting to create Ubuntu packages. I have some issues with the packaging, let me just list them (this are not the main reason for this post): 1. make install does not accept DESTDIR, it requires prefix="" instead 2. make check must be run after make install, but Debian is used to run it before 3. some text files and pdf documents are installed dirrectly into /usr

I would also like to prepare a Verilator package with SystemC support enabled, as far as I understand, there are no compile time dependencies, but I would like make check to pass.

Did you find any other issues with the new release?

I will also try to contact developers at Linux distributions that previously attempted to persuade the owners of SystemC sources to fix the issues in the license that prevented SystemC packages from entering distributions. Since the owners changed we might finally have a chance.

Regards, Iztok Jeras


Replies (4)

RE: Debian packages for Verilator and SystemC 2.3.0 - Added by Iztok Jeras 4 months ago

Hi,

I tried to run make test for Verilator. There seems to be an issue with paths, this my be specific for the debian package I created, but is probably not. I did not compare the previous version of SystemC with the current. - This path was not created /usr/include/sysc/include - /usr/include/sysc/lib-linux/libsystemc.a is expected but does not exist, instead /usr/lib-linux/libsystemc.a is present

Regards, Iztok Jeras

This is the log of SystemC tests, tests before this one pass.

make1: Leaving directory `/home/iztokj/Workplace/dpkg/verilator.old/verilator-3.830/test_c' make1: Entering directory `/home/iztokj/Workplace/dpkg/verilator.old/verilator-3.830/test_sc' /usr/bin/perl /home/iztokj/Workplace/dpkg/verilator.old/verilator-3.830/test_sc/../bin/verilator --sc -f /home/iztokj/Workplace/dpkg/verilator.old/verilator-3.830/test_sc/../test_v/input.vc top.v --trace cd obj_dir ; make -j 1 -f ../Makefile_obj preproc make2: Entering directory `/home/iztokj/Workplace/dpkg/verilator.old/verilator-3.830/test_sc/obj_dir' make2: Nothing to be done for `preproc'. make2: Leaving directory `/home/iztokj/Workplace/dpkg/verilator.old/verilator-3.830/test_sc/obj_dir' cd obj_dir ; make -j 3 -f ../Makefile_obj make2: Entering directory `/home/iztokj/Workplace/dpkg/verilator.old/verilator-3.830/test_sc/obj_dir' g++ -I. -MMD -I/home/iztokj/Workplace/dpkg/verilator.old/verilator-3.830/test_sc/../include -I/home/iztokj/Workplace/dpkg/verilator.old/verilator-3.830/test_sc/../include/vltstd -DVL_PRINTF=printf -DVM_TRACE=1 -DVM_COVERAGE=0 -I/usr/include/sysc/include -Wno-deprecated -c -o sc_main.o ../sc_main.cpp make2: *** No rule to make target `/usr/include/sysc/lib-linux/libsystemc.a', needed by `simx'. Stop. make2: *** Waiting for unfinished jobs.... ../sc_main.cpp: In function ‘int sc_main(int, char**)’: ../sc_main.cpp:125:31: error: cannot allocate an object of abstract type ‘VerilatedVcdSc’ /home/iztokj/Workplace/dpkg/verilator.old/verilator-3.830/test_sc/../include/verilated_vcd_sc.h:38:7: note: because the following virtual functions are pure within ‘VerilatedVcdSc’: /usr/include/sysc/tracing/sc_trace.h:159:18: note: virtual void sc_core::sc_trace_file::set_time_unit(double, sc_core::sc_time_unit) make2: *** [sc_main.o] Error 1 make2: Leaving directory `/home/iztokj/Workplace/dpkg/verilator.old/verilator-3.830/test_sc/obj_dir' make1: *** [compile] Error 2 make1: Leaving directory `/home/iztokj/Workplace/dpkg/verilator.old/verilator-3.830/test_sc' make: *** [test_sc] Error 2

RE: Debian packages for Verilator and SystemC 2.3.0 - Added by Wilson Snyder 4 months ago

Verilator builds that path from the setting of $SYSTEMC when you configure, it's misset to probably want /usr instead of /usr/include/sysc.

If the new SystemC puts include and lib in different prefixes, I'll need to make a $SYSTEMC_LIB and $SYSTEMC_INCLUDE variable.

RE: Debian packages for Verilator and SystemC 2.3.0 - Added by Wilson Snyder 4 months ago

I committed fixes for 2.3.0 to git, including allowing SYSTEMC_INCLUDE and SYSTEMC_LIBDIR instead of computing the paths for both based on SYSTEMC and SYSTEMC_ARCH; if you have your scripts set all 4 of those variables before configuring verilator it should work with both old and the next release. I'll work on getting the release ready.

RE: Debian packages for Verilator and SystemC 2.3.0 - Added by Iztok Jeras 4 months ago

Hi,

'make test' is now passing with the following system variables set: export SYSTEMC="/usr/include/sysc" export SYSTEMC_ARCH="linux" export SYSTEMC_INCLUDE="/usr/include/sysc" export SYSTEMC_LIBDIR="/usr/lib-linux"

Also passing is 'make test' with only export SYSTEMC_INCLUDE="/usr/include/sysc" With other system variables not defined but compiled in.

Regards, Iztok Jeras

(1-4/4)