Beignet build fails with llvm 3.9
Submitted by sam..@..il.com
Assigned to Zhigang Gong @gongzg
Link to original bug (#105666)
Description
Created attachment 138255 Complete Build Log
I am trying to build Beignet 1.3 with LLVM 3.9 to enabled OPEN_CL 2.0 on my platform.
But the build fails with following error,
[ 55%] Linking CXX shared library libgbe.so /usr/bin/ld: /usr/lib/llvm-3.9/lib/libclangFrontend.a(CompilerInstance.cpp.o): unrecognised relocation (0x2a) in section `.text._ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EED2Ev[_ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EED5Ev]' /usr/bin/ld: final link failed: Bad value collect2: error: ld returned 1 exit status backend/src/CMakeFiles/gbe.dir/build.make:1756: recipe for target 'backend/src/libgbe.so' failed make[2]: *** [backend/src/libgbe.so] Error 1 CMakeFiles/Makefile2:238: recipe for target 'backend/src/CMakeFiles/gbe.dir/all' failed make[1]: *** [backend/src/CMakeFiles/gbe.dir/all] Error 2 Makefile:149: recipe for target 'all' failed make: *** [all] Error 2
The complete build log is attached with this bug.
Attachment 138255, "Complete Build Log":
build.log