[SOLVED] llvm::orc::LLJITBuilder().create() fails on Windows in GitHub Actions (original) (raw)
Hi,
I have some code that I have been using for quite some time (+/- some very minor changes) to compile some C code on the fly using LLJIT (with LLVM+Clang 18.1.x).
If I run that code on my Windows machine, it all works fine, as confirmed by my various tests. However, if I try to do the same on Windows using GitHub Actions then I get a message that reads unknown file: error: SEH exception with code 0xc0000005 thrown in the test body.
(see here) upon calling llvm::orc::LLJITBuilder().create()
(see here).
FWIW, I am trying this using a release version of my code (and LLVM+Clang). If I use a debug version, it still works on my Windows machine but… also on Windows using GitHub Actions! IOW, on Windows using GitHub Actions, llvm::orc::LLJITBuilder().create()
only fails if I am in release mode. (Interestingly, the same kind of occurs when trying to build LLVM+Clang 18.1.7: I can build it in debug on Windows in GitHub Actions, but not in release mode while I can on my Windows machine! Similarly, some previous test runs that were successful are now failing; e.g., see here.)
I have tried all sorts of things, but to no avail. Would anyone have some ideas of what could be causing this?
Cheers, Alan.
agarny June 10, 2024, 9:39am 2
Ok, I eventually found the culprit… and, good news and as I expected/hoped, it has nothing to do with LLVM+Clang, but… with GitHub Actions (see New unexpected build failures on 20240603.1.0 · Issue #10004 · actions/runner-images · GitHub).