The distribution appears to bundle $OSS_CAD_SUITE_HOME/lib/libffi.so.7 however this is often not found by cocotb when loading VPI DSOs for simulator support. Such a Verilator or CVC (Tachyon)
This error still occurs after use of source $OSS_CAD_SUITE_HOME/environment
The resolution has been to sudo -E apt-get install -y libffi7 on the system. Rendering the one provided by OSS CAD suite, not use for this use-case scenario.
Example of the generated use case, in particular it is the use of "-lcocotbvpi_verilator" that is provided by oss-cad-suite, that causes libffi.so.7 to be needed. This file is provided at lib/python3.8/site-packages/cocotb-1.9.0.dev0-py3.8-linux-x86_64.egg/cocotb/libs/libcocotbvpi_verilator.so
This is nothing special and can be largely created with use of SIM=verilator make
The distribution appears to bundle
$OSS_CAD_SUITE_HOME/lib/libffi.so.7
however this is often not found by cocotb when loading VPI DSOs for simulator support. Such a Verilator or CVC (Tachyon)This error still occurs after use of
source $OSS_CAD_SUITE_HOME/environment
The resolution has been to
sudo -E apt-get install -y libffi7
on the system. Rendering the one provided by OSS CAD suite, not use for this use-case scenario.Example of the generated use case, in particular it is the use of "-lcocotbvpi_verilator" that is provided by oss-cad-suite, that causes libffi.so.7 to be needed. This file is provided at
lib/python3.8/site-packages/cocotb-1.9.0.dev0-py3.8-linux-x86_64.egg/cocotb/libs/libcocotbvpi_verilator.so
This is nothing special and can be largely created with use of
SIM=verilator make