[Beignet] Compile error with LLVM3.5
Song, Ruiling
ruiling.song at intel.com
Mon Aug 25 21:53:28 PDT 2014
Yes, these functions are deprecated, I will fix it soon.
-----Original Message-----
From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of Pali Rohár
Sent: Sunday, August 24, 2014 6:33 PM
To: beignet at lists.freedesktop.org
Subject: [Beignet] Compile error with LLVM3.5
Hello, beignet from git cannot be compiled with LLVM3.5. Here is error log:
[ 7%] Building CXX object backend/src/CMakeFiles/gbe.dir/llvm/llvm_passes.cpp.o
cd /build/buildd/beignet-0.9.2/obj-x86_64-linux-gnu/backend/src && /usr/bin/g++-4.8 -Dgbe_EXPORTS -
DEMULATE_GEN=0 -DGEN7_SAMPLER_CLAMP_BORDER_WORKAROUND -DUSE_FULSIM=0 -Wall -Wno-invalid-offsetof - mfpmath=sse -fno-rtti -Wcast-align -std=c++0x -msse2 -msse3 -mssse3 -msse4.1 -g -O2 -fstack-protector --
param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -DGBE_COMPILER_AVAILABLE=1 - funroll-loops -Wstrict-aliasing=2 -fstrict-aliasing -msse2 -msse3 -mssse3 -msse4.1 -fPIC -Wall - I/usr/lib/llvm-3.5/include -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS - D__STDC_LIMIT_MACROS -Wno-invalid-offsetof -fno-rtti -std=c++0x -DGBE_DEBUG_MEMORY=0 -Wl,-E -
DGBE_DEBUG=1 -fPIC -I/build/buildd/beignet-0.9.2/obj-x86_64-linux-gnu -I/build/buildd/beignet-0.9.2 - I/usr/include/libdrm -I/build/buildd/beignet-0.9.2/obj-x86_64-linux-gnu/backend -
I/build/buildd/beignet-0.9.2/backend/src/. -D__buildd__ -DLLVM_35 -o
CMakeFiles/gbe.dir/llvm/llvm_passes.cpp.o -c /build/buildd/beignet-0.9.2/backend/src/llvm/llvm_passes.cpp
/build/buildd/beignet-0.9.2/backend/src/backend/program.cpp: In constructor
'gbe::CallBackInitializer::CallBackInitializer()':
/build/buildd/beignet-0.9.2/backend/src/backend/program.cpp:1264:7: error: 'llvm_start_multithreaded' is not a member of 'llvm'
llvm::llvm_start_multithreaded();
^
/build/buildd/beignet-0.9.2/backend/src/backend/program.cpp: In destructor
'gbe::CallBackInitializer::~CallBackInitializer()':
/build/buildd/beignet-0.9.2/backend/src/backend/program.cpp:1268:7: error: 'llvm_stop_multithreaded' is not a member of 'llvm'
llvm::llvm_stop_multithreaded();
^
It looks like functions llvm_start_multithreaded() and llvm_stop_multithreaded() were noop in LLVM3.5 and thus were removed.
--
Pali Rohár
pali.rohar at gmail.com
More information about the Beignet
mailing list