Public bug reported:
This package fails to build when built against LLVM 22:
/<<PKGBUILDDIR>>/src/opt.cpp:276:65: error: no matching function for call to
‘createFunctionToLoopPassAdaptor(std::remove_reference<llvm::PassManager<llvm::Loop,
llvm::AnalysisManager<llvm::Loop, llvm::LoopStandardAnalysisResults&>,
llvm::LoopStandardAnalysisResults&, llvm::LPMUpdater&>&>::type, bool&, bool&)’
276 |
fpmVec.back()->addPass(llvm::createFunctionToLoopPassAdaptor(std::move(*lastLPM),
m_memorySSA, m_blocksFreq));
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/opt.cpp:276:65: note: there is 1 candidate
In file included from /usr/lib/llvm-22/include/llvm/Passes/PassBuilder.h:30,
from /<<PKGBUILDDIR>>/src/opt.h:20:
/usr/lib/llvm-22/include/llvm/Transforms/Scalar/LoopPassManager.h:442:1: note:
candidate 1: ‘template<class LoopPassT> llvm::FunctionToLoopPassAdaptor
llvm::createFunctionToLoopPassAdaptor(LoopPassT&&, bool)’
442 | createFunctionToLoopPassAdaptor(LoopPassT &&Pass, bool UseMemorySSA =
false) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/llvm-22/include/llvm/Transforms/Scalar/LoopPassManager.h:442:1: note:
candidate expects 2 arguments, 3 provided
LLVM 22.1+ broke the API for llvm::createFunctionToLoopPassAdaptor().
Full buildlog: https://launchpad.net/~maxgmr/+archive/ubuntu/llvm-
defaults-22-test/+build/33514782/+files/buildlog_ubuntu-stonking-
amd64.ispc_1.28.2-1_BUILDING.txt.gz
** Affects: ispc (Ubuntu)
Importance: Undecided
Assignee: Max Gilmour (maxgmr)
Status: Triaged
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2164559
Title:
Build failure against LLVM 22 due to API break
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ispc/+bug/2164559/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs