control-toolbox
control-toolbox copied to clipboard
Dynamic (*.so) JIT-libraries from CppADCG do sometimes not get deleted after destruction
old libraries accumulate in workspace
See the following issue: https://github.com/joaoleal/CppADCodeGen/issues/27#issuecomment-538776009
See also the following example: https://github.com/joaoleal/CppADCodeGen/blob/master/example/jit_linux.cpp
The accumulation of saved (old) libraries cannot be circumvented easily. LLVM is now an optional dependency which allows to perform JIT without creating a dynamic library. As of now, deep-cloning of LLVM model libraries is not yet implemented - the pipeline for optinional JIT with LLVM and CPPADCG is integrated and works, however deep-cloning of such libs is not yet supported.
To use llvm/clang, currently the following installation instructions have to be used: https://blog.kowalczyk.info/article/k/how-to-install-latest-clang-6.0-on-ubuntu-16.04-xenial-wsl.html