adhuliya / ajit-toolchain

Toolchains for AJIT Processor IIT Bombay
8 stars 4 forks source link

Trouble with shared libraries of antlr3runtime in the C model #9

Closed saurabhb17 closed 3 years ago

saurabhb17 commented 3 years ago

I am able to build the C model by doing the following:

  1. source ahir_bashrc
  2. export AJIT_C_REF_MODEL=$(pwd)
  3. running scons in the antlr3runtime directory -> successful
  4. running scons in the doval directory -> successful
  5. running scons in the code directory -> successful

Upon suggestions from Gauri, I had appended the path by: _export PATH=$PATH:~/ajit/ajit-toolchain/from_ajit_repo/simulators/cmodel/code/debugger/doval/include command,before step 3 as there were few errors earlier, this took care of it.

I got this error upon running the C model: _ajit_C_systemmodel: error while loading shared libraries: libantlr3c.so: cannot open shared object file: No such file or directory

So I went a step ahead and added the path of the antlr3runtime/build/include to the path and redid the above steps, yet the error persists.

saurabhb17 commented 3 years ago

export LD_LIBRARY_PATH=/ajit-toolchain/from_ajit_repo/simulators/c_model/code/debugger/doval/antlr3Cruntime/build/lib:$LD_LIBRARY_PATH solved this issue