[Mesa-dev] [Bug 91826] Mesa 11.0.0-rc2 - state_trackers/clover does not build on FreeBSD

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Aug 31 11:51:48 PDT 2015


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

            Bug ID: 91826
           Summary: Mesa 11.0.0-rc2 - state_trackers/clover does not build
                    on FreeBSD
           Product: Mesa
           Version: 11.0
          Hardware: x86-64 (AMD64)
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Other
          Assignee: mesa-dev at lists.freedesktop.org
          Reporter: kwm at rainbow-runner.nl
        QA Contact: mesa-dev at lists.freedesktop.org

Mesa 11.0.0 rc2 doesn't build on FreeBSD with the build failure below. Used
compiler is Clang 3.6.1 and we use llvm's libc++ as c++ standard library.

This seems to be that clang is picky about this piece of code. A quick test
shows that GCC 5.2.1 build the code just fine, even if it issues a warning
about the issue clang errors on. 

Sorry my c++ know how is almost non existing, so can't help with making a patch
for this issue.

Clang:
src/gallium/state_trackers/clover % gmake
  CXX      llvm/libclllvm_la-invocation.lo
llvm/invocation.cpp:388:12: warning: unused variable 'str_node'
      [-Wunused-variable]
      auto str_node = llvm::cast<llvm::MDString>(node->getOperand(0));
           ^
llvm/invocation.cpp:468:40: error: typename specifier refers to non-type member
      'type' in 'clover::module::argument'
            typename module::argument::type marg_type;
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
./core/module.hpp:97:15: note: referenced member 'type' is declared here
         type type;
              ^
1 warning and 1 error generated.
Makefile:859: recipe for target 'llvm/libclllvm_la-invocation.lo' failed
gmake: *** [llvm/libclllvm_la-invocation.lo] Error 1


GCC:
  CXXLD    libcltgsi.la
llvm/invocation.cpp: In function 'llvm::MDNode*
{anonymous}::node_from_op_checked(const llvm::MDOperand&, llvm::StringRef,
unsigned int)':
llvm/invocation.cpp:388:12: warning: unused variable 'str_node'
[-Wunused-variable]
       auto str_node = llvm::cast<llvm::MDString>(node->getOperand(0));
            ^
In file included from ./core/compiler.hpp:27:0,
                 from llvm/invocation.cpp:23:
./core/module.hpp: In function 'std::vector<clover::module::argument>
{anonymous}::get_kernel_args(const llvm::Module*, const string&, const unsigned
int (&)[7])':
./core/module.hpp:86:50: warning: 'marg_type' may be used uninitialized in this
function [-Wmaybe-uninitialized]
             ext_type(ext_type), semantic(semantic) { }
                                                  ^
llvm/invocation.cpp:468:45: note: 'marg_type' was declared here
             typename module::argument::type marg_type;
                                             ^
  CXXLD    libclllvm.la

-- 
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: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150831/43c2b291/attachment.html>


More information about the mesa-dev mailing list