Skip to content

Instantly share code, notes, and snippets.

@yurikoles
Created April 30, 2016 07:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yurikoles/1c6436c772b647fc3e6c74eca645ff09 to your computer and use it in GitHub Desktop.
Save yurikoles/1c6436c772b647fc3e6c74eca645ff09 to your computer and use it in GitHub Desktop.
make[3]: Entering directory '/tmp/mesa-git/src/mesa/src/gallium/state_trackers/clover'
CXX llvm/libclllvm_la-invocation.lo
llvm/invocation.cpp: In function 'llvm::Module* {anonymous}::compile_llvm(llvm::LLVMContext&, const string&, const header_map&, const string&, const string&, const string&, const string&, unsigned int (&)[7], unsigned int&, std::__cxx11::string&)':
llvm/invocation.cpp:212:75: error: no matching function for call to 'clang::CompilerInvocation::setLangDefaults(clang::LangOptions&, clang::InputKind, llvm::Triple, clang::LangStandard::Kind)'
clang::LangStandard::lang_opencl11);
^
In file included from /usr/include/clang/Frontend/CompilerInstance.h:17:0,
from llvm/invocation.cpp:25:
/usr/include/clang/Frontend/CompilerInvocation.h:157:15: note: candidate: static void clang::CompilerInvocation::setLangDefaults(clang::LangOptions&, clang::InputKind, clang::LangStandard::Kind)
static void setLangDefaults(LangOptions &Opts, InputKind IK,
^
/usr/include/clang/Frontend/CompilerInvocation.h:157:15: note: candidate expects 3 arguments, 4 provided
llvm/invocation.cpp: In function 'llvm::MDNode* {anonymous}::node_from_op_checked(const llvm::MDOperand&, llvm::StringRef, unsigned int)':
llvm/invocation.cpp:409:12: warning: unused variable 'str_node' [-Wunused-variable]
auto str_node = llvm::cast<llvm::MDString>(node->getOperand(0));
^
Makefile:873: recipe for target 'llvm/libclllvm_la-invocation.lo' failed
make[3]: *** [llvm/libclllvm_la-invocation.lo] Error 1
make[3]: Leaving directory '/tmp/mesa-git/src/mesa/src/gallium/state_trackers/clover'
Makefile:596: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/tmp/mesa-git/src/mesa/src/gallium'
Makefile:695: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/tmp/mesa-git/src/mesa/src'
Makefile:640: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
==> ERROR: A failure occurred in build().
@sirlucjan
Copy link

Try with newer llvm/clang version.

@steve80289
Copy link

Got the same error, but when using githubs latest versions of llvm and clang (Monday, May 2nd)

`Makefile:869:` recipe for target 'llvm/libclllvm_la-invocation.lo' failed
make[3]: *** [llvm/libclllvm_la-invocation.lo] Error 1
make[3]: Leaving directory '/home/steve/Downloads/mesa-11.2.1/src/gallium/state_trackers/clover'
Makefile:591: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/steve/Downloads/mesa-11.2.1/src/gallium'
Makefile:686: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/steve/Downloads/mesa-11.2.1/src'
Makefile:631: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

@kolasa
Copy link

kolasa commented Jun 22, 2016

revert 82e0bbd01abf "clover: Fix build against clang SVN >= r273191"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment