Jump to content

Installing systemc on Ubuntu


Maryam

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?

Link to comment
Share on other sites

  • 2 months later...

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

Link to comment
Share on other sites

  • 3 weeks later...

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

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.

×
×
  • Create New...