"error: unable to find library -latomic" when using clang

Viewed 44

I am trying to build a project (PDFium) using clang. It keeps giving me this error

ld.lld: error: unable to find library -latomic
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.

I have these installed on my system

libatomic_ops 7.6.14-1
clang 14.0.6-2
lib32-clang 14.0.6-1
libatomic1

And about LD_LIBRARY_PATH

$ export LD_LIBRARY_PATH=/usr/lib64:/usr/lib32:/usr/local/lib:/usr/lib
$ sudo ldconfig

I have tried it on Debian, Arch and Ubuntu.

0 Answers
Related