Jagan Posted May 23, 2022 Report Share Posted May 23, 2022 Hello, I am new to UVM SystemC setup. I have installed systemc-2.3.2 & uvm-systemc-1.0-beta4 I don't see any errors while installing the above two. In SystemC installation, I tried: 1. configure --with-systemc=/Users/jaganradha/systemc-2.3.2 2. make 3. make check - In this step, I started getting errors like below: (This is the first error I have copy pasted) error: use of undeclared identifier 'paddr' sc_core::sc_signal<sc_dt::sc_lv<32>> paddr; Any idea how to take care of this? I am running on Mac Book air: MacOS Monterey - version 12.3.1 Can some one help me on this? Thanks Jagan Quote Link to comment Share on other sites More sharing options...
Stephan Gerth Posted May 23, 2022 Report Share Posted May 23, 2022 Hi Jagan! Can you provide some information from the output and/or logs which test actually fails? Quote Link to comment Share on other sites More sharing options...
Jagan Posted May 23, 2022 Author Report Share Posted May 23, 2022 Hi Stephen, it is compile error. Here is the error: simple/registers/models/fifo_reg/src/../inc/../../../../../integrated/apb/inc/apb_if.h:45:46: error: use of undeclared identifier 'paddr' sc_core::sc_signal<sc_dt::sc_lv<32>> paddr; ^ simple/registers/models/fifo_reg/src/../inc/../../../../../integrated/apb/inc/apb_if.h:45:51: error: expected a type sc_core::sc_signal<sc_dt::sc_lv<32>> paddr; ^ simple/registers/models/fifo_reg/src/../inc/../../../../../integrated/apb/inc/apb_if.h:49:43: warning: use of right-shift operator ('>>') in template argument will require parentheses in C++11 [-Wc++11-compat] sc_core::sc_signal<sc_dt::sc_lv<32>> prdata; ^ simple/registers/models/fifo_reg/src/../inc/../../../../../integrated/apb/inc/apb_if.h:49:46: error: use of undeclared identifier 'prdata' sc_core::sc_signal<sc_dt::sc_lv<32>> prdata; ^ simple/registers/models/fifo_reg/src/../inc/../../../../../integrated/apb/inc/apb_if.h:49:52: error: expected a type sc_core::sc_signal<sc_dt::sc_lv<32>> prdata; Thanks Jagan Quote Link to comment Share on other sites More sharing options...
Stephan Gerth Posted May 24, 2022 Report Share Posted May 24, 2022 Thanks Jagan! As I'm not familiar MacOS, can you provide what compiler + version are you using? Quote Link to comment Share on other sites More sharing options...
Jagan Posted May 24, 2022 Author Report Share Posted May 24, 2022 I see CXX = g++ in the Makefile under: /home/jaganradha/uvm-systemc-1.0-beta4 When I did g++ --version, I am getting the following: g++ --version Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1 Apple clang version 11.0.3 (clang-1103.0.32.59) Target: x86_64-apple-darwin21.4.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin I am assuming it should be using g++ version 4.2.1 Thanks Jagan Quote Link to comment Share on other sites More sharing options...
Stephan Gerth Posted May 29, 2022 Report Share Posted May 29, 2022 This seems a bit strange as GCC 4.2.1 would be horribly out of date while your Xcode/Clang dates from 2020. Anyway, can you please try to change the affected lines as shown and report back? sc_core::sc_signal<sc_dt::sc_lv<32>> paddr to sc_core::sc_signal<sc_dt::sc_lv<32> > paddr Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.