#1122608 ldc ftbfs with LLVM 21

Package:
src:ldc
Source:
src:ldc
Submitter:
Matthias Klose
Date:
2026-06-24 07:23:02 UTC
Severity:
normal
Tags:
#1122608#5
Date:
2025-12-11 18:58:51 UTC
From:
To:
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);
       |

#1122608#10
Date:
2025-12-19 13:27:24 UTC
From:
To:
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

#1122608#19
Date:
2026-03-19 13:23:26 UTC
From:
To:
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

#1122608#24
Date:
2026-06-24 07:21:02 UTC
From:
To:
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