Closed tekumara closed 1 year ago
On Amazon Linux 2:
$ pip install hnswlib .... clang++ -pthread -shared -L/tools/deps/lib -Wl,--exclude-libs,ALL -L/tools/deps/libedit/lib build/temp.linux-x86_64-cpython-310/./python_bindings/bindings.o -L/install/lib -o build/lib.linux-x86_64-cpython-310/hnswlib.cpython-310-x86_64-linux-gnu.so -fopenmp -pthread /usr/bin/ld: cannot find -lomp clang-11: error: linker command failed with exit code 1 (use -v to see invocation) error: command '/usr/bin/clang++' failed with exit code 1
I can't find libomp for clang/llvm in the Amazon Linux 2 repositories, but it does have libgomp for gcc, so I've switched to using gcc, eg:
libomp
libgomp
sudo yum install -y gcc-c++ export CC=gcc export CXX=c++
On Amazon Linux 2: