[compiler-rt] compiler-rt: Consolidate regex checks for amdgpu targets (PR #202281)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 9 10:47:24 PDT 2026
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `openmp-offload-amdgpu-clang-flang` running on `rocm-worker-hw-01` while building `compiler-rt` at step 3 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/67/builds/6256
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 3 (annotate) failure: 'python ../llvm.src/offload/ci/openmp-offload-amdgpu-clang-flang.py ...' (failure)
...
[ 41%/0.130s :: 1->78->55 (of 133)] Building C object CMakeFiles/clang_rt.builtins-amdgcn.dir/fixdfti.c.o
[ 42%/0.130s :: 1->77->56 (of 133)] Building C object CMakeFiles/clang_rt.builtins-amdgcn.dir/modti3.c.o
[ 42%/0.130s :: 1->76->57 (of 133)] Building C object CMakeFiles/clang_rt.builtins-amdgcn.dir/floatdisf.c.o
[ 43%/0.131s :: 1->75->58 (of 133)] Building C object CMakeFiles/clang_rt.builtins-amdgcn.dir/paritydi2.c.o
[ 44%/0.131s :: 1->74->59 (of 133)] Building C object CMakeFiles/clang_rt.builtins-amdgcn.dir/mulsc3.c.o
[ 45%/0.131s :: 1->73->60 (of 133)] Building C object CMakeFiles/clang_rt.builtins-amdgcn.dir/fixunssfsi.c.o
[ 45%/0.132s :: 1->72->61 (of 133)] Building C object CMakeFiles/clang_rt.builtins-amdgcn.dir/floattisf.c.o
[ 46%/0.133s :: 1->71->62 (of 133)] Building C object CMakeFiles/clang_rt.builtins-amdgcn.dir/udivmodsi4.c.o
[ 47%/0.134s :: 1->70->63 (of 133)] Building C object CMakeFiles/clang_rt.builtins-amdgcn.dir/divmoddi4.c.o
[ 48%/0.139s :: 1->69->64 (of 133)] Building C object CMakeFiles/clang_rt.builtins-amdgcn.dir/emutls.c.o
FAILED: CMakeFiles/clang_rt.builtins-amdgcn.dir/emutls.c.o
/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./bin/clang --target=amdgcn-amd-amdhsa -DVISIBILITY_HIDDEN -I/home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/compiler-rt/lib/builtins/../../../third-party/siphash/include -O3 -DNDEBUG -fno-lto -nostdinc++ -Wno-c2y-extensions -fPIC -fno-builtin -fvisibility=hidden -fomit-frame-pointer -DCOMPILER_RT_HAS_FLOAT16 -std=gnu11 -MD -MT CMakeFiles/clang_rt.builtins-amdgcn.dir/emutls.c.o -MF CMakeFiles/clang_rt.builtins-amdgcn.dir/emutls.c.o.d -o CMakeFiles/clang_rt.builtins-amdgcn.dir/emutls.c.o -c /home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/compiler-rt/lib/builtins/emutls.c
In file included from /home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/compiler-rt/lib/builtins/emutls.c:50:
/usr/include/pthread.h:698:6: error: 'regparm' is not valid on this platform
698 | __cleanup_fct_attribute;
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/bits/pthreadtypes-arch.h:52:50: note: expanded from macro '__cleanup_fct_attribute'
52 | # define __cleanup_fct_attribute __attribute__ ((__regparm__ (1)))
| ^ ~
In file included from /home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/compiler-rt/lib/builtins/emutls.c:50:
/usr/include/pthread.h:710:3: error: 'regparm' is not valid on this platform
710 | __cleanup_fct_attribute;
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/bits/pthreadtypes-arch.h:52:50: note: expanded from macro '__cleanup_fct_attribute'
52 | # define __cleanup_fct_attribute __attribute__ ((__regparm__ (1)))
| ^ ~
In file included from /home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/compiler-rt/lib/builtins/emutls.c:50:
/usr/include/pthread.h:751:6: error: 'regparm' is not valid on this platform
751 | __cleanup_fct_attribute __attribute__ ((__noreturn__))
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/bits/pthreadtypes-arch.h:52:50: note: expanded from macro '__cleanup_fct_attribute'
52 | # define __cleanup_fct_attribute __attribute__ ((__regparm__ (1)))
| ^ ~
/home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/compiler-rt/lib/builtins/emutls.c:77:20: warning: cast to smaller integer type 'uintptr_t' (aka 'unsigned int') from 'char *' [-Wpointer-to-int-cast]
77 | base = (void *)(((uintptr_t)(object + EXTRA_ALIGN_PTR_BYTES)) &
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/compiler-rt/lib/builtins/emutls.c:77:10: warning: cast to 'void *' from smaller integer type 'uintptr_t' (aka 'unsigned int') [-Wint-to-void-pointer-cast]
77 | base = (void *)(((uintptr_t)(object + EXTRA_ALIGN_PTR_BYTES)) &
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
78 | ~(uintptr_t)(align - 1));
| ~~~~~~~~~~~~~~~~~~~~~~~~
/home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/compiler-rt/lib/builtins/emutls.c:295:3: error: 'ct_assert_0' declared as an array with a negative size
295 | COMPILE_TIME_ASSERT(sizeof(uintptr_t) == sizeof(gcc_pointer));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/compiler-rt/lib/builtins/int_util.h:26:35: note: expanded from macro 'COMPILE_TIME_ASSERT'
26 | #define COMPILE_TIME_ASSERT(expr) COMPILE_TIME_ASSERT1(expr, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/compiler-rt/lib/builtins/int_util.h:27:41: note: expanded from macro 'COMPILE_TIME_ASSERT1'
27 | #define COMPILE_TIME_ASSERT1(expr, cnt) COMPILE_TIME_ASSERT2(expr, cnt)
Step 7 (compile-openmp) failure: compile-openmp (failure)
...
[ 41%/0.130s :: 1->78->55 (of 133)] Building C object CMakeFiles/clang_rt.builtins-amdgcn.dir/fixdfti.c.o
[ 42%/0.130s :: 1->77->56 (of 133)] Building C object CMakeFiles/clang_rt.builtins-amdgcn.dir/modti3.c.o
[ 42%/0.130s :: 1->76->57 (of 133)] Building C object CMakeFiles/clang_rt.builtins-amdgcn.dir/floatdisf.c.o
[ 43%/0.131s :: 1->75->58 (of 133)] Building C object CMakeFiles/clang_rt.builtins-amdgcn.dir/paritydi2.c.o
[ 44%/0.131s :: 1->74->59 (of 133)] Building C object CMakeFiles/clang_rt.builtins-amdgcn.dir/mulsc3.c.o
[ 45%/0.131s :: 1->73->60 (of 133)] Building C object CMakeFiles/clang_rt.builtins-amdgcn.dir/fixunssfsi.c.o
[ 45%/0.132s :: 1->72->61 (of 133)] Building C object CMakeFiles/clang_rt.builtins-amdgcn.dir/floattisf.c.o
[ 46%/0.133s :: 1->71->62 (of 133)] Building C object CMakeFiles/clang_rt.builtins-amdgcn.dir/udivmodsi4.c.o
[ 47%/0.134s :: 1->70->63 (of 133)] Building C object CMakeFiles/clang_rt.builtins-amdgcn.dir/divmoddi4.c.o
[ 48%/0.139s :: 1->69->64 (of 133)] Building C object CMakeFiles/clang_rt.builtins-amdgcn.dir/emutls.c.o
FAILED: CMakeFiles/clang_rt.builtins-amdgcn.dir/emutls.c.o
/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./bin/clang --target=amdgcn-amd-amdhsa -DVISIBILITY_HIDDEN -I/home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/compiler-rt/lib/builtins/../../../third-party/siphash/include -O3 -DNDEBUG -fno-lto -nostdinc++ -Wno-c2y-extensions -fPIC -fno-builtin -fvisibility=hidden -fomit-frame-pointer -DCOMPILER_RT_HAS_FLOAT16 -std=gnu11 -MD -MT CMakeFiles/clang_rt.builtins-amdgcn.dir/emutls.c.o -MF CMakeFiles/clang_rt.builtins-amdgcn.dir/emutls.c.o.d -o CMakeFiles/clang_rt.builtins-amdgcn.dir/emutls.c.o -c /home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/compiler-rt/lib/builtins/emutls.c
In file included from /home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/compiler-rt/lib/builtins/emutls.c:50:
/usr/include/pthread.h:698:6: error: 'regparm' is not valid on this platform
698 | __cleanup_fct_attribute;
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/bits/pthreadtypes-arch.h:52:50: note: expanded from macro '__cleanup_fct_attribute'
52 | # define __cleanup_fct_attribute __attribute__ ((__regparm__ (1)))
| ^ ~
In file included from /home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/compiler-rt/lib/builtins/emutls.c:50:
/usr/include/pthread.h:710:3: error: 'regparm' is not valid on this platform
710 | __cleanup_fct_attribute;
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/bits/pthreadtypes-arch.h:52:50: note: expanded from macro '__cleanup_fct_attribute'
52 | # define __cleanup_fct_attribute __attribute__ ((__regparm__ (1)))
| ^ ~
In file included from /home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/compiler-rt/lib/builtins/emutls.c:50:
/usr/include/pthread.h:751:6: error: 'regparm' is not valid on this platform
751 | __cleanup_fct_attribute __attribute__ ((__noreturn__))
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/bits/pthreadtypes-arch.h:52:50: note: expanded from macro '__cleanup_fct_attribute'
52 | # define __cleanup_fct_attribute __attribute__ ((__regparm__ (1)))
| ^ ~
/home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/compiler-rt/lib/builtins/emutls.c:77:20: warning: cast to smaller integer type 'uintptr_t' (aka 'unsigned int') from 'char *' [-Wpointer-to-int-cast]
77 | base = (void *)(((uintptr_t)(object + EXTRA_ALIGN_PTR_BYTES)) &
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/compiler-rt/lib/builtins/emutls.c:77:10: warning: cast to 'void *' from smaller integer type 'uintptr_t' (aka 'unsigned int') [-Wint-to-void-pointer-cast]
77 | base = (void *)(((uintptr_t)(object + EXTRA_ALIGN_PTR_BYTES)) &
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
78 | ~(uintptr_t)(align - 1));
| ~~~~~~~~~~~~~~~~~~~~~~~~
/home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/compiler-rt/lib/builtins/emutls.c:295:3: error: 'ct_assert_0' declared as an array with a negative size
295 | COMPILE_TIME_ASSERT(sizeof(uintptr_t) == sizeof(gcc_pointer));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/compiler-rt/lib/builtins/int_util.h:26:35: note: expanded from macro 'COMPILE_TIME_ASSERT'
26 | #define COMPILE_TIME_ASSERT(expr) COMPILE_TIME_ASSERT1(expr, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/compiler-rt/lib/builtins/int_util.h:27:41: note: expanded from macro 'COMPILE_TIME_ASSERT1'
27 | #define COMPILE_TIME_ASSERT1(expr, cnt) COMPILE_TIME_ASSERT2(expr, cnt)
```
</details>
https://github.com/llvm/llvm-project/pull/202281
More information about the llvm-commits
mailing list