Closed hjudt closed 8 months ago
llvm-17.0.6 has already been stabilized in gentoo. Any updates possible in the next few weeks?
Yeah sorry for the delay; looks like arch has llvm-17 finally so it should be reasonably straightforward this weekend.
Also apparently I entirely misread this before: the only actual error appears to be the clang::Expr* e = clang::cast<clang::Expr>(stmt->Value);
line.
It's probable this would fix it:
clang::Expr* e = clang::cast<clang::Expr*>(stmt->Value);
// ^ notice
If it does (and everything else works!) and you want to submit a PR I'd merge it too.. though fixing the deprecated header would be nice as well.
Thanks, while I would have been able to fix that line, I was thrown off by some weird linker error which resulted from simply not adapting the LLVM version string in the CMakeLists.txt. My 3 commits in the PR should fix the issues you mentioned, it built fine here.
This should build/work now.
As described in https://github.com/rpav/c2ffi/issues/114, here is the output (there are also some deprecated header warnings in addition to the compile error in AST.cpp):