FTBFS with llvm-14
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
postgresql-14 (Ubuntu) |
Fix Released
|
High
|
Andreas Hasenack |
Bug Description
postgresql-14 is failing to build[1] in jammy.
I see llvm-14 deprecation warnings:
In file included from /<<PKGBUILDDIR>
/<<PKGBUILDDIR>
/<<PKGBUILDDIR>
112 | LLVMValueRef v_ptr = LLVMBuildStruct
| ^~~~~~~~~~~~
In file included from /usr/lib/
/usr/lib/
3909 | LLVMValueRef LLVMBuildStruct
| ^~~~~~~~~~~~~~~~~~
/usr/lib/
29 | decl __attribute_
| ^~~~
In file included from /<<PKGBUILDDIR>
/<<PKGBUILDDIR>
114 | return LLVMBuildLoad(b, v_ptr, name);
| ^~~~~~
And the previous build[2] was using llvm-13.
But there are also some errors:
28 | static std::new_handler old_new_handler = NULL;
| ^~~~~~~~~~~
/<<PKGBUILDDIR>
32 | static void fatal_llvm_
| ^~~~~~
/<<PKGBUILDDIR>
24 | #include "jit/llvmjit.h"
+++ |+#include <string>
25 |
1. https:/
2. https:/
Related branches
- Canonical Server packageset reviewers: Pending requested
- Canonical Server: Pending requested
-
Diff: 82 lines (+41/-1) (has conflicts)2 files modifieddebian/changelog (+39/-0)
debian/control (+2/-1)
- Bryce Harrington (community): Approve
- Canonical Server: Pending requested
-
Diff: 198 lines (+164/-1)4 files modifieddebian/changelog (+6/-0)
debian/control (+2/-1)
debian/patches/llvm14-support.patch (+155/-0)
debian/patches/series (+1/-0)
Changed in postgresql-14 (Ubuntu): | |
importance: | Undecided → High |
That llvm v14 is rather recent - we were lucky that llvm-13 worked fine.
Officially the most recent postgresql-release just added llvm-12 support [1].
In jammy we have: universe | amd64, arm64, armhf, i386, ppc64el, s390x
llvm-13 | 1:13.0.1-2ubuntu2 | jammy/universe | amd64, arm64, armhf, i386, ppc64el, riscv64, s390x
llvm-14 | 1:14.0.0-1ubuntu1 | jammy-proposed/
I can't see us transitioning completely to llvm-14 in time for jammy, so llvm-13 might stay as well? (ask Foundations please to be sure).
If it does stay, this might be as easy as putting a versioned build dep onto `llvm-dev` in d/control of postgresql-14.
On the other hand, maybe those are all just deprecation warnings and related follow on issues.
Having a test build with [2] might be worth a try.
Actually the REL_14_STABLE branch has a combined backport of this and other llvm-14 changes.
Those will be released with postgresql-14.3 some day, to fix it right now most likely the best shot would be [3]. And once 14.3 comes by we can drop our delta again.
[1]: https:/ /www.postgresql .org/docs/ 14/release- 14.html /github. com/postgres/ postgres/ commit/ a56e7b66010f330 782243de9e25ac2 a6596be0e1 /github. com/postgres/ postgres/ commit/ d9f7ad54e552262 ee0090e88d5abd3 e04fcdeac8
[2]: https:/
[3]: https:/