Skip to content

Possible Build Bugs

Stonepia edited this page Aug 28, 2023 · 3 revisions

LLVM

1. error while loading shared libraries: libtinfow.so.6

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

2. error: 'GLIBCXX_x.x.x' not found

conda install -y -c conda-forge libstdcxx-ng

Triton

1. /usr/bin/ld: cannot find -lz

This is because your system missing zlib. Install with

sudo apt-get install zlib1g-dev

2. cannot find -lTerminfo::terminfo: No such file or directory

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  

Refer to https://github.com/openai/triton/issues/171