clover: no member named 'setLangDefaults' in 'clang::CompilerInvocation' (compilation error)
System information
- OS: Ubuntu 21.10 impish and 20.04.4 focal
- Mesa version: 835704e6
Describe the issue
The error is very recent (probably introduced in the past week), as I build latest Mesa and LLVM from time to time using my user-mesa
script, and it was still working with commits from previous week.
In file included from ../src/gallium/frontends/clover/llvm/invocation.cpp:53:
../src/gallium/frontends/clover/llvm/compat.hpp:105:32: error: no member named 'setLangDefaults' in 'clang::CompilerInvocation'
c->getInvocation().setLangDefaults(c->getLangOpts(), ik, triple,
~~~~~~~~~~~~~~~~~~ ^
1 error generated.
ninja: build stopped: subcommand failed.
I was building on Ubuntu 20.04.4 focal when I reproduced the error, I reproduce it as well on Ubuntu 21.10 impish.
The script I use to build Mesa also builds latest meson and latest clang.
Regression
A recent build with Mesa commit e858da39 and LLVM commit 68f87acd compiled yesterday went fine (those commits are 7 days old).