[Beignet] Build failure with SVN LLVM (Fwd: AUR Comment for beignet-git)

Yichao Yu yyc1992 at gmail.com
Fri Sep 12 04:27:28 PDT 2014


THX for the fix.

CC'd the reporter since I did not see this problem myself.

On Fri, Sep 12, 2014 at 5:58 AM, Zhigang Gong
<zhigang.gong at linux.intel.com> wrote:
> Just pushed a patch to master branch to enable clang build.
>
> You can try to clean up the build tree, and configure it as below:
>
> cmake -DCOMPILER=CLANG ../beignet
>
> Then build. It works fine with my stock Clang/LLVM 3.5.0.
>
> On Fri, Sep 12, 2014 at 02:41:32AM -0400, Yichao Yu wrote:
>> Hi,
>>
>> The following error is reported on AUR when building beignet with svn
>> version of LLVM.
>>
>> THX.
>>
>> Yichao Yu.
>>
>> ---------- Forwarded message ----------
>> From:  <notify at aur.archlinux.org>
>> Date: Fri, Sep 12, 2014 at 2:34 AM
>> Subject: AUR Comment for beignet-git
>> To:
>>
>>
>> from https://aur.archlinux.org/pkgbase/beignet-git/
>> alaviss wrote:
>>
>> Failed to build with SVN LLVM:
>>
>> src/beignet/backend/src/llvm/llvm_bitcode_link.cpp:70:12: error:
>> assigning to 'llvm::Module *' from incompatible type
>>       'std::unique_ptr<Module>'
>>     oclLib = getLazyIRFileModule(FilePath, Err, ctx);
>>            ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> 1 error generated.
>> [  9%] backend/src/CMakeFiles/gbe.dir/build.make:606: recipe for
>> target 'backend/src/CMakeFiles/gbe.dir/llvm/llvm_bitcode_link.cpp.o'
>> failed
>> make[2]: ***
>> [backend/src/CMakeFiles/gbe.dir/llvm/llvm_bitcode_link.cpp.o] Error 1
>> make[2]: *** Waiting for unfinished jobs....
>> Building CXX object
>> backend/src/CMakeFiles/gbe.dir/llvm/llvm_passes.cpp.o
>> clang: warning: -Wl,-E: 'linker' input unused
>> src/beignet/backend/src/backend/program.cpp:613:19: error: no viable
>> conversion from 'std::unique_ptr<llvm::Module>' to
>>       'llvm::Module *'
>>     llvm::Module *module = Act->takeModule();
>>                   ^        ~~~~~~~~~~~~~~~~~
>> 1 error generated.
>> backend/src/CMakeFiles/gbe.dir/build.make:583: recipe for target
>> 'backend/src/CMakeFiles/gbe.dir/backend/program.cpp.o' failed
>> make[2]: *** [backend/src/CMakeFiles/gbe.dir/backend/program.cpp.o]
>> Error 1
>>
>> ---
>> If you no longer wish to receive notifications about this package,
>> please go the the above package page and click the UnNotify button.
>> _______________________________________________
>> Beignet mailing list
>> Beignet at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/beignet


More information about the Beignet mailing list