Wednesday, April 13, 2016

Problem Link SystemC Dalam Modelsim

PROBLEM :

 Model Technology ModelSim SE-64 sccom 6.5f compiler 2010.06 Jun 16 2010
# ** Warning: (sccom-6148) Unrecognized Linux operating system.
#
#
# /home/mul/modeltech/gcc-4.1.2-linux_x86_64/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.1.2/ld: crti.o: No such file: No such file or directory
# collect2: ld returned 1 exit status
# ** Error: (sccom-6126) Linking failed. Creation of work/systemc.so failed.
#
# ** Error: /home/mul/modeltech/linux_x86_64/sccom failed.
# Error in macro ./run.do line 43
# /home/mul/modeltech/linux_x86_64/sccom failed.
#     while executing
# "sccom -scv -link"


SOLUTION :

mul@mul-ubuntu-14:~$ sudo find /usr/ -name crti*
[sudo] password for mul:

/usr/libx32/crti.o
/usr/lib/debug/usr/lib/x86_64-linux-gnu/crti.o
/usr/lib/x86_64-linux-gnu/crti.o
/usr/lib32/crti.o


mul@mul-ubuntu-14:~$ LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:$LIBRARY_PATH 
mul@mul-ubuntu-14:~$ export LIBRARY_PATH

atau tulis dalam .bashrc :

export LIBRARY_PATH:$LIBRARY_PATH=/usr/lib/x86_64-linux-gnu

No comments: