-
Notifications
You must be signed in to change notification settings - Fork 44
Possible Build Bugs
Stonepia edited this page Aug 28, 2023
·
3 revisions
Error message would be like:
/llvm/build/bin/mlir-tblgen: error while loading shared libraries: libtinfow.so.6: cannot open shared object file: No such file or directory
You could locate your libtinfow.so.6
and preload it.
# First find your desired .so, normally it is under your conda env
locate libtinfow.so.6
# Preload it
export LD_PRELOAD=/home/gta/miniconda3/envs/env_name/lib/libtinfow.so
conda install -y -c conda-forge libstdcxx-ng
This is because your system missing zlib. Install with
sudo apt-get install zlib1g-dev
LLVM libraries (libLLVMSupport.a in particular) unfortunately depends on terminfo (libtinfo.so). Usually, libtinfo is packaged in ncurses-dev
or libtinfo-dev
.
sudo apt install ncurses-dev