llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

llvm-project/libcxx/src/exception.cpp:14:12: fatal error: 'cxxabi.h' file not found

Open rudkx opened this issue 2 years ago • 1 comments

I'm trying to build by configuring with cmake:

cmake -S llvm -B assert -G Ninja -DLLVM_ENABLE_PROJECTS="clang;mlir" -DLLVM_ENABLE_ASSERTIONS=ON -DCMAKE_BUILD_TYPE=Release

and then building:

cmake --build assert

and hitting:

llvm-project/libcxx/src/exception.cpp:14:12: fatal error: 'cxxabi.h' file not found
   14 | #  include <cxxabi.h>
      |            ^~~~~~~~~~
1 error generated.

I'm building on macOS using Xcode 15.2.

My repo is currently synced to 79709498eaa5.

rudkx avatar Feb 19 '24 02:02 rudkx

This may be the result of having done multiple cmake configurations into the same build directory. I was hitting cmake issues with different combinations of projects and runtimes and eventually got the cmake to complete without error but then hit the compilation issue.

I'll open a new issue if I hit this again, but at the moment the build steps I pasted above seem to be working properly.

rudkx avatar Feb 19 '24 03:02 rudkx