[libcxx-dev] Problem installing libcxx and libcxxabi using Bootstrapping on Amazon Linux 2

Hasan Marzooq via libcxx-dev libcxx-dev at lists.llvm.org
Thu Dec 16 08:20:18 PST 2021


Perfect! plv8 is installed now. Thanks again for your help! A big relief -:)

Previously, if you notice, I've installed "opt" via yum. This was because I
didn't find opt in the command line even after having below cmake
configuration.

cmake -G Ninja -S llvm -B build -DLLVM_ENABLE_PROJECTS="clang;llvm"
-DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi;libunwind"
-DLLVM_PARALLEL_LINK_JOBS=1 -DCMAKE_BUILD_TYPE=Release

My assumption was that having llvm in -DLLVM_ENABLE_PROJECTS will build
"opt" as well.

-----
# pwd
/root/llvm-project/build/tools/opt
# cmake -P cmake_install.cmake
-- Install configuration: "Release"
CMake Error at cmake_install.cmake:46 (file):
  file INSTALL cannot find "/root/llvm-project/build/bin/opt": No such file
  or directory.
-----

Didn't had opt under "/usr/local/lib" either.

I want to use the above cmake approach for building and installing "opt"
instead of installing via yum.


Thanks!




On Thu, 16 Dec 2021 at 17:39, Raul Tambre <raul at tambre.ee> wrote:

> Per the "ldconfig -v" output you gave previously /usr/local/lib isn't on
> the
> dynamic linker's search path, but is on ld's.
>
> I'd add /usr/local/lib to the dymanic linker's search path with a config
> in
> /etc/ld.so.conf.d. Don't forget to run ldconfig afterwards to refresh the
> cache.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/libcxx-dev/attachments/20211217/55700d48/attachment.html>


More information about the libcxx-dev mailing list