[Mesa-dev] [Bug 111523] Clover - radeonsi: Mesa git - broken compilation with current LLVM 10.0.0

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Aug 29 22:41:05 UTC 2019


https://bugs.freedesktop.org/show_bug.cgi?id=111523

            Bug ID: 111523
           Summary: Clover - radeonsi: Mesa git - broken compilation with
                    current LLVM 10.0.0
           Product: Mesa
           Version: git
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: critical
          Priority: not set
         Component: Gallium/StateTracker/Clover
          Assignee: mesa-dev at lists.freedesktop.org
          Reporter: Dieter at nuetzel-hh.de
        QA Contact: mesa-dev at lists.freedesktop.org

../src/gallium/state_trackers/clover/llvm/invocation.cpp: In function
‘std::unique_ptr<clang::CompilerInstance>
{anonymous}::create_compiler_instance(const clover::device&, const
std::vector<std::__cxx11::basic_string<char> >&, std::string&)’:
../src/gallium/state_trackers/clover/llvm/invocation.cpp:203:81: error: no
matching function for call to
‘clang::CompilerInvocation::CreateFromArgs(clang::CompilerInvocation&, const
char* const*, const char* const*, clang::DiagnosticsEngine&)’
  203 |              c->getInvocation(), copts.data(), copts.data() +
copts.size(), diag))
      |                                                                        
        ^
In file included from /usr/local/include/clang/Frontend/CompilerInstance.h:15,
                 from ../src/gallium/state_trackers/clover/llvm/codegen.hpp:37,
                 from
../src/gallium/state_trackers/clover/llvm/invocation.cpp:49:
/usr/local/include/clang/Frontend/CompilerInvocation.h:157:15: note: candidate:
‘static bool
clang::CompilerInvocation::CreateFromArgs(clang::CompilerInvocation&,
llvm::ArrayRef<const char*>, clang::DiagnosticsEngine&)’
  157 |   static bool CreateFromArgs(CompilerInvocation &Res,
      |               ^~~~~~~~~~~~~~
/usr/local/include/clang/Frontend/CompilerInvocation.h:157:15: note:  
candidate expects 3 arguments, 4 provided
../src/gallium/state_trackers/clover/llvm/invocation.cpp: In function
‘std::unique_ptr<llvm::Module> {anonymous}::link(llvm::LLVMContext&, const
clang::CompilerInstance&, const std::vector<clover::module>&, std::string&)’:
../src/gallium/state_trackers/clover/llvm/invocation.cpp:360:23: warning:
moving a local object in a return statement prevents copy elision
[-Wpessimizing-move]
  360 |       return std::move(mod);
      |              ~~~~~~~~~^~~~~
../src/gallium/state_trackers/clover/llvm/invocation.cpp:360:23: note: remove
‘std::move’ call

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20190829/edea8d9d/attachment.html>


More information about the mesa-dev mailing list