[llvm] [OpenMP] Mark problematic tests as XFAIL / UNSUPPORTED (PR #161267)
Michał Górny via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 3 02:34:29 PST 2026
mgorny wrote:
This (I think) introduced test failures for me:
```
FAIL: libomptarget :: aarch64-unknown-linux-gnu :: offloading/bug51781.c (495 of 864)
******************** TEST 'libomptarget :: aarch64-unknown-linux-gnu :: offloading/bug51781.c' FAILED ********************
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 4
/usr/lib/ccache/bin/aarch64-unknown-linux-gnu-clang -fopenmp -I /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload/test -I /usr/include -L /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload -L /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/./lib -L /usr/lib/llvm/22/lib64 -L /usr/lib64 -nogpulib -Wl,-rpath,/var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload -Wl,-rpath,/usr/lib64 -Wl,-rpath,/var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/./lib -Wl,-rpath,/usr/lib/llvm/22/lib64 -fopenmp-targets=aarch64-unknown-linux-gnu /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload/test/offloading/bug51781.c -o /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload/test/aarch64-unknown-linux-gnu/offloading/Output/bug51781.c.tmp && /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload/test/aarch64-unknown-linux-gnu/offloading/Output/bug51781.c.tmp | /usr/lib/llvm/22/bin/FileCheck /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload/test/offloading/bug51781.c
# executed command: /usr/lib/ccache/bin/aarch64-unknown-linux-gnu-clang -fopenmp -I /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload/test -I /usr/include -L /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload -L /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/./lib -L /usr/lib/llvm/22/lib64 -L /usr/lib64 -nogpulib -Wl,-rpath,/var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload -Wl,-rpath,/usr/lib64 -Wl,-rpath,/var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/./lib -Wl,-rpath,/usr/lib/llvm/22/lib64 -fopenmp-targets=aarch64-unknown-linux-gnu /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload/test/offloading/bug51781.c -o /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload/test/aarch64-unknown-linux-gnu/offloading/Output/bug51781.c.tmp
# executed command: /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload/test/aarch64-unknown-linux-gnu/offloading/Output/bug51781.c.tmp
# executed command: /usr/lib/llvm/22/bin/FileCheck /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload/test/offloading/bug51781.c
# RUN: at line 8
/usr/lib/ccache/bin/aarch64-unknown-linux-gnu-clang -fopenmp -I /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload/test -I /usr/include -L /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload -L /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/./lib -L /usr/lib/llvm/22/lib64 -L /usr/lib64 -nogpulib -Wl,-rpath,/var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload -Wl,-rpath,/usr/lib64 -Wl,-rpath,/var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/./lib -Wl,-rpath,/usr/lib/llvm/22/lib64 -fopenmp-targets=aarch64-unknown-linux-gnu /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload/test/offloading/bug51781.c -o /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload/test/aarch64-unknown-linux-gnu/offloading/Output/bug51781.c.tmp -O2 -foffload-lto -Rpass=openmp-opt > /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload/test/aarch64-unknown-linux-gnu/offloading/Output/bug51781.c.tmp.spmd 2>&1
# executed command: /usr/lib/ccache/bin/aarch64-unknown-linux-gnu-clang -fopenmp -I /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload/test -I /usr/include -L /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload -L /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/./lib -L /usr/lib/llvm/22/lib64 -L /usr/lib64 -nogpulib -Wl,-rpath,/var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload -Wl,-rpath,/usr/lib64 -Wl,-rpath,/var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/./lib -Wl,-rpath,/usr/lib/llvm/22/lib64 -fopenmp-targets=aarch64-unknown-linux-gnu /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload/test/offloading/bug51781.c -o /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload/test/aarch64-unknown-linux-gnu/offloading/Output/bug51781.c.tmp -O2 -foffload-lto -Rpass=openmp-opt
# RUN: at line 9
echo ignored-command -check-prefix=SPMD -input-file=/var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload/test/aarch64-unknown-linux-gnu/offloading/Output/bug51781.c.tmp.spmd
# executed command: echo ignored-command -check-prefix=SPMD -input-file=/var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload/test/aarch64-unknown-linux-gnu/offloading/Output/bug51781.c.tmp.spmd
# .---command stdout------------
# | ignored-command -check-prefix=SPMD -input-file=/var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload/test/aarch64-unknown-linux-gnu/offloading/Output/bug51781.c.tmp.spmd
# `-----------------------------
# RUN: at line 10
echo ignored-command -check-prefix=SPMD -input-file=/var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload/test/aarch64-unknown-linux-gnu/offloading/Output/bug51781.c.tmp.spmd
# executed command: echo ignored-command -check-prefix=SPMD -input-file=/var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload/test/aarch64-unknown-linux-gnu/offloading/Output/bug51781.c.tmp.spmd
# .---command stdout------------
# | ignored-command -check-prefix=SPMD -input-file=/var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload/test/aarch64-unknown-linux-gnu/offloading/Output/bug51781.c.tmp.spmd
# `-----------------------------
# RUN: at line 11
/var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload/test/aarch64-unknown-linux-gnu/offloading/Output/bug51781.c.tmp 2>&1 | /usr/lib/llvm/22/bin/FileCheck /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload/test/offloading/bug51781.c
# executed command: /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload/test/aarch64-unknown-linux-gnu/offloading/Output/bug51781.c.tmp
# executed command: /usr/lib/llvm/22/bin/FileCheck /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload/test/offloading/bug51781.c
# RUN: at line 18
/usr/lib/ccache/bin/aarch64-unknown-linux-gnu-clang -fopenmp -I /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload/test -I /usr/include -L /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload -L /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/./lib -L /usr/lib/llvm/22/lib64 -L /usr/lib64 -nogpulib -Wl,-rpath,/var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload -Wl,-rpath,/usr/lib64 -Wl,-rpath,/var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/./lib -Wl,-rpath,/usr/lib/llvm/22/lib64 -fopenmp-targets=aarch64-unknown-linux-gnu /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload/test/offloading/bug51781.c -o /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload/test/aarch64-unknown-linux-gnu/offloading/Output/bug51781.c.tmp -O2 -foffload-lto -Rpass=openmp-opt -Xoffload-linker -mllvm=-openmp-opt-disable-spmdization -mllvm -openmp-opt-disable-spmdization > /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload/test/aarch64-unknown-linux-gnu/offloading/Output/bug51781.c.tmp.custom 2>&1
# executed command: /usr/lib/ccache/bin/aarch64-unknown-linux-gnu-clang -fopenmp -I /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload/test -I /usr/include -L /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload -L /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/./lib -L /usr/lib/llvm/22/lib64 -L /usr/lib64 -nogpulib -Wl,-rpath,/var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload -Wl,-rpath,/usr/lib64 -Wl,-rpath,/var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/./lib -Wl,-rpath,/usr/lib/llvm/22/lib64 -fopenmp-targets=aarch64-unknown-linux-gnu /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload/test/offloading/bug51781.c -o /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload/test/aarch64-unknown-linux-gnu/offloading/Output/bug51781.c.tmp -O2 -foffload-lto -Rpass=openmp-opt -Xoffload-linker -mllvm=-openmp-opt-disable-spmdization -mllvm -openmp-opt-disable-spmdization
# .---redirected output from '/var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload/test/aarch64-unknown-linux-gnu/offloading/Output/bug51781.c.tmp.custom'
# | /usr/bin/aarch64-unknown-linux-gnu-ld: unrecognised emulation mode: llvm=-openmp-opt-disable-spmdization
# | Supported emulations: aarch64linux aarch64elf aarch64elf32 aarch64elf32b aarch64elfb armelf armelfb aarch64linuxb aarch64linux32 aarch64linux32b armelfb_linux_eabi armelf_linux_eabi
# | clang: error: linker command failed with exit code 1 (use -v to see invocation)
# | /usr/lib/llvm/22/bin/clang-linker-wrapper: error: 'clang' failed
# | aarch64-unknown-linux-gnu-clang: error: linker command failed with exit code 1 (use -v to see invocation)
# `-----------------------------
# note: command had no output on stdout or stderr
# error: command failed with exit status: 1
--
********************
```
(and `-LTO` just the same way)
Does it assume clang will be using lld or something? Also, not sure if the change in linker args meant to be part of this PR, given the summary.
https://github.com/llvm/llvm-project/pull/161267
More information about the llvm-commits
mailing list