[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 03:20:18 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-armv8-lld-2stage` running on `linaro-clang-armv8-lld-2stage` while building `llvm` at step 7 "ninja check 1".

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

Here is the relevant piece of the build log for the reference:
```
Step 7 (ninja check 1) failure: stage 1 checked (failure)
...
[986/1059] Building CXX object unittests/Transforms/Utils/CMakeFiles/UtilsTests.dir/BasicBlockUtilsTest.cpp.o
[987/1059] Building CXX object unittests/Transforms/Utils/CMakeFiles/UtilsTests.dir/CloningTest.cpp.o
[988/1059] Linking CXX executable unittests/Target/TargetMachineCTests
[989/1059] Building CXX object unittests/Transforms/Utils/CMakeFiles/UtilsTests.dir/CodeExtractorTest.cpp.o
[990/1059] Building CXX object unittests/Transforms/Utils/CMakeFiles/UtilsTests.dir/ASanStackFrameLayoutTest.cpp.o
[991/1059] Building CXX object unittests/Transforms/Utils/CMakeFiles/UtilsTests.dir/CodeLayoutTest.cpp.o
[992/1059] Building CXX object unittests/Transforms/Utils/CMakeFiles/UtilsTests.dir/DebugifyTest.cpp.o
[993/1059] Linking CXX executable unittests/TextAPI/TextAPITests
[994/1059] Building CXX object unittests/Transforms/Utils/CMakeFiles/UtilsTests.dir/CodeMoverUtilsTest.cpp.o
[995/1059] 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_PTHREAD=0 -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-armv8-lld-2stage/stage1/unittests/MC/AMDGPU -I/home/tcwg-buildbot/worker/clang-armv8-lld-2stage/llvm/llvm/unittests/MC/AMDGPU -I/home/tcwg-buildbot/worker/clang-armv8-lld-2stage/stage1/include -I/home/tcwg-buildbot/worker/clang-armv8-lld-2stage/llvm/llvm/include -I/home/tcwg-buildbot/worker/clang-armv8-lld-2stage/llvm/llvm/lib/Target/AMDGPU -I/home/tcwg-buildbot/worker/clang-armv8-lld-2stage/stage1/lib/Target/AMDGPU -I/home/tcwg-buildbot/worker/clang-armv8-lld-2stage/llvm/third-party/unittest/googletest/include -I/home/tcwg-buildbot/worker/clang-armv8-lld-2stage/llvm/third-party/unittest/googlemock/include -mcpu=cortex-a57 -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-armv8-lld-2stage/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.
[996/1059] Linking CXX executable unittests/Target/AMDGPU/AMDGPUTests
[997/1059] Building CXX object unittests/Transforms/Utils/CMakeFiles/UtilsTests.dir/FunctionComparatorTest.cpp.o
[998/1059] Building CXX object unittests/Transforms/Utils/CMakeFiles/UtilsTests.dir/LoopRotationUtilsTest.cpp.o
[999/1059] Building CXX object unittests/Transforms/Utils/CMakeFiles/UtilsTests.dir/ModuleUtilsTest.cpp.o
[1000/1059] Building CXX object unittests/Transforms/Utils/CMakeFiles/UtilsTests.dir/LocalTest.cpp.o
[1001/1059] Building CXX object unittests/Transforms/Utils/CMakeFiles/UtilsTests.dir/IntegerDivisionTest.cpp.o
[1002/1059] Building CXX object unittests/Transforms/Utils/CMakeFiles/UtilsTests.dir/MemTransferLowering.cpp.o
[1003/1059] Building CXX object unittests/Transforms/Utils/CMakeFiles/UtilsTests.dir/LoopUtilsTest.cpp.o
[1004/1059] Linking CXX executable unittests/Target/X86/X86Tests
[1005/1059] Linking CXX executable unittests/Transforms/Coroutines/CoroTests
[1006/1059] Linking CXX executable unittests/Transforms/Instrumentation/InstrumentationTests
[1007/1059] Linking CXX executable unittests/Transforms/IPO/IPOTests
[1008/1059] Linking CXX executable unittests/Transforms/Scalar/ScalarTests
ninja: build stopped: subcommand failed.
Step 13 (ninja check 2) failure: stage 2 checked (failure)
...
[736/1059] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/PatternMatch.cpp.o
[737/1059] Building CXX object unittests/MC/CMakeFiles/MCTests.dir/StringTableBuilderTest.cpp.o
[738/1059] Building CXX object unittests/MC/CMakeFiles/MCTests.dir/MCDisassemblerTest.cpp.o
[739/1059] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/ValueMapTest.cpp.o
[740/1059] Building CXX object unittests/MC/CMakeFiles/MCTests.dir/MCInstPrinter.cpp.o
[741/1059] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/MetadataTest.cpp.o
[742/1059] Building CXX object unittests/MC/AMDGPU/CMakeFiles/AMDGPUMCTests.dir/DwarfRegMappings.cpp.o
[743/1059] Building CXX object unittests/Frontend/CMakeFiles/LLVMFrontendTests.dir/OpenMPIRBuilderTest.cpp.o
[744/1059] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/VFABIDemanglerTest.cpp.o
[745/1059] Building CXX object unittests/MC/AMDGPU/CMakeFiles/AMDGPUMCTests.dir/Disassembler.cpp.o
FAILED: unittests/MC/AMDGPU/CMakeFiles/AMDGPUMCTests.dir/Disassembler.cpp.o 
/home/tcwg-buildbot/worker/clang-armv8-lld-2stage/stage1.install/bin/clang++ -DGTEST_HAS_PTHREAD=0 -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-armv8-lld-2stage/stage2/unittests/MC/AMDGPU -I/home/tcwg-buildbot/worker/clang-armv8-lld-2stage/llvm/llvm/unittests/MC/AMDGPU -I/home/tcwg-buildbot/worker/clang-armv8-lld-2stage/stage2/include -I/home/tcwg-buildbot/worker/clang-armv8-lld-2stage/llvm/llvm/include -I/home/tcwg-buildbot/worker/clang-armv8-lld-2stage/llvm/llvm/lib/Target/AMDGPU -I/home/tcwg-buildbot/worker/clang-armv8-lld-2stage/stage2/lib/Target/AMDGPU -I/home/tcwg-buildbot/worker/clang-armv8-lld-2stage/llvm/third-party/unittest/googletest/include -I/home/tcwg-buildbot/worker/clang-armv8-lld-2stage/llvm/third-party/unittest/googlemock/include -mcpu=cortex-a57 -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-armv8-lld-2stage/llvm/llvm/unittests/MC/AMDGPU/Disassembler.cpp
/home/tcwg-buildbot/worker/clang-armv8-lld-2stage/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);
      |                                           ^~~~~~~~
/home/tcwg-buildbot/worker/clang-armv8-lld-2stage/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,
      |                                                                ^
/home/tcwg-buildbot/worker/clang-armv8-lld-2stage/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);
      |                                           ^~~~~~~~
/home/tcwg-buildbot/worker/clang-armv8-lld-2stage/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,
      |                                                                ^
/home/tcwg-buildbot/worker/clang-armv8-lld-2stage/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);
      |                                      ^~~~~~~~
/home/tcwg-buildbot/worker/clang-armv8-lld-2stage/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.
[746/1059] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/COFFObjectFileTest.cpp.o
[747/1059] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/VPIntrinsicTest.cpp.o
[748/1059] Building CXX object unittests/MC/X86/CMakeFiles/X86MCTests.dir/X86MCDisassemblerTest.cpp.o
[749/1059] Building CXX object unittests/MC/SystemZ/CMakeFiles/SystemZAsmLexerTests.dir/SystemZAsmLexerTest.cpp.o
[750/1059] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/ArchiveTest.cpp.o
[751/1059] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/DXContainerTest.cpp.o
[752/1059] Building CXX object unittests/MC/CMakeFiles/MCTests.dir/DwarfLineTableHeaders.cpp.o
[753/1059] Building CXX object unittests/ObjCopy/CMakeFiles/ObjCopyTests.dir/ObjCopyTest.cpp.o
[754/1059] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/ELFTypesTest.cpp.o
[755/1059] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/GOFFObjectFileTest.cpp.o
[756/1059] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/ELFTest.cpp.o
[757/1059] Building CXX object unittests/MI/CMakeFiles/MITests.dir/LiveIntervalTest.cpp.o
[758/1059] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/PassBuilderCallbacksTest.cpp.o
[759/1059] Building CXX object unittests/MIR/CMakeFiles/MIRTests.dir/MachineMetadata.cpp.o
[760/1059] Building CXX object unittests/Frontend/CMakeFiles/LLVMFrontendTests.dir/OpenMPDecompositionTest.cpp.o
[761/1059] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/ELFObjectFileTest.cpp.o
ninja: build stopped: subcommand failed.

```

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


More information about the llvm-commits mailing list