[Openmp-commits] [openmp] [openmp] Add support for arm64ec to libomp (PR #176151)

Martin Storsjö via Openmp-commits openmp-commits at lists.llvm.org
Sat Jan 31 02:12:57 PST 2026


mstorsjo wrote:

> > I noted that many of the missing tests fail with error code 0xc000007b, which means STATUS_INVALID_IMAGE_FORMAT. I haven't dug into why this is happening.
> 
> Could they be looking in the wrong place for libomp.dll and picking up the normal arm64 one? I hit that a lot before I added the arm64x support.

Not really - and if we would be doing this, we'd have the issue that tests would use the old, toolchain provided libomp.dll, than the one we just built.

It turned out that the issue was that for tests built as C++, the executables ended up depending on `libc++.dll` and `libunwind.dll`; and since running a normal aarch64 toolchain, I had normal aarch64 versions of those DLLs in PATH. If we'd have them as arm64x, this wouldn't be an issue though.

But by adding `-DOPENMP_TEST_FLAGS="-static-libstdc++ -static-libgcc"`, those get linked statically, and we don't hit this issue any longer. With that fix, all tests but one run and pass. One test, `runtime/test/worksharing/for/omp_for_schedule_runtime.c`, hangs at runtime..

https://github.com/llvm/llvm-project/pull/176151


More information about the Openmp-commits mailing list