Public bug reported:

postgresql-14 is failing to build[1] in jammy.

I see llvm-14 deprecation warnings:
In file included from 
/<<PKGBUILDDIR>>/build/../src/backend/jit/llvm/llvmjit.c:38:
/<<PKGBUILDDIR>>/build/../src/include/jit/llvmjit_emit.h: In function 
‘l_load_struct_gep’:
/<<PKGBUILDDIR>>/build/../src/include/jit/llvmjit_emit.h:112:9: warning: 
‘LLVMBuildStructGEP’ is deprecated [-Wdeprecated-declarations]
  112 |         LLVMValueRef v_ptr = LLVMBuildStructGEP(b, v, idx, "");
      |         ^~~~~~~~~~~~
In file included from /usr/lib/llvm-14/include/llvm-c/Core.h:18,
                 from 
/<<PKGBUILDDIR>>/build/../src/backend/jit/llvm/llvmjit.c:19:
/usr/lib/llvm-14/include/llvm-c/Core.h:3909:18: note: declared here
 3909 |     LLVMValueRef LLVMBuildStructGEP(LLVMBuilderRef B, LLVMValueRef 
Pointer,
      |                  ^~~~~~~~~~~~~~~~~~
/usr/lib/llvm-14/include/llvm-c/Deprecated.h:29:3: note: in definition of macro 
‘LLVM_ATTRIBUTE_C_DEPRECATED’
   29 |   decl __attribute__((deprecated))
      |   ^~~~
In file included from 
/<<PKGBUILDDIR>>/build/../src/backend/jit/llvm/llvmjit.c:38:
/<<PKGBUILDDIR>>/build/../src/include/jit/llvmjit_emit.h:114:9: warning: 
‘LLVMBuildLoad’ is deprecated [-Wdeprecated-declarations]
  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>>/build/../src/backend/jit/llvm/llvmjit_error.cpp:32:64: error: 
‘string’ in namespace ‘std’ does not name a type
   32 | static void fatal_llvm_new_handler(void *user_data, const std::string& 
reason, bool gen_crash_diag);
      |                                                                ^~~~~~
/<<PKGBUILDDIR>>/build/../src/backend/jit/llvm/llvmjit_error.cpp:25:1: note: 
‘std::string’ is defined in header ‘<string>’; did you forget to ‘#include 
<string>’?
   24 | #include "jit/llvmjit.h"
  +++ |+#include <string>
   25 | 


1. 
https://launchpadlibrarian.net/591985515/buildlog_ubuntu-jammy-amd64.postgresql-14_14.2-1_BUILDING.txt.gz
2. 
https://launchpadlibrarian.net/585392965/buildlog_ubuntu-jammy-amd64.postgresql-14_14.2-1_BUILDING.txt.gz

** Affects: postgresql-14 (Ubuntu)
     Importance: Undecided
     Assignee: Andreas Hasenack (ahasenack)
         Status: In Progress


** Tags: ftbfs server-todo

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1966319

Title:
  FTBFS with llvm-14

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/postgresql-14/+bug/1966319/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to