Jump to content
Maryam

Installing systemc on Ubuntu

Recommended Posts

Hi

I am a beginner.

I'm installing systemc231 on Ubuntu and I have done this

Tar -xzvf systemc-2.3.1.tgz

Cd systemc-2.3.1

Sudo mkdir /usr/local/systemc231

Mkdir objdir

Cd objdir

Export cxx="<compiler>"

Export cxx=g++

Export cxx=clang++

Seven cxx g++

It answers :command not found

Then I continued:

../configure

It took a moment and check something but finally it answered :

Configure:error: in /home/Ubuntu/systemc-2.3.1/objdir':

Configure:error:c++compiler cannot create executables see 'config.log' for more details

And then I continued :

Make

And it answered :

Make:*** no targets specified no makefile found. Stop.

Now what can l do?

Share this post


Link to post
Share on other sites

Hi maryam

Let's start from the beginning...

In the terminal, the command
mv systemc-2.3.1.tgz systemc-2.3.1.tar
will create a folder named systemc-2.3.1 in the same folder as tarball file is present. At
systemc-2.3.1/src/sysc/datatypes/bit there should be a file named sc_bit_proxies.h which contains
the keyword mutable. It specifies that the member which follows does not affect the externally
visible state of the class - this led to linking problems in my first attempt. Therefore, all the occurrences
of mutable should be deleted.
To install the package, the bash can be used again:
cd systemc-2.3.1
sudo mkdir /usr/local/systemc-2.3
mkdir objdir
cd objdir
sudo ../configure prefix=/usr/local/systemc-2.3
sudo make
sudo make install

 

Optionally, the rather long path to the packet’s location can be exported into an environment variable:
export SYSTEMC_HOME=/usr/local/systemc-2.3/
To make the changes permanent, the environment file has to be edited:
sudo gedit /etc/environment
SYSTEMC_HOME=/usr/local/systemc-2.3/
Lastly the path in LD_LIBRARY_PATH needs to be updated:
export LD_LIBRARY_PATH=/usr/local/systemc-2.3/lib-linux64:$LD_LIBRARY_PATH
 

Regards,

Markus

Share this post


Link to post
Share on other sites

To me, the incomplete transcript looks like a broken compiler installation.  Please make sure to install a C++ compiler, e.g.

sudo aptitude install g++-multilib

If that doesn't help, please post a full transcript of the installation steps (your listing contains several typos, which are expected to fail).

 

 

At systemc-2.3.1/src/sysc/datatypes/bit there should be a file named sc_bit_proxies.h which contains
the keyword mutable. It specifies that the member which follows does not affect the externally
visible state of the class - this led to linking problems in my first attempt. Therefore, all the occurrences
of mutable should be deleted.

 

Markus, can you please share some details?  The error you describe should have been fixed in SystemC 2.2.0 and later.

 

Thanks,

  Philipp

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×