Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 835861

Summary: dev-db/postgresql-14.2[server,llvm] fails to build with llvm-14
Product: Gentoo Linux Reporter: Holger Hoffstätte <holger>
Component: Current packagesAssignee: PgSQL Bugs <pgsql-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: jstein
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://www.mail-archive.com/pgsql-committers@lists.postgresql.org/msg23184.html
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
emerge --info
emerge -pqv

Description Holger Hoffstätte 2022-03-23 17:47:47 UTC
The postgresql server fails to build against llvm-14 with a litany of errors due to deprecated API, typo fixes etc.


Reproducible: Always

Steps to Reproduce:
1. update to llvm-14/clang-14
2. emerge -v1 postgresql [server,llvm]
3. failure :(




See $URL for an upstream patch, which will probably come with the next 14.x maintenance release. In the meantime dropping https://git.postgresql.org/gitweb/?p=postgresql.git;a=patch;h=d9f7ad54e552262ee0090e88d5abd3e04fcdeac8 into /etc/portage/patches/dev-db/postgresql makes it build & work. \o/
Comment 1 Kenton Groombridge gentoo-dev 2022-03-23 23:21:57 UTC
I also hit this today on one of my servers.
Comment 2 Kenton Groombridge gentoo-dev 2022-03-23 23:22:32 UTC
Created attachment 767663 [details]
build.log
Comment 3 Kenton Groombridge gentoo-dev 2022-03-23 23:22:50 UTC
Created attachment 767664 [details]
emerge --info
Comment 4 Kenton Groombridge gentoo-dev 2022-03-23 23:23:08 UTC
Created attachment 767665 [details]
emerge -pqv
Comment 5 Larry the Git Cow gentoo-dev 2022-03-24 06:28:33 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d49fccf6cbbbdab563c1d38718f9dc177548659b

commit d49fccf6cbbbdab563c1d38718f9dc177548659b
Author:     Patrick Lauer <patrick@gentoo.org>
AuthorDate: 2022-03-24 06:28:11 +0000
Commit:     Patrick Lauer <patrick@gentoo.org>
CommitDate: 2022-03-24 06:28:11 +0000

    dev-db/postgresql: llvm14 support
    
    Upstream patch applies to v.12+
    Restrict max llvm version to 13 for v.11 as patch fails
    (this should be rectified in next upstream release)
    
    Bug: https://bugs.gentoo.org/835861
    Package-Manager: Portage-3.0.30, Repoman-3.0.3
    Signed-off-by: Patrick Lauer <patrick@gentoo.org>

 dev-db/postgresql/files/postgres-llvm14.patch | 154 ++++++++++++++++++++++++++
 dev-db/postgresql/postgresql-11.14-r1.ebuild  |   9 +-
 dev-db/postgresql/postgresql-11.15-r1.ebuild  |   9 +-
 dev-db/postgresql/postgresql-12.10-r1.ebuild  |   1 +
 dev-db/postgresql/postgresql-12.9-r1.ebuild   |   1 +
 dev-db/postgresql/postgresql-13.5-r1.ebuild   |   1 +
 dev-db/postgresql/postgresql-13.6-r1.ebuild   |   1 +
 dev-db/postgresql/postgresql-14.1-r1.ebuild   |   1 +
 dev-db/postgresql/postgresql-14.2-r1.ebuild   |   1 +
 9 files changed, 172 insertions(+), 6 deletions(-)
Comment 6 Patrick Lauer gentoo-dev 2022-03-24 07:43:22 UTC
All done for now.