[llvm] [mlir] Pass memory buffer to RuntimeDyld::MemoryManager factory (PR #142930)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 5 18:05:34 PDT 2025
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `premerge-monolithic-linux` running on `premerge-linux-1` while building `llvm,mlir` at step 6 "build-unified-tree".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/153/builds/33974
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 6 (build-unified-tree) failure: build (failure)
...
5.352 [4484/28/137] Linking CXX executable bin/clang-reorder-fields
5.431 [4484/27/138] Linking CXX executable bin/clang-query
5.475 [4484/26/139] Linking CXX executable bin/pp-trace
5.480 [4484/25/140] Linking CXX executable bin/clang-include-cleaner
5.503 [4484/24/141] Linking CXX executable bin/tool-template
5.904 [4484/23/142] Linking CXX executable bin/clangd-indexer
5.928 [4484/22/143] Linking CXX executable bin/clangd-fuzzer
5.986 [4484/21/144] Linking CXX executable bin/clang-tidy
6.024 [4484/20/145] Linking CXX executable bin/clangd
6.050 [4484/19/146] Building CXX object examples/SpeculativeJIT/CMakeFiles/SpeculativeJIT.dir/SpeculativeJIT.cpp.o
FAILED: examples/SpeculativeJIT/CMakeFiles/SpeculativeJIT.dir/SpeculativeJIT.cpp.o
CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros /usr/bin/ccache /usr/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/build/buildbot/premerge-monolithic-linux/build/examples/SpeculativeJIT -I/build/buildbot/premerge-monolithic-linux/llvm-project/llvm/examples/SpeculativeJIT -I/build/buildbot/premerge-monolithic-linux/build/include -I/build/buildbot/premerge-monolithic-linux/llvm-project/llvm/include -gmlt -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 -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT examples/SpeculativeJIT/CMakeFiles/SpeculativeJIT.dir/SpeculativeJIT.cpp.o -MF examples/SpeculativeJIT/CMakeFiles/SpeculativeJIT.dir/SpeculativeJIT.cpp.o.d -o examples/SpeculativeJIT/CMakeFiles/SpeculativeJIT.dir/SpeculativeJIT.cpp.o -c /build/buildbot/premerge-monolithic-linux/llvm-project/llvm/examples/SpeculativeJIT/SpeculativeJIT.cpp
/build/buildbot/premerge-monolithic-linux/llvm-project/llvm/examples/SpeculativeJIT/SpeculativeJIT.cpp:144:36: error: no matching constructor for initialization of 'RTDyldObjectLinkingLayer'
RTDyldObjectLinkingLayer ObjLayer{*ES, createMemMgr};
^~~~~~~~~~~~~~~~~~~
/build/buildbot/premerge-monolithic-linux/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/RTDyldObjectLinkingLayer.h:58:3: note: candidate constructor not viable: no known conversion from 'std::unique_ptr<SectionMemoryManager> ()' to 'GetMemoryManagerFunction' (aka 'unique_function<std::unique_ptr<RuntimeDyld::MemoryManager> (const MemoryBuffer &)>') for 2nd argument
RTDyldObjectLinkingLayer(ExecutionSession &ES,
^
/build/buildbot/premerge-monolithic-linux/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/RTDyldObjectLinkingLayer.h:37:16: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 2 were provided
class LLVM_ABI RTDyldObjectLinkingLayer
^
1 error generated.
6.231 [4484/18/147] Building CXX object examples/OrcV2Examples/LLJITWithGDBRegistrationListener/CMakeFiles/LLJITWithGDBRegistrationListener.dir/LLJITWithGDBRegistrationListener.cpp.o
FAILED: examples/OrcV2Examples/LLJITWithGDBRegistrationListener/CMakeFiles/LLJITWithGDBRegistrationListener.dir/LLJITWithGDBRegistrationListener.cpp.o
CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros /usr/bin/ccache /usr/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/build/buildbot/premerge-monolithic-linux/build/examples/OrcV2Examples/LLJITWithGDBRegistrationListener -I/build/buildbot/premerge-monolithic-linux/llvm-project/llvm/examples/OrcV2Examples/LLJITWithGDBRegistrationListener -I/build/buildbot/premerge-monolithic-linux/build/include -I/build/buildbot/premerge-monolithic-linux/llvm-project/llvm/include -gmlt -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 -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT examples/OrcV2Examples/LLJITWithGDBRegistrationListener/CMakeFiles/LLJITWithGDBRegistrationListener.dir/LLJITWithGDBRegistrationListener.cpp.o -MF examples/OrcV2Examples/LLJITWithGDBRegistrationListener/CMakeFiles/LLJITWithGDBRegistrationListener.dir/LLJITWithGDBRegistrationListener.cpp.o.d -o examples/OrcV2Examples/LLJITWithGDBRegistrationListener/CMakeFiles/LLJITWithGDBRegistrationListener.dir/LLJITWithGDBRegistrationListener.cpp.o -c /build/buildbot/premerge-monolithic-linux/llvm-project/llvm/examples/OrcV2Examples/LLJITWithGDBRegistrationListener/LLJITWithGDBRegistrationListener.cpp
In file included from /build/buildbot/premerge-monolithic-linux/llvm-project/llvm/examples/OrcV2Examples/LLJITWithGDBRegistrationListener/LLJITWithGDBRegistrationListener.cpp:15:
In file included from /build/buildbot/premerge-monolithic-linux/llvm-project/llvm/include/llvm/ExecutionEngine/JITEventListener.h:19:
In file included from /build/buildbot/premerge-monolithic-linux/llvm-project/llvm/include/llvm/ExecutionEngine/RuntimeDyld.h:16:
In file included from /build/buildbot/premerge-monolithic-linux/llvm-project/llvm/include/llvm/ADT/FunctionExtras.h:36:
In file included from /build/buildbot/premerge-monolithic-linux/llvm-project/llvm/include/llvm/ADT/PointerUnion.h:20:
In file included from /build/buildbot/premerge-monolithic-linux/llvm-project/llvm/include/llvm/ADT/STLExtras.h:37:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/memory:76:
/usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/unique_ptr.h:962:34: error: no matching constructor for initialization of 'llvm::orc::RTDyldObjectLinkingLayer'
{ return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); }
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/buildbot/premerge-monolithic-linux/llvm-project/llvm/examples/OrcV2Examples/LLJITWithGDBRegistrationListener/LLJITWithGDBRegistrationListener.cpp:70:32: note: in instantiation of function template specialization 'std::make_unique<llvm::orc::RTDyldObjectLinkingLayer, llvm::orc::ExecutionSession &, (lambda at /build/buildbot/premerge-monolithic-linux/llvm-project/llvm/examples/OrcV2Examples/LLJITWithGDBRegistrationListener/LLJITWithGDBRegistrationListener.cpp:66:40)>' requested here
std::make_unique<RTDyldObjectLinkingLayer>(
^
/build/buildbot/premerge-monolithic-linux/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/RTDyldObjectLinkingLayer.h:58:3: note: candidate constructor not viable: no known conversion from '(lambda at /build/buildbot/premerge-monolithic-linux/llvm-project/llvm/examples/OrcV2Examples/LLJITWithGDBRegistrationListener/LLJITWithGDBRegistrationListener.cpp:66:40)' to 'GetMemoryManagerFunction' (aka 'unique_function<std::unique_ptr<RuntimeDyld::MemoryManager> (const MemoryBuffer &)>') for 2nd argument
RTDyldObjectLinkingLayer(ExecutionSession &ES,
^
/build/buildbot/premerge-monolithic-linux/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/RTDyldObjectLinkingLayer.h:37:16: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 2 were provided
class LLVM_ABI RTDyldObjectLinkingLayer
^
1 error generated.
6.290 [4484/17/148] Building CXX object lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/RTDyldObjectLinkingLayer.cpp.o
7.009 [4484/16/149] Building CXX object tools/clang/lib/Interpreter/CMakeFiles/obj.clangInterpreter.dir/IncrementalExecutor.cpp.o
7.845 [4484/15/150] Building CXX object examples/Kaleidoscope/BuildingAJIT/Chapter1/CMakeFiles/BuildingAJIT-Ch1.dir/toy.cpp.o
8.135 [4484/14/151] Building CXX object examples/Kaleidoscope/BuildingAJIT/Chapter2/CMakeFiles/BuildingAJIT-Ch2.dir/toy.cpp.o
```
</details>
https://github.com/llvm/llvm-project/pull/142930
More information about the llvm-commits
mailing list