Opened 3 years ago

Closed 2 years ago

#64898 closed defect (fixed)

llvm-5.0 fails for ppc on 10.6.8 Rosetta due to a bug (?) in OrcRemoteTargetClient.h

Reported by: barracuda156 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: powerpc, llvm, snowleopard, rosetta Cc:
Port: llvm-5.0

Description

Building llvm-5.0 for ppc fails on 10.6.8 Rosetta on lli:

:info:build /usr/bin/make -f tools/lli/CMakeFiles/lli.dir/build.make tools/lli/CMakeFiles/lli.dir/depend
:info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/build'
:info:build cd /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/build && /opt/local/libexec/cmake-bootstrap/bin/cmake -E cmake_depends "Unix Makefiles" /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/tools/lli /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/build/tools/lli /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/build/tools/lli/CMakeFiles/lli.dir/DependInfo.cmake --color=
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/build'
:info:build /usr/bin/make -f tools/lli/CMakeFiles/lli.dir/build.make tools/lli/CMakeFiles/lli.dir/build
:info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/build'
:info:build [ 92%] Building CXX object tools/lli/CMakeFiles/lli.dir/lli.cpp.o
:info:build cd /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/build/tools/lli && /opt/local/bin/g++-mp-11  -DLLVM_BUILD_GLOBAL_ISEL -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/build/tools/lli -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/tools/lli -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/build/include -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include  -pipe -Os -U__STRICT_ANSI__ -std=c++11 -fPIC -fvisibility-inlines-hidden -Werror=date-time -std=c++11 -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wno-maybe-uninitialized -Wdelete-non-virtual-dtor -Wno-comment -DNDEBUG -arch ppc -mmacosx-version-min=10.6    -fno-exceptions -o CMakeFiles/lli.dir/lli.cpp.o -c /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/tools/lli/lli.cpp
:info:build In file included from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/CodeGen/LinkAllCodegenComponents.h:20,
:info:build                  from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/tools/lli/lli.cpp:22:
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/CodeGen/SchedulerRegistry.h: In constructor 'llvm::RegisterScheduler::RegisterScheduler(const char*, const char*, llvm::RegisterScheduler::FunctionPassCtor)':
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/CodeGen/SchedulerRegistry.h:40:35: warning: cast between incompatible function types from 'llvm::RegisterScheduler::FunctionPassCtor' {aka 'llvm::ScheduleDAGSDNodes* (*)(llvm::SelectionDAGISel*, llvm::CodeGenOpt::Level)'} to 'llvm::MachinePassCtor' {aka 'void* (*)()'} [-Wcast-function-type]
:info:build    40 |   : MachinePassRegistryNode(N, D, (MachinePassCtor)C)
:info:build       |                                   ^~~~~~~~~~~~~~~~~~
:info:build In file included from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/tools/lli/lli.cpp:30:
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h: In member function 'llvm::Expected<std::vector<char> > llvm::orc::remote::OrcRemoteTargetClient<ChannelT>::readMem(char*, llvm::JITTargetAddress, uint64_t)':
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h:722:26: error: could not convert '((llvm::orc::remote::OrcRemoteTargetClient<ChannelT>*)this)->callB<llvm::orc::remote::OrcRemoteTargetRPCAPI::ReadMem>(Src, Size)' from 'Expected<vector<unsigned char,allocator<unsigned char>>>' to 'Expected<vector<char,allocator<char>>>'
:info:build   722 |     return callB<ReadMem>(Src, Size);
:info:build       |            ~~~~~~~~~~~~~~^~~~~~~~~~~
:info:build       |                          |
:info:build       |                          Expected<vector<unsigned char,allocator<unsigned char>>>
:info:build In file included from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/tools/lli/OrcLazyJIT.h:21,
:info:build                  from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/tools/lli/lli.cpp:16:
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h: In instantiation of 'llvm::JITSymbol llvm::orc::CompileOnDemandLayer<BaseLayerT, CompileCallbackMgrT, IndirectStubsMgrT>::findSymbol(llvm::StringRef, bool) [with BaseLayerT = llvm::orc::IRTransformLayer<llvm::orc::IRCompileLayer<llvm::orc::RTDyldObjectLinkingLayer, llvm::orc::SimpleCompiler>, std::function<std::shared_ptr<llvm::Module>(std::shared_ptr<llvm::Module>)> >; CompileCallbackMgrT = llvm::orc::JITCompileCallbackManager; IndirectStubsMgrT = llvm::orc::IndirectStubsManager]':
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/tools/lli/OrcLazyJIT.h:119:47:   required from here
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h:273:29: warning: redundant move in return statement [-Wredundant-move]
:info:build   273 |         return std::move(Err);
:info:build       |                             ^
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h:273:29: note: remove 'std::move' call
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h: In instantiation of 'llvm::Expected<typename std::__cxx11::list<llvm::orc::CompileOnDemandLayer<BaseLayerT, CompileCallbackMgrT, IndirectStubsMgrT>::LogicalDylib>::iterator> llvm::orc::CompileOnDemandLayer<BaseLayerT, CompileCallbackMgrT, IndirectStubsMgrT>::addModule(std::shared_ptr<llvm::Module>, std::shared_ptr<llvm::JITSymbolResolver>) [with BaseLayerT = llvm::orc::IRTransformLayer<llvm::orc::IRCompileLayer<llvm::orc::RTDyldObjectLinkingLayer, llvm::orc::SimpleCompiler>, std::function<std::shared_ptr<llvm::Module>(std::shared_ptr<llvm::Module>)> >; CompileCallbackMgrT = llvm::orc::JITCompileCallbackManager; IndirectStubsMgrT = llvm::orc::IndirectStubsManager; typename std::__cxx11::list<llvm::orc::CompileOnDemandLayer<BaseLayerT, CompileCallbackMgrT, IndirectStubsMgrT>::LogicalDylib>::iterator = std::__cxx11::list<llvm::orc::CompileOnDemandLayer<llvm::orc::IRTransformLayer<llvm::orc::IRCompileLayer<llvm::orc::RTDyldObjectLinkingLayer, llvm::orc::SimpleCompiler>, std::function<std::shared_ptr<llvm::Module>(std::shared_ptr<llvm::Module>)> >, llvm::orc::JITCompileCallbackManager>::LogicalDylib, std::allocator<llvm::orc::CompileOnDemandLayer<llvm::orc::IRTransformLayer<llvm::orc::IRCompileLayer<llvm::orc::RTDyldObjectLinkingLayer, llvm::orc::SimpleCompiler>, std::function<std::shared_ptr<llvm::Module>(std::shared_ptr<llvm::Module>)> >, llvm::orc::JITCompileCallbackManager>::LogicalDylib> >::iterator]':
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/tools/lli/OrcLazyJIT.h:133:29:   required from here
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h:241:27: warning: redundant move in return statement [-Wredundant-move]
:info:build   241 |       return std::move(Err);
:info:build       |                           ^
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h:241:27: note: remove 'std::move' call
:info:build In file included from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/tools/lli/lli.cpp:30:
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h: In instantiation of 'static llvm::Expected<std::unique_ptr<llvm::orc::remote::OrcRemoteTargetClient<ChannelT> > > llvm::orc::remote::OrcRemoteTargetClient<ChannelT>::Create(ChannelT&) [with ChannelT = llvm::orc::rpc::RawByteChannel]':
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/tools/lli/lli.cpp:662:34:   required from here
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h:575:27: warning: redundant move in return statement [-Wredundant-move]
:info:build   575 |       return std::move(Err);
:info:build       |                           ^
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h:575:27: note: remove 'std::move' call
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h:576:28: warning: redundant move in return statement [-Wredundant-move]
:info:build   576 |     return std::move(Client);
:info:build       |                            ^
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h:576:28: note: remove 'std::move' call
:info:build In file included from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/tools/lli/OrcLazyJIT.h:21,
:info:build                  from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/tools/lli/lli.cpp:16:
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h: In instantiation of 'llvm::Error llvm::orc::CompileOnDemandLayer<BaseLayerT, CompileCallbackMgrT, IndirectStubsMgrT>::addLogicalModule(llvm::orc::CompileOnDemandLayer<BaseLayerT, CompileCallbackMgrT, IndirectStubsMgrT>::LogicalDylib&, std::shared_ptr<llvm::Module>) [with BaseLayerT = llvm::orc::IRTransformLayer<llvm::orc::IRCompileLayer<llvm::orc::RTDyldObjectLinkingLayer, llvm::orc::SimpleCompiler>, std::function<std::shared_ptr<llvm::Module>(std::shared_ptr<llvm::Module>)> >; CompileCallbackMgrT = llvm::orc::JITCompileCallbackManager; IndirectStubsMgrT = llvm::orc::IndirectStubsManager]':
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h:240:20:   required from 'llvm::Expected<typename std::__cxx11::list<llvm::orc::CompileOnDemandLayer<BaseLayerT, CompileCallbackMgrT, IndirectStubsMgrT>::LogicalDylib>::iterator> llvm::orc::CompileOnDemandLayer<BaseLayerT, CompileCallbackMgrT, IndirectStubsMgrT>::addModule(std::shared_ptr<llvm::Module>, std::shared_ptr<llvm::JITSymbolResolver>) [with BaseLayerT = llvm::orc::IRTransformLayer<llvm::orc::IRCompileLayer<llvm::orc::RTDyldObjectLinkingLayer, llvm::orc::SimpleCompiler>, std::function<std::shared_ptr<llvm::Module>(std::shared_ptr<llvm::Module>)> >; CompileCallbackMgrT = llvm::orc::JITCompileCallbackManager; IndirectStubsMgrT = llvm::orc::IndirectStubsManager; typename std::__cxx11::list<llvm::orc::CompileOnDemandLayer<BaseLayerT, CompileCallbackMgrT, IndirectStubsMgrT>::LogicalDylib>::iterator = std::__cxx11::list<llvm::orc::CompileOnDemandLayer<llvm::orc::IRTransformLayer<llvm::orc::IRCompileLayer<llvm::orc::RTDyldObjectLinkingLayer, llvm::orc::SimpleCompiler>, std::function<std::shared_ptr<llvm::Module>(std::shared_ptr<llvm::Module>)> >, llvm::orc::JITCompileCallbackManager>::LogicalDylib, std::allocator<llvm::orc::CompileOnDemandLayer<llvm::orc::IRTransformLayer<llvm::orc::IRCompileLayer<llvm::orc::RTDyldObjectLinkingLayer, llvm::orc::SimpleCompiler>, std::function<std::shared_ptr<llvm::Module>(std::shared_ptr<llvm::Module>)> >, llvm::orc::JITCompileCallbackManager>::LogicalDylib> >::iterator]'
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/tools/lli/OrcLazyJIT.h:133:29:   required from here
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h:342:33: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
:info:build   342 |             return std::move(Err);
:info:build       |                                 ^
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h:342:33: note: remove 'std::move' call
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h:467:33: warning: redundant move in return statement [-Wredundant-move]
:info:build   467 |             return std::move(Err);
:info:build       |                                 ^
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h:467:33: note: remove 'std::move' call
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h: In instantiation of 'llvm::JITSymbol llvm::orc::CompileOnDemandLayer<BaseLayerT, CompileCallbackMgrT, IndirectStubsMgrT>::LogicalDylib::findSymbol(BaseLayerT&, const string&, bool) [with BaseLayerT = llvm::orc::IRTransformLayer<llvm::orc::IRCompileLayer<llvm::orc::RTDyldObjectLinkingLayer, llvm::orc::SimpleCompiler>, std::function<std::shared_ptr<llvm::Module>(std::shared_ptr<llvm::Module>)> >; CompileCallbackMgrT = llvm::orc::JITCompileCallbackManager; IndirectStubsMgrT = llvm::orc::IndirectStubsManager; std::string = std::__cxx11::basic_string<char>]':
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h:282:25:   required from 'llvm::JITSymbol llvm::orc::CompileOnDemandLayer<BaseLayerT, CompileCallbackMgrT, IndirectStubsMgrT>::findSymbolIn(llvm::orc::CompileOnDemandLayer<BaseLayerT, CompileCallbackMgrT, IndirectStubsMgrT>::ModuleHandleT, const string&, bool) [with BaseLayerT = llvm::orc::IRTransformLayer<llvm::orc::IRCompileLayer<llvm::orc::RTDyldObjectLinkingLayer, llvm::orc::SimpleCompiler>, std::function<std::shared_ptr<llvm::Module>(std::shared_ptr<llvm::Module>)> >; CompileCallbackMgrT = llvm::orc::JITCompileCallbackManager; IndirectStubsMgrT = llvm::orc::IndirectStubsManager; llvm::orc::CompileOnDemandLayer<BaseLayerT, CompileCallbackMgrT, IndirectStubsMgrT>::ModuleHandleT = std::__cxx11::list<llvm::orc::CompileOnDemandLayer<llvm::orc::IRTransformLayer<llvm::orc::IRCompileLayer<llvm::orc::RTDyldObjectLinkingLayer, llvm::orc::SimpleCompiler>, std::function<std::shared_ptr<llvm::Module>(std::shared_ptr<llvm::Module>)> >, llvm::orc::JITCompileCallbackManager>::LogicalDylib, std::allocator<llvm::orc::CompileOnDemandLayer<llvm::orc::IRTransformLayer<llvm::orc::IRCompileLayer<llvm::orc::RTDyldObjectLinkingLayer, llvm::orc::SimpleCompiler>, std::function<std::shared_ptr<llvm::Module>(std::shared_ptr<llvm::Module>)> >, llvm::orc::JITCompileCallbackManager>::LogicalDylib> >::iterator; std::string = std::__cxx11::basic_string<char>]'
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/tools/lli/OrcLazyJIT.h:160:33:   required from here
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h:181:31: warning: redundant move in return statement [-Wredundant-move]
:info:build   181 |           return std::move(Err);
:info:build       |                               ^
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h:181:31: note: remove 'std::move' call
:info:build In file included from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ADT/STLExtras.h:32,
:info:build                  from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/tools/lli/OrcLazyJIT.h:18,
:info:build                  from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/tools/lli/lli.cpp:16:
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ADT/SmallVector.h: In instantiation of 'void llvm::SmallVectorTemplateBase<T, true>::push_back(const T&) [with T = std::pair<void*, long unsigned int>]':
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/Support/Allocator.h:247:33:   required from 'void* llvm::BumpPtrAllocatorImpl<AllocatorT, SlabSize, SizeThreshold>::Allocate(size_t, size_t) [with AllocatorT = llvm::MallocAllocator; long unsigned int SlabSize = 4096; long unsigned int SizeThreshold = 4096; size_t = long unsigned int]'
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/Support/YAMLParser.h:130:26:   required from here
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ADT/SmallVector.h:309:11: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'struct std::pair<void*, long unsigned int>' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
:info:build   309 |     memcpy(this->end(), &Elt, sizeof(T));
:info:build       |     ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build In file included from /opt/local/include/gcc11/c++/utility:70,
:info:build                  from /opt/local/include/gcc11/c++/algorithm:60,
:info:build                  from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ADT/STLExtras.h:20,
:info:build                  from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/tools/lli/OrcLazyJIT.h:18,
:info:build                  from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/tools/lli/lli.cpp:16:
:info:build /opt/local/include/gcc11/c++/bits/stl_pair.h:211:12: note: 'struct std::pair<void*, long unsigned int>' declared here
:info:build   211 |     struct pair
:info:build       |            ^~~~
:info:build In file included from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetRPCAPI.h:20,
:info:build                  from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h:25,
:info:build                  from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/tools/lli/lli.cpp:30:
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h: In instantiation of 'typename llvm::orc::rpc::detail::ResultTraits<AltRetT>::ErrorReturnType llvm::orc::rpc::SingleThreadedRPCEndpoint<ChannelT, FunctionIdT, SequenceNumberT>::callB(const ArgTs& ...) [with Func = llvm::orc::remote::OrcRemoteTargetRPCAPI::CreateRemoteAllocator; ArgTs = {long long unsigned int}; AltRetT = void; ChannelT = llvm::orc::rpc::RawByteChannel; FunctionIdT = unsigned int; SequenceNumberT = unsigned int; typename llvm::orc::rpc::detail::ResultTraits<AltRetT>::ErrorReturnType = llvm::Error]':
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h:609:48:   required from 'llvm::Error llvm::orc::remote::OrcRemoteTargetClient<ChannelT>::createRemoteMemoryManager(std::unique_ptr<llvm::orc::remote::OrcRemoteTargetClient<ChannelT>::RCMemoryManager>&) [with ChannelT = llvm::orc::rpc::RawByteChannel]'
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/tools/lli/lli.cpp:666:43:   required from here
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1584:27: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
:info:build  1584 |       return std::move(Err);
:info:build       |                           ^
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1584:27: note: remove 'std::move' call
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1591:29: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
:info:build  1591 |         return std::move(Err);
:info:build       |                             ^
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1591:29: note: remove 'std::move' call
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h: In instantiation of 'typename llvm::orc::rpc::detail::ResultTraits<AltRetT>::ErrorReturnType llvm::orc::rpc::SingleThreadedRPCEndpoint<ChannelT, FunctionIdT, SequenceNumberT>::callB(const ArgTs& ...) [with Func = llvm::orc::remote::OrcRemoteTargetRPCAPI::GetSymbolAddress; ArgTs = {llvm::StringRef}; AltRetT = long long unsigned int; ChannelT = llvm::orc::rpc::RawByteChannel; FunctionIdT = unsigned int; SequenceNumberT = unsigned int; typename llvm::orc::rpc::detail::ResultTraits<AltRetT>::ErrorReturnType = llvm::Expected<long long unsigned int>]':
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h:650:35:   required from 'llvm::Expected<long long unsigned int> llvm::orc::remote::OrcRemoteTargetClient<ChannelT>::getSymbolAddress(llvm::StringRef) [with ChannelT = llvm::orc::rpc::RawByteChannel]'
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/tools/lli/lli.cpp:677:56:   required from here
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1584:27: warning: redundant move in return statement [-Wredundant-move]
:info:build  1584 |       return std::move(Err);
:info:build       |                           ^
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1584:27: note: remove 'std::move' call
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1591:29: warning: redundant move in return statement [-Wredundant-move]
:info:build  1591 |         return std::move(Err);
:info:build       |                             ^
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1591:29: note: remove 'std::move' call
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h: In instantiation of 'typename llvm::orc::rpc::detail::ResultTraits<AltRetT>::ErrorReturnType llvm::orc::rpc::SingleThreadedRPCEndpoint<ChannelT, FunctionIdT, SequenceNumberT>::callB(const ArgTs& ...) [with Func = llvm::orc::remote::OrcRemoteTargetRPCAPI::CallIntVoid; ArgTs = {long long unsigned int}; AltRetT = int; ChannelT = llvm::orc::rpc::RawByteChannel; FunctionIdT = unsigned int; SequenceNumberT = unsigned int; typename llvm::orc::rpc::detail::ResultTraits<AltRetT>::ErrorReturnType = llvm::Expected<int>]':
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h:583:30:   required from 'llvm::Expected<int> llvm::orc::remote::OrcRemoteTargetClient<ChannelT>::callIntVoid(llvm::JITTargetAddress) [with ChannelT = llvm::orc::rpc::RawByteChannel; llvm::JITTargetAddress = long long unsigned int]'
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/tools/lli/lli.cpp:690:38:   required from here
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1584:27: warning: redundant move in return statement [-Wredundant-move]
:info:build  1584 |       return std::move(Err);
:info:build       |                           ^
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1584:27: note: remove 'std::move' call
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1591:29: warning: redundant move in return statement [-Wredundant-move]
:info:build  1591 |         return std::move(Err);
:info:build       |                             ^
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1591:29: note: remove 'std::move' call
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h: In instantiation of 'typename llvm::orc::rpc::detail::ResultTraits<AltRetT>::ErrorReturnType llvm::orc::rpc::SingleThreadedRPCEndpoint<ChannelT, FunctionIdT, SequenceNumberT>::callB(const ArgTs& ...) [with Func = llvm::orc::remote::OrcRemoteTargetRPCAPI::TerminateSession; ArgTs = {}; AltRetT = void; ChannelT = llvm::orc::rpc::RawByteChannel; FunctionIdT = unsigned int; SequenceNumberT = unsigned int; typename llvm::orc::rpc::detail::ResultTraits<AltRetT>::ErrorReturnType = llvm::Error]':
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h:656:60:   required from 'llvm::Error llvm::orc::remote::OrcRemoteTargetClient<ChannelT>::terminateSession() [with ChannelT = llvm::orc::rpc::RawByteChannel]'
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/tools/lli/lli.cpp:701:34:   required from here
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1584:27: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
:info:build  1584 |       return std::move(Err);
:info:build       |                           ^
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1584:27: note: remove 'std::move' call
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1591:29: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
:info:build  1591 |         return std::move(Err);
:info:build       |                             ^
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1591:29: note: remove 'std::move' call
:info:build In file included from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/tools/lli/OrcLazyJIT.h:21,
:info:build                  from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/tools/lli/lli.cpp:16:
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h: In instantiation of 'llvm::Expected<long long unsigned int> llvm::orc::CompileOnDemandLayer<BaseLayerT, CompileCallbackMgrT, IndirectStubsMgrT>::extractAndCompile(llvm::orc::CompileOnDemandLayer<BaseLayerT, CompileCallbackMgrT, IndirectStubsMgrT>::LogicalDylib&, typename llvm::orc::CompileOnDemandLayer<BaseLayerT, CompileCallbackMgrT, IndirectStubsMgrT>::LogicalDylib::SourceModuleHandle, llvm::Function&) [with BaseLayerT = llvm::orc::IRTransformLayer<llvm::orc::IRCompileLayer<llvm::orc::RTDyldObjectLinkingLayer, llvm::orc::SimpleCompiler>, std::function<std::shared_ptr<llvm::Module>(std::shared_ptr<llvm::Module>)> >; CompileCallbackMgrT = llvm::orc::JITCompileCallbackManager; IndirectStubsMgrT = llvm::orc::IndirectStubsManager; typename llvm::orc::CompileOnDemandLayer<BaseLayerT, CompileCallbackMgrT, IndirectStubsMgrT>::LogicalDylib::SourceModuleHandle = long unsigned int]':
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h:357:46:   required from 'llvm::Error llvm::orc::CompileOnDemandLayer<BaseLayerT, CompileCallbackMgrT, IndirectStubsMgrT>::addLogicalModule(llvm::orc::CompileOnDemandLayer<BaseLayerT, CompileCallbackMgrT, IndirectStubsMgrT>::LogicalDylib&, std::shared_ptr<llvm::Module>) [with BaseLayerT = llvm::orc::IRTransformLayer<llvm::orc::IRCompileLayer<llvm::orc::RTDyldObjectLinkingLayer, llvm::orc::SimpleCompiler>, std::function<std::shared_ptr<llvm::Module>(std::shared_ptr<llvm::Module>)> >; CompileCallbackMgrT = llvm::orc::JITCompileCallbackManager; IndirectStubsMgrT = llvm::orc::IndirectStubsManager]'
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h:240:20:   required from 'llvm::Expected<typename std::__cxx11::list<llvm::orc::CompileOnDemandLayer<BaseLayerT, CompileCallbackMgrT, IndirectStubsMgrT>::LogicalDylib>::iterator> llvm::orc::CompileOnDemandLayer<BaseLayerT, CompileCallbackMgrT, IndirectStubsMgrT>::addModule(std::shared_ptr<llvm::Module>, std::shared_ptr<llvm::JITSymbolResolver>) [with BaseLayerT = llvm::orc::IRTransformLayer<llvm::orc::IRCompileLayer<llvm::orc::RTDyldObjectLinkingLayer, llvm::orc::SimpleCompiler>, std::function<std::shared_ptr<llvm::Module>(std::shared_ptr<llvm::Module>)> >; CompileCallbackMgrT = llvm::orc::JITCompileCallbackManager; IndirectStubsMgrT = llvm::orc::IndirectStubsManager; typename std::__cxx11::list<llvm::orc::CompileOnDemandLayer<BaseLayerT, CompileCallbackMgrT, IndirectStubsMgrT>::LogicalDylib>::iterator = std::__cxx11::list<llvm::orc::CompileOnDemandLayer<llvm::orc::IRTransformLayer<llvm::orc::IRCompileLayer<llvm::orc::RTDyldObjectLinkingLayer, llvm::orc::SimpleCompiler>, std::function<std::shared_ptr<llvm::Module>(std::shared_ptr<llvm::Module>)> >, llvm::orc::JITCompileCallbackManager>::LogicalDylib, std::allocator<llvm::orc::CompileOnDemandLayer<llvm::orc::IRTransformLayer<llvm::orc::IRCompileLayer<llvm::orc::RTDyldObjectLinkingLayer, llvm::orc::SimpleCompiler>, std::function<std::shared_ptr<llvm::Module>(std::shared_ptr<llvm::Module>)> >, llvm::orc::JITCompileCallbackManager>::LogicalDylib> >::iterator]'
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/tools/lli/OrcLazyJIT.h:133:29:   required from here
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h:527:31: warning: redundant move in return statement [-Wredundant-move]
:info:build   527 |           return std::move(Err);
:info:build       |                               ^
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h:527:31: note: remove 'std::move' call
:info:build In file included from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetRPCAPI.h:20,
:info:build                  from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h:25,
:info:build                  from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/tools/lli/lli.cpp:30:
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h: In instantiation of 'typename llvm::orc::rpc::detail::ResultTraits<AltRetT>::ErrorReturnType llvm::orc::rpc::SingleThreadedRPCEndpoint<ChannelT, FunctionIdT, SequenceNumberT>::callB(const ArgTs& ...) [with Func = llvm::orc::remote::OrcRemoteTargetRPCAPI::GetRemoteInfo; ArgTs = {}; AltRetT = std::tuple<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned int, unsigned int, unsigned int, unsigned int>; ChannelT = llvm::orc::rpc::RawByteChannel; FunctionIdT = unsigned int; SequenceNumberT = unsigned int; typename llvm::orc::rpc::detail::ResultTraits<AltRetT>::ErrorReturnType = llvm::Expected<std::tuple<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned int, unsigned int, unsigned int, unsigned int> >]':
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h:670:44:   required from 'llvm::orc::remote::OrcRemoteTargetClient<ChannelT>::OrcRemoteTargetClient(ChannelT&, llvm::Error&) [with ChannelT = llvm::orc::rpc::RawByteChannel]'
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h:573:9:   required from 'static llvm::Expected<std::unique_ptr<llvm::orc::remote::OrcRemoteTargetClient<ChannelT> > > llvm::orc::remote::OrcRemoteTargetClient<ChannelT>::Create(ChannelT&) [with ChannelT = llvm::orc::rpc::RawByteChannel]'
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/tools/lli/lli.cpp:662:34:   required from here
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1584:27: warning: redundant move in return statement [-Wredundant-move]
:info:build  1584 |       return std::move(Err);
:info:build       |                           ^
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1584:27: note: remove 'std::move' call
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1591:29: warning: redundant move in return statement [-Wredundant-move]
:info:build  1591 |         return std::move(Err);
:info:build       |                             ^
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1591:29: note: remove 'std::move' call
:info:build In file included from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/tools/lli/OrcLazyJIT.h:21,
:info:build                  from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/tools/lli/lli.cpp:16:
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h: In instantiation of 'llvm::Expected<typename BaseLayerT::ModuleHandleT> llvm::orc::CompileOnDemandLayer<BaseLayerT, CompileCallbackMgrT, IndirectStubsMgrT>::emitPartition(llvm::orc::CompileOnDemandLayer<BaseLayerT, CompileCallbackMgrT, IndirectStubsMgrT>::LogicalDylib&, typename llvm::orc::CompileOnDemandLayer<BaseLayerT, CompileCallbackMgrT, IndirectStubsMgrT>::LogicalDylib::SourceModuleHandle, const PartitionT&) [with PartitionT = std::set<llvm::Function*>; BaseLayerT = llvm::orc::IRTransformLayer<llvm::orc::IRCompileLayer<llvm::orc::RTDyldObjectLinkingLayer, llvm::orc::SimpleCompiler>, std::function<std::shared_ptr<llvm::Module>(std::shared_ptr<llvm::Module>)> >; CompileCallbackMgrT = llvm::orc::JITCompileCallbackManager; IndirectStubsMgrT = llvm::orc::IndirectStubsManager; typename BaseLayerT::ModuleHandleT = std::__cxx11::list<std::unique_ptr<llvm::orc::RTDyldObjectLinkingLayerBase::LinkedObject> >::iterator; typename llvm::orc::CompileOnDemandLayer<BaseLayerT, CompileCallbackMgrT, IndirectStubsMgrT>::LogicalDylib::SourceModuleHandle = long unsigned int]':
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h:507:40:   required from 'llvm::Expected<long long unsigned int> llvm::orc::CompileOnDemandLayer<BaseLayerT, CompileCallbackMgrT, IndirectStubsMgrT>::extractAndCompile(llvm::orc::CompileOnDemandLayer<BaseLayerT, CompileCallbackMgrT, IndirectStubsMgrT>::LogicalDylib&, typename llvm::orc::CompileOnDemandLayer<BaseLayerT, CompileCallbackMgrT, IndirectStubsMgrT>::LogicalDylib::SourceModuleHandle, llvm::Function&) [with BaseLayerT = llvm::orc::IRTransformLayer<llvm::orc::IRCompileLayer<llvm::orc::RTDyldObjectLinkingLayer, llvm::orc::SimpleCompiler>, std::function<std::shared_ptr<llvm::Module>(std::shared_ptr<llvm::Module>)> >; CompileCallbackMgrT = llvm::orc::JITCompileCallbackManager; IndirectStubsMgrT = llvm::orc::IndirectStubsManager; typename llvm::orc::CompileOnDemandLayer<BaseLayerT, CompileCallbackMgrT, IndirectStubsMgrT>::LogicalDylib::SourceModuleHandle = long unsigned int]'
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h:357:46:   required from 'llvm::Error llvm::orc::CompileOnDemandLayer<BaseLayerT, CompileCallbackMgrT, IndirectStubsMgrT>::addLogicalModule(llvm::orc::CompileOnDemandLayer<BaseLayerT, CompileCallbackMgrT, IndirectStubsMgrT>::LogicalDylib&, std::shared_ptr<llvm::Module>) [with BaseLayerT = llvm::orc::IRTransformLayer<llvm::orc::IRCompileLayer<llvm::orc::RTDyldObjectLinkingLayer, llvm::orc::SimpleCompiler>, std::function<std::shared_ptr<llvm::Module>(std::shared_ptr<llvm::Module>)> >; CompileCallbackMgrT = llvm::orc::JITCompileCallbackManager; IndirectStubsMgrT = llvm::orc::IndirectStubsManager]'
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h:240:20:   required from 'llvm::Expected<typename std::__cxx11::list<llvm::orc::CompileOnDemandLayer<BaseLayerT, CompileCallbackMgrT, IndirectStubsMgrT>::LogicalDylib>::iterator> llvm::orc::CompileOnDemandLayer<BaseLayerT, CompileCallbackMgrT, IndirectStubsMgrT>::addModule(std::shared_ptr<llvm::Module>, std::shared_ptr<llvm::JITSymbolResolver>) [with BaseLayerT = llvm::orc::IRTransformLayer<llvm::orc::IRCompileLayer<llvm::orc::RTDyldObjectLinkingLayer, llvm::orc::SimpleCompiler>, std::function<std::shared_ptr<llvm::Module>(std::shared_ptr<llvm::Module>)> >; CompileCallbackMgrT = llvm::orc::JITCompileCallbackManager; IndirectStubsMgrT = llvm::orc::IndirectStubsManager; typename std::__cxx11::list<llvm::orc::CompileOnDemandLayer<BaseLayerT, CompileCallbackMgrT, IndirectStubsMgrT>::LogicalDylib>::iterator = std::__cxx11::list<llvm::orc::CompileOnDemandLayer<llvm::orc::IRTransformLayer<llvm::orc::IRCompileLayer<llvm::orc::RTDyldObjectLinkingLayer, llvm::orc::SimpleCompiler>, std::function<std::shared_ptr<llvm::Module>(std::shared_ptr<llvm::Module>)> >, llvm::orc::JITCompileCallbackManager>::LogicalDylib, std::allocator<llvm::orc::CompileOnDemandLayer<llvm::orc::IRTransformLayer<llvm::orc::IRCompileLayer<llvm::orc::RTDyldObjectLinkingLayer, llvm::orc::SimpleCompiler>, std::function<std::shared_ptr<llvm::Module>(std::shared_ptr<llvm::Module>)> >, llvm::orc::JITCompileCallbackManager>::LogicalDylib> >::iterator]'
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/tools/lli/OrcLazyJIT.h:133:29:   required from here
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h:608:33: warning: redundant move in return statement [-Wredundant-move]
:info:build   608 |             return std::move(Err);
:info:build       |                                 ^
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h:608:33: note: remove 'std::move' call
:info:build In file included from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetRPCAPI.h:20,
:info:build                  from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h:25,
:info:build                  from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/tools/lli/lli.cpp:30:
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h: In instantiation of 'typename llvm::orc::rpc::detail::ResultTraits<AltRetT>::ErrorReturnType llvm::orc::rpc::SingleThreadedRPCEndpoint<ChannelT, FunctionIdT, SequenceNumberT>::callB(const ArgTs& ...) [with Func = llvm::orc::remote::OrcRemoteTargetRPCAPI::DestroyRemoteAllocator; ArgTs = {long long unsigned int}; AltRetT = void; ChannelT = llvm::orc::rpc::RawByteChannel; FunctionIdT = unsigned int; SequenceNumberT = unsigned int; typename llvm::orc::rpc::detail::ResultTraits<AltRetT>::ErrorReturnType = llvm::Error]':
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h:684:49:   required from 'void llvm::orc::remote::OrcRemoteTargetClient<ChannelT>::destroyRemoteAllocator(llvm::orc::remote::OrcRemoteTargetRPCAPI::ResourceIdMgr::ResourceId) [with ChannelT = llvm::orc::rpc::RawByteChannel; llvm::orc::remote::OrcRemoteTargetRPCAPI::ResourceIdMgr::ResourceId = long long unsigned int]'
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h:73:14:   required from 'llvm::orc::remote::OrcRemoteTargetClient<ChannelT>::RCMemoryManager::~RCMemoryManager() [with ChannelT = llvm::orc::rpc::RawByteChannel]'
:info:build /opt/local/include/gcc11/c++/bits/unique_ptr.h:85:2:   required from 'void std::default_delete<_Tp>::operator()(_Tp*) const [with _Tp = llvm::orc::remote::OrcRemoteTargetClient<llvm::orc::rpc::RawByteChannel>::RCMemoryManager]'
:info:build /opt/local/include/gcc11/c++/bits/unique_ptr.h:361:17:   required from 'std::unique_ptr<_Tp, _Dp>::~unique_ptr() [with _Tp = llvm::orc::remote::OrcRemoteTargetClient<llvm::orc::rpc::RawByteChannel>::RCMemoryManager; _Dp = std::default_delete<llvm::orc::remote::OrcRemoteTargetClient<llvm::orc::rpc::RawByteChannel>::RCMemoryManager>]'
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/tools/lli/lli.cpp:665:48:   required from here
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1584:27: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
:info:build  1584 |       return std::move(Err);
:info:build       |                           ^
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1584:27: note: remove 'std::move' call
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1591:29: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
:info:build  1591 |         return std::move(Err);
:info:build       |                             ^
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1591:29: note: remove 'std::move' call
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h: In instantiation of 'typename llvm::orc::rpc::detail::ResultTraits<AltRetT>::ErrorReturnType llvm::orc::rpc::SingleThreadedRPCEndpoint<ChannelT, FunctionIdT, SequenceNumberT>::callB(const ArgTs& ...) [with Func = llvm::orc::rpc::detail::RPCEndpointBase<llvm::orc::rpc::SingleThreadedRPCEndpoint<llvm::orc::rpc::RawByteChannel>, llvm::orc::rpc::RawByteChannel, unsigned int, unsigned int>::OrcRPCNegotiate; ArgTs = {const char*}; AltRetT = unsigned int; ChannelT = llvm::orc::rpc::RawByteChannel; FunctionIdT = unsigned int; SequenceNumberT = unsigned int; typename llvm::orc::rpc::detail::ResultTraits<AltRetT>::ErrorReturnType = llvm::Expected<unsigned int>]':
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1298:47:   required from 'llvm::Expected<T2> llvm::orc::rpc::detail::RPCEndpointBase<ImplT, ChannelT, FunctionIdT, SequenceNumberT>::getRemoteFunctionId(bool, bool) [with Func = llvm::orc::remote::OrcRemoteTargetRPCAPI::CreateRemoteAllocator; ImplT = llvm::orc::rpc::SingleThreadedRPCEndpoint<llvm::orc::rpc::RawByteChannel>; ChannelT = llvm::orc::rpc::RawByteChannel; FunctionIdT = unsigned int; SequenceNumberT = unsigned int]'
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1072:51:   required from 'llvm::Error llvm::orc::rpc::detail::RPCEndpointBase<ImplT, ChannelT, FunctionIdT, SequenceNumberT>::appendCallAsync(HandlerT, const ArgTs& ...) [with Func = llvm::orc::remote::OrcRemoteTargetRPCAPI::CreateRemoteAllocator; HandlerT = llvm::orc::rpc::SingleThreadedRPCEndpoint<llvm::orc::rpc::RawByteChannel>::callB<llvm::orc::remote::OrcRemoteTargetRPCAPI::CreateRemoteAllocator, long long unsigned int>(const long long unsigned int&)::<lambda(ResultType)>; ArgTs = {long long unsigned int}; ImplT = llvm::orc::rpc::SingleThreadedRPCEndpoint<llvm::orc::rpc::RawByteChannel>; ChannelT = llvm::orc::rpc::RawByteChannel; FunctionIdT = unsigned int; SequenceNumberT = unsigned int]'
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1575:56:   required from 'typename llvm::orc::rpc::detail::ResultTraits<AltRetT>::ErrorReturnType llvm::orc::rpc::SingleThreadedRPCEndpoint<ChannelT, FunctionIdT, SequenceNumberT>::callB(const ArgTs& ...) [with Func = llvm::orc::remote::OrcRemoteTargetRPCAPI::CreateRemoteAllocator; ArgTs = {long long unsigned int}; AltRetT = void; ChannelT = llvm::orc::rpc::RawByteChannel; FunctionIdT = unsigned int; SequenceNumberT = unsigned int; typename llvm::orc::rpc::detail::ResultTraits<AltRetT>::ErrorReturnType = llvm::Error]'
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h:609:48:   required from 'llvm::Error llvm::orc::remote::OrcRemoteTargetClient<ChannelT>::createRemoteMemoryManager(std::unique_ptr<llvm::orc::remote::OrcRemoteTargetClient<ChannelT>::RCMemoryManager>&) [with ChannelT = llvm::orc::rpc::RawByteChannel]'
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/tools/lli/lli.cpp:666:43:   required from here
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1584:27: warning: redundant move in return statement [-Wredundant-move]
:info:build  1584 |       return std::move(Err);
:info:build       |                           ^
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1584:27: note: remove 'std::move' call
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1591:29: warning: redundant move in return statement [-Wredundant-move]
:info:build  1591 |         return std::move(Err);
:info:build       |                             ^
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1591:29: note: remove 'std::move' call
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h: In instantiation of 'typename llvm::orc::rpc::detail::ResultTraits<AltRetT>::ErrorReturnType llvm::orc::rpc::SingleThreadedRPCEndpoint<ChannelT, FunctionIdT, SequenceNumberT>::callB(const ArgTs& ...) [with Func = llvm::orc::remote::OrcRemoteTargetRPCAPI::ReserveMem; ArgTs = {long long unsigned int, long long unsigned int, unsigned int}; AltRetT = long long unsigned int; ChannelT = llvm::orc::rpc::RawByteChannel; FunctionIdT = unsigned int; SequenceNumberT = unsigned int; typename llvm::orc::rpc::detail::ResultTraits<AltRetT>::ErrorReturnType = llvm::Expected<long long unsigned int>]':
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h:735:29:   required from 'llvm::Expected<long long unsigned int> llvm::orc::remote::OrcRemoteTargetClient<ChannelT>::reserveMem(llvm::orc::remote::OrcRemoteTargetRPCAPI::ResourceIdMgr::ResourceId, uint64_t, uint32_t) [with ChannelT = llvm::orc::rpc::RawByteChannel; llvm::orc::remote::OrcRemoteTargetRPCAPI::ResourceIdMgr::ResourceId = long long unsigned int; uint64_t = long long unsigned int; uint32_t = unsigned int]'
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h:120:37:   required from 'void llvm::orc::remote::OrcRemoteTargetClient<ChannelT>::RCMemoryManager::reserveAllocationSpace(uintptr_t, uint32_t, uintptr_t, uint32_t, uintptr_t, uint32_t) [with ChannelT = llvm::orc::rpc::RawByteChannel; uintptr_t = long unsigned int; uint32_t = unsigned int]'
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h:111:10:   required from here
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1584:27: warning: redundant move in return statement [-Wredundant-move]
:info:build  1584 |       return std::move(Err);
:info:build       |                           ^
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1584:27: note: remove 'std::move' call
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1591:29: warning: redundant move in return statement [-Wredundant-move]
:info:build  1591 |         return std::move(Err);
:info:build       |                             ^
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1591:29: note: remove 'std::move' call
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h: In instantiation of 'typename llvm::orc::rpc::detail::ResultTraits<AltRetT>::ErrorReturnType llvm::orc::rpc::SingleThreadedRPCEndpoint<ChannelT, FunctionIdT, SequenceNumberT>::callB(const ArgTs& ...) [with Func = llvm::orc::remote::OrcRemoteTargetRPCAPI::RegisterEHFrames; ArgTs = {long long unsigned int, unsigned int}; AltRetT = void; ChannelT = llvm::orc::rpc::RawByteChannel; FunctionIdT = unsigned int; SequenceNumberT = unsigned int; typename llvm::orc::rpc::detail::ResultTraits<AltRetT>::ErrorReturnType = llvm::Error]':
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h:680:35:   required from 'llvm::Error llvm::orc::remote::OrcRemoteTargetClient<ChannelT>::deregisterEHFrames(llvm::JITTargetAddress, uint32_t) [with ChannelT = llvm::orc::rpc::RawByteChannel; llvm::JITTargetAddress = long long unsigned int; uint32_t = unsigned int]'
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h:171:27:   required from 'void llvm::orc::remote::OrcRemoteTargetClient<ChannelT>::RCMemoryManager::deregisterEHFrames() [with ChannelT = llvm::orc::rpc::RawByteChannel]'
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h:169:10:   required from here
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1584:27: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
:info:build  1584 |       return std::move(Err);
:info:build       |                           ^
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1584:27: note: remove 'std::move' call
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1591:29: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
:info:build  1591 |         return std::move(Err);
:info:build       |                             ^
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1591:29: note: remove 'std::move' call
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h: In instantiation of 'typename llvm::orc::rpc::detail::ResultTraits<AltRetT>::ErrorReturnType llvm::orc::rpc::SingleThreadedRPCEndpoint<ChannelT, FunctionIdT, SequenceNumberT>::callB(const ArgTs& ...) [with Func = llvm::orc::remote::OrcRemoteTargetRPCAPI::WriteMem; ArgTs = {llvm::orc::remote::DirectBufferWriter}; AltRetT = void; ChannelT = llvm::orc::rpc::RawByteChannel; FunctionIdT = unsigned int; SequenceNumberT = unsigned int; typename llvm::orc::rpc::detail::ResultTraits<AltRetT>::ErrorReturnType = llvm::Error]':
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h:748:27:   required from 'llvm::Error llvm::orc::remote::OrcRemoteTargetClient<ChannelT>::writeMem(llvm::JITTargetAddress, const char*, uint64_t) [with ChannelT = llvm::orc::rpc::RawByteChannel; llvm::JITTargetAddress = long long unsigned int; uint64_t = long long unsigned int]'
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h:235:26:   required from 'bool llvm::orc::remote::OrcRemoteTargetClient<ChannelT>::RCMemoryManager::finalizeMemory(std::string*) [with ChannelT = llvm::orc::rpc::RawByteChannel; std::string = std::__cxx11::basic_string<char>]'
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h:225:10:   required from here
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1584:27: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
:info:build  1584 |       return std::move(Err);
:info:build       |                           ^
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1584:27: note: remove 'std::move' call
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1591:29: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
:info:build  1591 |         return std::move(Err);
:info:build       |                             ^
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1591:29: note: remove 'std::move' call
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h: In instantiation of 'typename llvm::orc::rpc::detail::ResultTraits<AltRetT>::ErrorReturnType llvm::orc::rpc::SingleThreadedRPCEndpoint<ChannelT, FunctionIdT, SequenceNumberT>::callB(const ArgTs& ...) [with Func = llvm::orc::remote::OrcRemoteTargetRPCAPI::SetProtections; ArgTs = {long long unsigned int, long long unsigned int, unsigned int}; AltRetT = void; ChannelT = llvm::orc::rpc::RawByteChannel; FunctionIdT = unsigned int; SequenceNumberT = unsigned int; typename llvm::orc::rpc::detail::ResultTraits<AltRetT>::ErrorReturnType = llvm::Error]':
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h:740:33:   required from 'llvm::Error llvm::orc::remote::OrcRemoteTargetClient<ChannelT>::setProtections(llvm::orc::remote::OrcRemoteTargetRPCAPI::ResourceIdMgr::ResourceId, llvm::JITTargetAddress, unsigned int) [with ChannelT = llvm::orc::rpc::RawByteChannel; llvm::orc::remote::OrcRemoteTargetRPCAPI::ResourceIdMgr::ResourceId = long long unsigned int; llvm::JITTargetAddress = long long unsigned int]'
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h:251:33:   required from 'bool llvm::orc::remote::OrcRemoteTargetClient<ChannelT>::RCMemoryManager::finalizeMemory(std::string*) [with ChannelT = llvm::orc::rpc::RawByteChannel; std::string = std::__cxx11::basic_string<char>]'
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h:225:10:   required from here
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1584:27: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
:info:build  1584 |       return std::move(Err);
:info:build       |                           ^
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1584:27: note: remove 'std::move' call
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1591:29: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
:info:build  1591 |         return std::move(Err);
:info:build       |                             ^
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1591:29: note: remove 'std::move' call
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h: In instantiation of 'typename llvm::orc::rpc::detail::ResultTraits<AltRetT>::ErrorReturnType llvm::orc::rpc::SingleThreadedRPCEndpoint<ChannelT, FunctionIdT, SequenceNumberT>::callB(const ArgTs& ...) [with Func = llvm::orc::remote::OrcRemoteTargetRPCAPI::EmitTrampolineBlock; ArgTs = {}; AltRetT = std::tuple<long long unsigned int, unsigned int>; ChannelT = llvm::orc::rpc::RawByteChannel; FunctionIdT = unsigned int; SequenceNumberT = unsigned int; typename llvm::orc::rpc::detail::ResultTraits<AltRetT>::ErrorReturnType = llvm::Expected<std::tuple<long long unsigned int, unsigned int> >]':
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h:707:38:   required from 'llvm::Expected<std::tuple<long long unsigned int, unsigned int> > llvm::orc::remote::OrcRemoteTargetClient<ChannelT>::emitTrampolineBlock() [with ChannelT = llvm::orc::rpc::RawByteChannel]'
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h:551:45:   required from 'void llvm::orc::remote::OrcRemoteTargetClient<ChannelT>::RCCompileCallbackManager::grow() [with ChannelT = llvm::orc::rpc::RawByteChannel]'
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h:548:10:   required from here
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1584:27: warning: redundant move in return statement [-Wredundant-move]
:info:build  1584 |       return std::move(Err);
:info:build       |                           ^
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1584:27: note: remove 'std::move' call
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1591:29: warning: redundant move in return statement [-Wredundant-move]
:info:build  1591 |         return std::move(Err);
:info:build       |                             ^
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/RPCUtils.h:1591:29: note: remove 'std::move' call
:info:build make[2]: *** [tools/lli/CMakeFiles/lli.dir/lli.cpp.o] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/build'
:info:build make[1]: *** [tools/lli/CMakeFiles/lli.dir/all] Error 2
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/build'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/build'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/build" && /usr/bin/make -j1 -w all VERBOSE=ON 
:info:build Exit code: 2
:error:build Failed to build llvm-5.0: command execution failed
:debug:build Error code: CHILDSTATUS 28497 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec -callback portprogress::target_progress_callback build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
:debug:build "$procedure $targetname"

The error is here:

:info:build In file included from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/tools/lli/lli.cpp:30:
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h: In member function 'llvm::Expected<std::vector<char> > llvm::orc::remote::OrcRemoteTargetClient<ChannelT>::readMem(char*, llvm::JITTargetAddress, uint64_t)':
:info:build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_llvm-5.0/llvm-5.0/work/llvm-5.0.2.src/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h:722:26: error: could not convert '((llvm::orc::remote::OrcRemoteTargetClient<ChannelT>*)this)->callB<llvm::orc::remote::OrcRemoteTargetRPCAPI::ReadMem>(Src, Size)' from 'Expected<vector<unsigned char,allocator<unsigned char>>>' to 'Expected<vector<char,allocator<char>>>'
:info:build   722 |     return callB<ReadMem>(Src, Size);
:info:build       |            ~~~~~~~~~~~~~~^~~~~~~~~~~
:info:build       |                          |
:info:build       |                          Expected<vector<unsigned char,allocator<unsigned char>>>

I have compared the section of relevant header to Iains’s here: https://github.com/iains/LLVM-7-branch/blob/7.1.1-Darwin-WIP/llvm/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h

And changed it to:

  Expected<std::vector<uint8_t>> readMem(char *Dst, JITTargetAddress Src,
                                         uint64_t Size) {
    return callB<ReadMem>(Src, Size);
  }

After this, the build resumed.

(I am not sure if it is a bug in llvm-5.0 code or just Rosetta didn’t like that, since on 10A190 I did not need to make this change.)

Change History (2)

comment:1 Changed 3 years ago by barracuda156

UPD. The error seems to be specific for +polly variant. I got it now on 10A190 when rebuilding previously built llvm-5.0 with +polly.

comment:2 Changed 2 years ago by mascguy (Christopher Nielsen)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.