Open xxshady opened 1 year ago
seems like its related to c++20: https://github.com/xxshady/autocxx-repro/actions/runs/6292598553/job/17082160466
however, it was working completely fine with c++20 for some time before visual studio and clang were updated in windows-2022 github image
Removing LLVM from PATH helps with avoiding this issue: https://github.com/xxshady/autocxx-repro/actions/runs/6380197303/job/17314131098
set PATH=%PATH:C:\Program Files\LLVM\bin;=%
echo %PATH%
cargo build
Thanks for looking into this. I'm unable to eke out time to look into it right now, but my guess is that corresponding changes have been made to bindgen
and need to be rolled into autocxx_bindgen
.
for some reason now latest version (clang --version
showed clang version 18.1.3
) LLVM/clang freezes compilation on windows: https://github.com/xxshady/altv-rust/actions/runs/8819720686/job/24211619136#step:9:957
it compiles fine on 16.0.6: https://github.com/xxshady/altv-rust/actions/runs/8818604846/job/24207787321#step:5:5
freezes somewhere inside the autocxx_build::Builder::build
method
doesn't work with 16.0.6, but works with 17.0.1 https://github.com/xxshady/altv-rust/blob/740c3ca7d2ebb6fe25228d7462092ae2695d2a27/.github/workflows/test.yml#L58-L63
Describe the bug
autocxx-bindgen panics while bulding c++ code in github action,
it's not related to incompatible Clang/LLVM version since it gets updated to 16.0.6 manuallyPanicked github action: https://github.com/xxshady/autocxx-repro/actions/runs/6064661756/job/16453314009
Full panic:
To Reproduce
https://github.com/xxshady/autocxx-repro
Expected behavior No panic