Issue 124769
Summary 'cassert' file not found
Labels new issue
Assignees
Reporter trevSykes
    I am trying to use `clang` for the first time. I just updated my SDK to MacOSX15.2.
When I run 
```
cmake .. -DLLVM_DIR=${LLVM_BUILD_DIR}/lib/cmake/llvm -DClang_DIR=${LLVM_BUILD_DIR}/lib/cmake/clang
```
I get the following fatal error: 
```
In file included from /Users/path/to/project/hello.cpp:23:
In file included from /opt/homebrew/Cellar/llvm/19.1.7/include/clang/AST/RecursiveASTVisitor.h:16:
In file included from /opt/homebrew/Cellar/llvm/19.1.7/include/clang/AST/ASTConcept.h:17:
In file included from /opt/homebrew/Cellar/llvm/19.1.7/include/clang/AST/DeclarationName.h:16:
In file included from /opt/homebrew/Cellar/llvm/19.1.7/include/clang/AST/Type.h:20:
In file included from /opt/homebrew/Cellar/llvm/19.1.7/include/clang/AST/DependenceFlags.h:11:
In file included from /opt/homebrew/Cellar/llvm/19.1.7/include/clang/Basic/BitmaskEnum.h:18:
/opt/homebrew/Cellar/llvm/19.1.7/include/llvm/ADT/BitmaskEnum.h:12:10: fatal error: 'cassert' file not found
   12 | #include <cassert>
      | ^~~~~~~~~
1 error generated.
make[2]: *** [CMakeFiles/Hello.dir/hello.cpp.o] Error 1
make[1]: *** [CMakeFiles/Hello.dir/all] Error 2
make: *** [all] Error 2
```

I did not have this issue before I updated my SDK.
I'm unsure how to diagnose and fix this issue. Any help will be appreciated!
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to