Jump to content

Makefile error


Lordwin

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...