Announcement

Collapse
No announcement yet.

Clover Native Object Code Lands In Mesa

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Clover Native Object Code Lands In Mesa

    Phoronix: Clover Native Object Code Lands In Mesa

    AMD's patches to add support to compiling to native object code for the "Clover" OpenCL state tracker in Mesa's Gallium3D and for the Radeon Gallium3D driver to take advantage of this functionality, has landed...

    http://www.phoronix.com/vr.php?view=MTgxNjU

  • #2
    Well, I compile mesa every week-end on my Slackware64 system with an AMD Kaveri APU, and apparently this commit could well break compilation for me. Here are the messages :


    Code:
    CXXLD    libcltgsi.la
    llvm/invocation.cpp: In function 'void {anonymous}::debug_log(const string&, const string&)':
    llvm/invocation.cpp:142:60: error: no matching function for call to 'std::basic_ofstream<char>::basic_ofstream(std::basic_string<char>, const openmode&)'
             std::ofstream file(dbg_file + suffix, std::ios::app);
                                                                ^
    llvm/invocation.cpp:142:60: note: candidates are:
    In file included from llvm/invocation.cpp:88:0:
    /usr/include/c++/4.8.3/fstream:640:7: note: std::basic_ofstream<_CharT, _Traits>::basic_ofstream(const char*, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits<char>; std::ios_base::openmode = std::_Ios_Openmode]
           basic_ofstream(const char* __s,
           ^
    /usr/include/c++/4.8.3/fstream:640:7: note:   no known conversion for argument 1 from 'std::basic_string<char>' to 'const char*'
    /usr/include/c++/4.8.3/fstream:625:7: note: std::basic_ofstream<_CharT, _Traits>::basic_ofstream() [with _CharT = char; _Traits = std::char_traits<char>]
           basic_ofstream(): __ostream_type(), _M_filebuf()
           ^
    /usr/include/c++/4.8.3/fstream:625:7: note:   candidate expects 0 arguments, 2 provided
    /usr/include/c++/4.8.3/fstream:599:11: note: std::basic_ofstream<char>::basic_ofstream(const std::basic_ofstream<char>&)
         class basic_ofstream : public basic_ostream<_CharT,_Traits>
               ^
    /usr/include/c++/4.8.3/fstream:599:11: note:   candidate expects 1 argument, 2 provided
    llvm/invocation.cpp: In function 'void {anonymous}::optimize(llvm::Module*, unsigned int, const std::vector<llvm::Function*>&)':
    llvm/invocation.cpp:324:18: error: expected type-specifier
           PM.add(new llvm::DataLayoutPass(mod));
                      ^
    make[3]: *** [llvm/libclllvm_la-invocation.lo] Erreur 1
    make[3] : on quitte le r?pertoire ? /usr/src/git/mesa/src/gallium/state_trackers/clover ?
    make[2]: *** [all-recursive] Erreur 1
    make[2] : on quitte le r?pertoire ? /usr/src/git/mesa/src/gallium ?
    make[1]: *** [all-recursive] Erreur 1
    make[1] : on quitte le r?pertoire ? /usr/src/git/mesa/src ?
    make: *** [all-recursive] Erreur 1
    [email protected]:/usr/src/git#
    Mesa compiled flawlessly last week-end.
    I compile with the following options :

    Code:
    --sysconfdir=/etc \
            --localstatedir=/var \
            --mandir=${PREFIX}/man \
            --libdir=${PREFIX}/lib64 \
            --includedir=${PREFIX}/include \
            --with-dri-driverdir=${PREFIX}/lib64/xorg/modules/dri \
            --with-gallium-drivers="r300,r600,radeonsi,svga,swrast" \
            --enable-gles2 \
            --enable-texture-float \
            --enable-dri3=enabled \
            --with-egl-platforms="x11,drm" \
            --enable-glx-tls \
            --enable-gbm \
            --enable-vdpau \
            --enable-opencl \
            --enable-opencl-icd \
            --build=${ARCH}-slackware-linux
    PREFIX is /usr

    Comment

    Working...
    X