Jump to content

Recommended Posts

hi i am getting the following error while running makefile

 

lord@lord-Inspiron-N5050:~/systemc-2.3.1/examples/sysc$ gmake -f Makefile.all TARGET_ARCH=linux64 run
gmake[1]: Entering directory `/home/lord/systemc-2.3.1/examples/sysc/fir'
gmake[2]: Entering directory `/home/lord/systemc-2.3.1/examples/sysc/fir'
../Makefile.rules:99: *** SystemC library [/usr/local/systemc230//lib-linux64] not found. Please update Makefile.config.  Stop.
gmake[2]: Leaving directory `/home/lord/systemc-2.3.1/examples/sysc/fir'
gmake[2]: Entering directory `/home/lord/systemc-2.3.1/examples/sysc/fir'
../Makefile.rules:99: *** SystemC library [/usr/local/systemc230//lib-linux64] not found. Please update Makefile.config.  Stop.
gmake[2]: Leaving directory `/home/lord/systemc-2.3.1/examples/sysc/fir'
gmake[1]: *** [run] Error 2
gmake[1]: Leaving directory `/home/lord/systemc-2.3.1/examples/sysc/fir'
gmake: *** [run] Error 2
 

Link to post
Share on other sites

You might be missing the PATH to SystemC Library . In makefile please check for the variable which is used to mention Library Paths and add it.  You can also edit your .bashrc file

 

export LD_SYSTEMC=/home/systemC/systemc-2.2.0/lib-linux/
export CPLUS_INCLUDE_PATH=/home/systemC/systemc-2.2.0/include/

Link to post
Share on other sites

@kartikkg is correct; however, which variables are missing is highly dependent on your makefile. Many systemc designs I encounter have the variables SYSTEMC or SYSTEMC_HOME and TARGET_ARCH. Also, if you are using csh or tcsh, then the .bashrc file won't help because you need to modify the .cshrc file with something like:

 

setenv SYSTEMC /path/to/your/systemc/installation/directory

setenv TARGET_ARCH linux ;#<< or linux64

 

For Linux, SystemC must be compiled and installed per the instructions in the download.

Link to post
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...