ldc ftbfs with LLVM 21:
[...]
In file included from
/build/reproducible-path/ldc-1.41.0/gen/abi/aarch64.cpp:18:
/build/reproducible-path/ldc-1.41.0/./gen/abi/generic.h: In member
function ‘virtual void IndirectByvalRewrite::applyTo(IrFuncTyArg&,
llvm::Type*)’:
/build/reproducible-path/ldc-1.41.0/./gen/abi/generic.h:263:37: error:
‘NoCapture’ is not a member of ‘LLAttribute’ {aka
‘llvm::Attribute::AttrKind’}
263 | attrs.addAttribute(LLAttribute::NoCapture);
|
ldc 1.42 beta 1 was released today with support for llvm 21: https://github.com/ldc-developers/ldc/releases Alternatively, I think we could build ldc with llvm 19 temporarily to give us more time. (I did this in Ubuntu 26.04 LTS.) Thank you, Jeremy Bícha
Matthias Klumpp, ldc 1.42 was released. Do you want to try packaging it and switching it to llvm 21? https://github.com/ldc-developers/ldc/releases Thank you, Jeremy Bícha
Control: severity -1 important This was done, and the FTBFS is fixed. Let's lower this. It'd still be nice to switch to LLVM 21 or 22, since LLVM 19 may be removed from forky. Cheers, Emilio