[cfe-dev] Unable to install clang libc++abi

Asiri Rathnayake via cfe-dev cfe-dev at lists.llvm.org
Sat Jun 25 14:15:57 PDT 2016


Hi,

If I understand correctly, the problem is that you need to give cmake the
path to the llvm source dir, not libcxxabi source dir. When invoking make,
you can chose to build just libcxxabi (make cxxabi).

Hope this helps.

/ Asiri

On Sat, Jun 25, 2016 at 7:02 AM, Salil Wadnerkar via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

> Hi,
>
> I am building clang and libc++abi from sources on Fedora.
>
> My llvm, clang and libc++ installation is complete. However, when I try to
> build libc++abi, I get this error:
>
> swadnerkar at localhost:~/llvm/projects/libcxxabi/build (master %) $
> CC=clang CXX=clang++ cmake -DCMAKE_BUILD_TYPE=Release ..
> CMake Error at CMakeLists.txt:35 (add_llvm_external_project):
>   Unknown CMake command "add_llvm_external_project".
>
>
> CMake Warning (dev) in CMakeLists.txt:
>   No cmake_minimum_required command is present.  A line of code such as
>
>     cmake_minimum_required(VERSION 3.5)
>
>   should be added at the top of the file.  The version specified may be
> lower
>   if you wish to support older CMake versions for this project.  For more
>   information run "cmake --help-policy CMP0000".
> This warning is for project developers.  Use -Wno-dev to suppress it.
>
> -- Configuring incomplete, errors occurred!
> See also
> "/home/swadnerkar/llvm/projects/libcxxabi/CMakeFiles/CMakeOutput.log".
>
>
> The LLVM Cmake modules are installed here:
> /usr/local/lib/cmake/llvm/LLVMExternalProjectUtils.cmake
>
> How do I make cmake use these
> I tried this:
> export CMAKE_PREFIX_PATH=/usr/local/
>
> But, it did not work.
>
> Could someone help me install libc++abi, please?
>
> Thank you
> Salil
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20160625/a9bd706a/attachment.html>


More information about the cfe-dev mailing list