Re: BUG #17927: Postgres does not compile with LLVM-16 - Mailing list pgsql-bugs

From Daniel Gustafsson
Subject Re: BUG #17927: Postgres does not compile with LLVM-16
Date
Msg-id 7AA0E02C-F7FB-4515-ACC5-306B791D2E61@yesql.se
Whole thread Raw
In response to BUG #17927: Postgres does not compile with LLVM-16  (PG Bug reporting form <noreply@postgresql.org>)
List pgsql-bugs
> On 10 May 2023, at 12:10, PG Bug reporting form <noreply@postgresql.org> wrote:

Thanks for your report!

> llvmjit.c:506:24: warning: returning 'int' from a function with return type
> 'LLVMValueRef' {aka 'struct LLVMOpaqueValue *'} makes pointer from integer
> without a cast [-Wint-conversion]
>  506 |                 return LLVMBuildLoad(builder, v_fn, "");
>      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This is a known problem which is currently being worked on.  LLVM 16 deprecated
typed pointers which the postgres JIT implementation is using, switching over
to opaque pointers is no simple task though.

--
Daniel Gustafsson




pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #17927: Postgres does not compile with LLVM-16
Next
From: PG Bug reporting form
Date:
Subject: BUG #17928: Standby fails to decode WAL on termination of primary