[llvm] [AMDGPU][MC] Allow UC_VERSION_* constant reuse (PR #96461)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 7 02:14:51 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-armv7-global-isel` running on `linaro-clang-armv7-global-isel` while building `llvm` at step 7 "ninja check 1".

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

Here is the relevant piece of the build log for the reference:
```
Step 7 (ninja check 1) failure: stage 1 checked (failure)
...
[893/1154] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/CoverageMappingTest.cpp.o
[894/1154] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/ItaniumManglingCanonicalizerTest.cpp.o
[895/1154] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/PGOCtxProfReaderWriterTest.cpp.o
[896/1154] Linking CXX executable unittests/Remarks/RemarksTests
[897/1154] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/SymbolRemappingReaderTest.cpp.o
[898/1154] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/MemProfTest.cpp.o
[899/1154] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/SampleProfTest.cpp.o
[900/1154] Building CXX object unittests/SandboxIR/CMakeFiles/SandboxIRTests.dir/SandboxIRTest.cpp.o
[901/1154] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/AddressRangeTest.cpp.o
[902/1154] Building CXX object unittests/MC/AMDGPU/CMakeFiles/AMDGPUMCTests.dir/Disassembler.cpp.o
FAILED: unittests/MC/AMDGPU/CMakeFiles/AMDGPUMCTests.dir/Disassembler.cpp.o 
/usr/local/bin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/tcwg-buildbot/worker/clang-armv7-global-isel/stage1/unittests/MC/AMDGPU -I/home/tcwg-buildbot/worker/clang-armv7-global-isel/llvm/llvm/unittests/MC/AMDGPU -I/home/tcwg-buildbot/worker/clang-armv7-global-isel/stage1/include -I/home/tcwg-buildbot/worker/clang-armv7-global-isel/llvm/llvm/include -I/home/tcwg-buildbot/worker/clang-armv7-global-isel/llvm/llvm/lib/Target/AMDGPU -I/home/tcwg-buildbot/worker/clang-armv7-global-isel/stage1/lib/Target/AMDGPU -I/home/tcwg-buildbot/worker/clang-armv7-global-isel/llvm/third-party/unittest/googletest/include -I/home/tcwg-buildbot/worker/clang-armv7-global-isel/llvm/third-party/unittest/googlemock/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -Wno-variadic-macros -Wno-gnu-zero-variadic-macro-arguments -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -std=c++17 -MD -MT unittests/MC/AMDGPU/CMakeFiles/AMDGPUMCTests.dir/Disassembler.cpp.o -MF unittests/MC/AMDGPU/CMakeFiles/AMDGPUMCTests.dir/Disassembler.cpp.o.d -o unittests/MC/AMDGPU/CMakeFiles/AMDGPUMCTests.dir/Disassembler.cpp.o -c /home/tcwg-buildbot/worker/clang-armv7-global-isel/llvm/llvm/unittests/MC/AMDGPU/Disassembler.cpp
../llvm/llvm/unittests/MC/AMDGPU/Disassembler.cpp:110:43: error: non-const lvalue reference to type 'uint64_t' (aka 'unsigned long long') cannot bind to a value of unrelated type 'size_t' (aka 'unsigned int')
  110 |   Status = DisAsm1->getInstruction(Inst1, InstSize, Bytes, 0, Annotations);
      |                                           ^~~~~~~~
../llvm/llvm/include/llvm/MC/MCDisassembler/MCDisassembler.h:134:64: note: passing argument to parameter 'Size' here
  134 |   virtual DecodeStatus getInstruction(MCInst &Instr, uint64_t &Size,
      |                                                                ^
../llvm/llvm/unittests/MC/AMDGPU/Disassembler.cpp:125:43: error: non-const lvalue reference to type 'uint64_t' (aka 'unsigned long long') cannot bind to a value of unrelated type 'size_t' (aka 'unsigned int')
  125 |   Status = DisAsm2->getInstruction(Inst2, InstSize, Bytes, 0, Annotations);
      |                                           ^~~~~~~~
../llvm/llvm/include/llvm/MC/MCDisassembler/MCDisassembler.h:134:64: note: passing argument to parameter 'Size' here
  134 |   virtual DecodeStatus getInstruction(MCInst &Instr, uint64_t &Size,
      |                                                                ^
../llvm/llvm/unittests/MC/AMDGPU/Disassembler.cpp:193:38: error: non-const lvalue reference to type 'uint64_t' (aka 'unsigned long long') cannot bind to a value of unrelated type 'size_t' (aka 'unsigned int')
  193 |         DisAsm->getInstruction(Inst, InstSize, Bytes, 0, Annotations);
      |                                      ^~~~~~~~
../llvm/llvm/include/llvm/MC/MCDisassembler/MCDisassembler.h:134:64: note: passing argument to parameter 'Size' here
  134 |   virtual DecodeStatus getInstruction(MCInst &Instr, uint64_t &Size,
      |                                                                ^
3 errors generated.
[903/1154] Linking CXX executable unittests/ObjectYAML/ObjectYAMLTests
[904/1154] Linking CXX executable unittests/ProfileData/ProfileDataTests
[905/1154] Linking CXX executable unittests/Passes/PassBuilderBindings/PassesBindingsTests
[906/1154] Linking CXX executable unittests/Passes/Plugins/PluginsTests
[907/1154] Linking CXX executable unittests/MIR/MIRTests
[908/1154] Linking CXX executable unittests/MI/MITests
[909/1154] Linking CXX executable tools/clang/unittests/Interpreter/ExceptionTests/ClangReplInterpreterExceptionTests
[910/1154] Linking CXX executable tools/clang/unittests/Frontend/FrontendTests
[911/1154] Linking CXX executable tools/clang/unittests/Tooling/ToolingTests
[912/1154] Linking CXX executable tools/clang/unittests/Interpreter/ClangReplInterpreterTests
ninja: build stopped: subcommand failed.

```

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


More information about the llvm-commits mailing list