1.28.0-1 FTBFS in Jammy - libldc-jit.so not built
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ldc (Debian) |
Fix Released
|
Unknown
|
|||
ldc (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
This is FTFBS for 12 days now
https:/
The same in Debian worked fine
https:/
Our fail is:
dh_install
dh_install: warning: Cannot find (any matches for) "usr/lib/
dh_install: warning: libphobos2-
dh_install: warning: Cannot find (any matches for) "usr/lib/
dh_install: warning: libphobos2-
dh_install: warning: Cannot find (any matches for) "usr/lib/
dh_install: warning: libphobos2-
And the reason those do not exists seems to be in our config step already.
We have llvm 13 (biggest difference to Debian which has 11 still).
...
-- -- Building LDC with dynamic compilation support (LDC_DYNAMIC_
...
While Debian has ON at the same config step.
This is locally reproducible in sbuild (the good Debian and the bad ubuntu build) and there via:
mkdir buildtest; cd buildtest; cmake -DCMAKE_
tags: | added: update-excuse |
Changed in ldc (Ubuntu): | |
status: | New → Fix Committed |
Changed in ldc (Debian): | |
status: | Unknown → New |
Changed in ldc (Debian): | |
status: | New → Fix Released |
Well, the LDC code is rather straight forward on this:
CMakeLists.txt:452 DYNAMIC_ COMPILE "AUTO" CACHE STRING "Support dynamic compilation (ON|OFF). Enabled by default; not supported for LLVM >= 12.")
set(LDC_
It turns out this is due to the internal ORCv1 API (dropped with LLVM 12) vs ORCv2 (added with LLVM 7).
In LDC this is known-disabled since /github. com/ldc- developers/ ldc/commit/ d8bc064cfbc7663 47d563cb139a72d 238312bd38# diff-1e7de1ae2d 059d21e1dd75d58 12d5a34b0222cef 273b7c3a2af62eb 747f9d20a
https:/
This is known upstream /github. com/ldc- developers/ ldc/issues/ 3747 /github. com/ldc- developers/ ldc/pull/ 3184
https:/
https:/
Not a Problem for Debian yet until LLVM>=12 is the default.
For now we should be able to get this working by forcing llvm-11-dev