Bug 93007 - 'class llvm::IRBuilder<>' has no member named 'CreateCall2'
Summary: 'class llvm::IRBuilder<>' has no member named 'CreateCall2'
Status: RESOLVED FIXED
Alias: None
Product: Beignet
Classification: Unclassified
Component: Beignet (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Zhigang Gong
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-19 09:27 UTC by ilia
Modified: 2015-11-23 04:16 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
CMakeCache.txt (39.22 KB, text/plain)
2015-11-19 09:27 UTC, ilia
Details

Description ilia 2015-11-19 09:27:57 UTC
Created attachment 119930 [details]
CMakeCache.txt

Having temporally fixed https://bugs.freedesktop.org/show_bug.cgi?id=92882 with this script

grep -R "\-I/usr/lib/llvm-3.7/include" ./ |awk -F \: '{print $1}'|xargs sed -i -e 's:-I/usr/lib/llvm-3.7/include:-I/usr/lib/llvm-3.7/include -I/usr/include/llvm-3.7 -I/usr/include/llvm-c-3.7:g'
Or, the little different
grep -R "\-I/usr/lib/llvm-3.7/include" ./ |awk -F \: '{print $1}'|xargs sed -i -e 's:-I/usr/lib/llvm-3.7/include:-I/usr/include/llvm-3.7 -I/usr/include/llvm-c-3.7 -I/usr/lib/llvm-3.7/include:g'

Got this error
$ nice make    
[  8%] Built target beignet_bitcode
[  8%] Building CXX object backend/src/CMakeFiles/gbe.dir/llvm/llvm_profiling.cpp.o
/home/inferno/.dev/OpenCL/beignet/backend/src/llvm/llvm_profiling.cpp: In member function 'virtual bool gbe::ProfilingInserter::runOnFunction(llvm::Function&)':
/home/inferno/.dev/OpenCL/beignet/backend/src/llvm/llvm_profiling.cpp:180:16: error: 'class llvm::IRBuilder<>' has no member named 'CreateCall2'
       builder->CreateCall2(cast<llvm::Function>(module->getOrInsertFunction(
                ^
/home/inferno/.dev/OpenCL/beignet/backend/src/llvm/llvm_profiling.cpp:193:14: error: 'class llvm::IRBuilder<>' has no member named 'CreateCall2'
     builder->CreateCall2(cast<llvm::Function>(module->getOrInsertFunction(
              ^
backend/src/CMakeFiles/gbe.dir/build.make:836: recipe for target 'backend/src/CMakeFiles/gbe.dir/llvm/llvm_profiling.cpp.o' failed
make[2]: *** [backend/src/CMakeFiles/gbe.dir/llvm/llvm_profiling.cpp.o] Error 1
CMakeFiles/Makefile2:111: recipe for target 'backend/src/CMakeFiles/gbe.dir/all' failed
make[1]: *** [backend/src/CMakeFiles/gbe.dir/all] Error 2
Makefile:136: recipe for target 'all' failed
make: *** [all] Error 2
Comment 1 ilia 2015-11-23 04:16:30 UTC
Seems fixed with e5aceb38782e076d61cd4fed4f363aace614dc47


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.