postgresql-15 FTBFS with llvm-16 - undefined symbol: LLVMBuildGEP

Bug #2029498 reported by Athos Ribeiro
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
postgresql-15 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

postgresql-15 FTBFS with llvm-16.

The dh_auto_test run fails with erros such as:

client backend[34430] pg_regress/test_setup ERROR: could not load library "/<<PKGBUILDDIR>>/build/tmp_install/usr/lib/postgresql/15/lib/llvmjit.so": /<<PKGBUILDDIR>>/build/tmp_install/usr/lib/postgresql/15/lib/llvmjit.so: undefined symbol: LLVMBuildGEP

In LLVM changelog, at https://releases.llvm.org/16.0.0/docs/ReleaseNotes.html#changes-to-the-c-api, we can see that LLVMBuildGEP was removed in favor of LLVMBuildGEP2.

As reported upstream, at https://www.postgresql.org/message-id/flat/17927-2d7146227560bdf3%40postgresql.org, supporting LLVM 16 is not trivial and is being worked on for postgresql-16.

For now, we could just pin llvm 15 in mantic to avoid build failures.

The following upstream bug is also related: https://www.postgresql.org/message-id/flat/17929-71c7a59e1930980b%40postgresql.org

Related branches

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

@Doko - subscribing you as FYI since you were so kind to let me know it is now the default.
Seems we need to pin llvm15 for Mantic - is that a problem for you?

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package postgresql-15 - 15.4-1ubuntu1

---------------
postgresql-15 (15.4-1ubuntu1) mantic; urgency=medium

  * d/control: pin llvm-15 build dependencies. (LP: #2029498)

 -- Athos Ribeiro <email address hidden> Thu, 10 Aug 2023 20:53:01 -0300

Changed in postgresql-15 (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.