[llvm] [NFC][Offload] Correct the compile command of two C test files (PR #118243)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 1 18:39:42 PST 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `openmp-offload-amdgpu-runtime` running on `omp-vega20-0` while building `offload` at step 7 "Add check check-offload".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/30/builds/11311

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 7 (Add check check-offload) failure: test (failure)
******************** TEST 'libomptarget :: amdgcn-amd-amdhsa :: mapping/power_of_two_alignment.c' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.build/./bin/clang -fopenmp    -I /home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/offload/test -I /home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -L /home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.build/runtimes/runtimes-bins/offload -L /home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.build/./lib -L /home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.build/runtimes/runtimes-bins/openmp/runtime/src  -nogpulib -Wl,-rpath,/home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.build/runtimes/runtimes-bins/offload -Wl,-rpath,/home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -Wl,-rpath,/home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.build/./lib  -fopenmp-targets=amdgcn-amd-amdhsa /home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/offload/test/mapping/power_of_two_alignment.c -o /home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/mapping/Output/power_of_two_alignment.c.tmp /home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.build/./lib/libomptarget.devicertl.a && /home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/mapping/Output/power_of_two_alignment.c.tmp | /home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.build/./bin/FileCheck /home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/offload/test/mapping/power_of_two_alignment.c
# executed command: /home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.build/./bin/clang -fopenmp -I /home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/offload/test -I /home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -L /home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.build/runtimes/runtimes-bins/offload -L /home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.build/./lib -L /home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -nogpulib -Wl,-rpath,/home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.build/runtimes/runtimes-bins/offload -Wl,-rpath,/home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -Wl,-rpath,/home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.build/./lib -fopenmp-targets=amdgcn-amd-amdhsa /home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/offload/test/mapping/power_of_two_alignment.c -o /home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/mapping/Output/power_of_two_alignment.c.tmp /home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.build/./lib/libomptarget.devicertl.a
# .---command stderr------------
# | /home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/offload/test/mapping/power_of_two_alignment.c:45:1: error: unknown type name 'template'
# |    45 | template <typename StackPad>
# |       | ^
# | /home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/offload/test/mapping/power_of_two_alignment.c:45:10: error: expected identifier or '('
# |    45 | template <typename StackPad>
# |       |          ^
# | /home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/offload/test/mapping/power_of_two_alignment.c:70:3: error: use of undeclared identifier 'test'
# |    70 |   TEST(char[1]);
# |       |   ^
# | /home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/offload/test/mapping/power_of_two_alignment.c:67:3: note: expanded from macro 'TEST'
# |    67 |   test<StackPad>()
# |       |   ^
# | /home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/offload/test/mapping/power_of_two_alignment.c:70:8: error: expected expression
# |    70 |   TEST(char[1]);
# |       |        ^
# | /home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/offload/test/mapping/power_of_two_alignment.c:71:3: error: use of undeclared identifier 'test'
# |    71 |   TEST(char[2]);
# |       |   ^
# | /home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/offload/test/mapping/power_of_two_alignment.c:67:3: note: expanded from macro 'TEST'
# |    67 |   test<StackPad>()
# |       |   ^
# | /home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/offload/test/mapping/power_of_two_alignment.c:71:8: error: expected expression
# |    71 |   TEST(char[2]);
# |       |        ^
# | /home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/offload/test/mapping/power_of_two_alignment.c:72:3: error: use of undeclared identifier 'test'
# |    72 |   TEST(char[3]);
# |       |   ^
# | /home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/offload/test/mapping/power_of_two_alignment.c:67:3: note: expanded from macro 'TEST'
# |    67 |   test<StackPad>()
# |       |   ^
# | /home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/offload/test/mapping/power_of_two_alignment.c:72:8: error: expected expression
# |    72 |   TEST(char[3]);
# |       |        ^
# | /home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/offload/test/mapping/power_of_two_alignment.c:73:3: error: use of undeclared identifier 'test'
# |    73 |   TEST(char[4]);
# |       |   ^
# | /home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/offload/test/mapping/power_of_two_alignment.c:67:3: note: expanded from macro 'TEST'
# |    67 |   test<StackPad>()
# |       |   ^
# | /home/ompworker/bbot/openmp-offload-amdgpu-runtime/llvm.src/offload/test/mapping/power_of_two_alignment.c:73:8: error: expected expression
# |    73 |   TEST(char[4]);
...

```

</details>

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


More information about the llvm-commits mailing list