ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i am a new user of systemc and during installation process, on using "make", i am getting this error.
Making all in src
make[1]: Entering directory `/home/amritesh/Downloads/systemc-2.2.0/objdir/src'
Making all in sysc
make[2]: Entering directory `/home/amritesh/Downloads/systemc-2.2.0/objdir/src/sysc'
Making all in kernel
make[3]: Entering directory `/home/amritesh/Downloads/systemc-2.2.0/objdir/src/sysc/kernel'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/amritesh/Downloads/systemc-2.2.0/objdir/src/sysc/kernel'
Making all in qt
make[3]: Entering directory `/home/amritesh/Downloads/systemc-2.2.0/objdir/src/sysc/qt'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/amritesh/Downloads/systemc-2.2.0/objdir/src/sysc/qt'
Making all in communication
make[3]: Entering directory `/home/amritesh/Downloads/systemc-2.2.0/objdir/src/sysc/communication'
g++ -I. -I. -I../../../../src/sysc/communication -I../../../../src -Wall -DSC_INCLUDE_FX -O3 -c -o sc_signal.o `test -f '../../../../src/sysc/communication/sc_signal.cpp' || echo '../../../../src/sysc/communication/'`../../../../src/sysc/communication/sc_signal.cpp
In file included from ../../../../src/sysc/datatypes/bit/sc_bv_base.h:50:0,
from ../../../../src/sysc/datatypes/bit/sc_lv_base.h:56,
from ../../../../src/sysc/communication/sc_signal.cpp:102:
../../../../src/sysc/datatypes/bit/sc_bit_proxies.h:716:16: error: reference ‘m_obj’ cannot be declared ‘mutable’ [-fpermissive]
../../../../src/sysc/datatypes/bit/sc_bit_proxies.h:1193:18: error: reference ‘m_left’ cannot be declared ‘mutable’ [-fpermissive]
../../../../src/sysc/datatypes/bit/sc_bit_proxies.h:1194:18: error: reference ‘m_right’ cannot be declared ‘mutable’ [-fpermissive]
../../../../src/sysc/datatypes/bit/sc_bit_proxies.h:1196:18: error: reference ‘m_refs’ cannot be declared ‘mutable’ [-fpermissive]
In file included from ../../../../src/sysc/communication/sc_signal.cpp:102:0:
../../../../src/sysc/datatypes/bit/sc_lv_base.h: In member function ‘sc_dt::sc_logic_value_t sc_dt::sc_lv_base::get_bit(int) const’:
../../../../src/sysc/datatypes/bit/sc_lv_base.h:309:88: warning: suggest parentheses around arithmetic in operand of ‘|’ [-Wparentheses]
make[3]: *** [sc_signal.o] Error 1
make[3]: Leaving directory `/home/amritesh/Downloads/systemc-2.2.0/objdir/src/sysc/communication'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/amritesh/Downloads/systemc-2.2.0/objdir/src/sysc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/amritesh/Downloads/systemc-2.2.0/objdir/src'
make: *** [all-recursive] Error 1
can anybody please help me in resolving this problem?
...did you run the confiigure first? I do not know THIS package, but if you want to build/compile anything, there has to be a configuration file. From there on (the feedback of the configure tool) you can figure out what your system (still) needs to adhere to for the software to run...
$ mv systemc-2.2.0.tgz systemc-2.2.0.tar
$ tar xvf systemc-2.2.0.tar
$ cd systemc-2.2.0
$ sudo mkdir /usr/local/systemc
$ mkdir objdir
$ cd objdir
$ export CXX=g++
$ sudo ../configure --prefix=/usr/local/systemc
Step 2: Patch.
Using new versions of GCC such as GCC 4.4, we will fail to compile because 2 lines of code were left out of systemc-2.2.0/src/sysc/utils/sc_utils_ids.cpp.
Method 1: You can just just open the file and add these includes at the of the file:
#include "cstdlib"
#include "cstring"
#include "sysc/utils/sc_report.h"
using namespace std;
Step 3: Compile
$ make -
this is where i am getting this error.
For starters, dont compile anything outside your home folder. It makes for a cleaner deploy that way. Make a folder IN your home folder (say "makefolder") and work in there. I suspect you not to have system rights to compile anywhere else...
In short, these are the steps I (usually) take:
- download to a /download folder
- copy to a make folder untar configure and make in there, as a regular (non-root) user, you're alloed to do that
- enter su - (hyphen is important) and supply the root pass
- navigate to the home folder (most distros I use put you in the /root folder after you log in as super user) and there (as root)
- supply the "make install" command, after that I issue an exit...
I suspect this to be the case...
By the way, is that a C variant? I did a lookup and Arch (my distro) does not have it in the "shop" - if it is a C variant, is there a good reason to use it? If so, look in the repo for a compiled/prepped/suitable version first before compiling anything...
Good luck
Thor
Last edited by ButterflyMelissa; 03-18-2012 at 05:10 AM.
Dont panic try to supply the answers to knudfl's questions. In order for us to help you, we need some info. During this thread, you may need to run some stuff (in the console) and post the feedback here. Remember, we're basically blind here
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.