[Beignet] Build failure with SVN LLVM (Fwd: AUR Comment for beignet-git)
Zhigang Gong
zhigang.gong at linux.intel.com
Fri Sep 12 02:58:59 PDT 2014
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