[Beignet] [ANNOUNCE] Beignet 0.8.0

Zhigang Gong zhigang.gong at linux.intel.com
Thu Feb 13 07:15:16 CET 2014


Are you using LLVM/Clang 3.4?
If so, please check the notes for LLVM/Clang 3.4 in the README.md.

The root reason is llvm-config-3.4 has a bug which forgets to add -ltinfo in
the --libs even if the llvm/clang is built with terminfo.
There are three solutions here:
The first one is just to follow the guide in the README.md to rebuilt
llvm/clang without terminfo.
The second solution is to add tinfo into the beignet's cmake script, add the
following code into the CMake/FindLLVM.cmake.
if (LLVM_VERSION_NODOT VERSION_EQUAL 34)
set(LLVM_SYSTEM_LIBS, -ltinfo)
endif

The last one is to change to use LLVM/Clang 3.3 rather than 3.4.

> -----Original Message-----
> From: beignet-bounces at lists.freedesktop.org
> [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of Igor Gnatenko
> Sent: Thursday, February 13, 2014 11:36 AM
> To: Zhigang Gong
> Cc: michael.fu at intel.com; nanhai.zou at intel.com;
> beignet at lists.freedesktop.org
> Subject: Re: [Beignet] [ANNOUNCE] Beignet 0.8.0
> 
> On Wed, 2014-02-12 at 16:32 +0800, Zhigang Gong wrote:
> > Beignet 0.8.0 (2014-02-12)
> > =============================
> Hi,
> 
> I'm tried to build 0.8, but linking failed.
> 
> DEBUG: [  9%] Building CXX object
> backend/src/CMakeFiles/gbe_bin_generater.dir/gbe_bin_generater.cpp.o
> DEBUG: Linking CXX executable gbe_bin_generater
> DEBUG: /usr/lib64/llvm/libLLVMSupport.a(Process.o): In function
> `llvm::sys::Process::FileDescriptorHasColors(int)':
> DEBUG: (.text+0x717): undefined reference to `setupterm'
> DEBUG: /usr/lib64/llvm/libLLVMSupport.a(Process.o): In function
> `llvm::sys::Process::FileDescriptorHasColors(int)':
> DEBUG: (.text+0x727): undefined reference to `tigetnum'
> DEBUG: /usr/lib64/llvm/libLLVMSupport.a(Process.o): In function
> `llvm::sys::Process::FileDescriptorHasColors(int)':
> DEBUG: (.text+0x730): undefined reference to `set_curterm'
> DEBUG: /usr/lib64/llvm/libLLVMSupport.a(Process.o): In function
> `llvm::sys::Process::FileDescriptorHasColors(int)':
> DEBUG: (.text+0x738): undefined reference to `del_curterm'
> 
> ideas ?
> --
> -Igor Gnatenko
> 
> 
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/beignet



More information about the Beignet mailing list