Re: [PATCH] jit: fix build with LLVM-21

Holger Hoffstätte <holger@applied-asynchrony.com>

From: Holger Hoffstätte <holger@applied-asynchrony.com>
To: Thomas Munro <thomas.munro@gmail.com>, Anthonin Bonnefoy <anthonin.bonnefoy@datadoghq.com>
Cc: Peter Eisentraut <peter@eisentraut.org>, pgsql-hackers@postgresql.org
Date: 2025-11-17T11:31:21Z
Lists: pgsql-hackers
On 2025-11-17 12:11, Thomas Munro wrote:
> On Mon, Nov 17, 2025 at 9:48 PM Anthonin Bonnefoy
> <anthonin.bonnefoy@datadoghq.com> wrote:
>> Homebrew is now installing LLVM21 by default, so compiling with Homebrew's default LLVM now fails without this patch.
> 
> Ack, testing...

I made an account on commitfest but cannot log in yet due
to some "cooloff period" (presumably to ward off spammers).
Would be nice if you can get this sorted.

thanks
Holger



Commits

  1. jit: Adjust AArch64-only code for LLVM 21.

  2. jit: fix build with LLVM-21

  3. Monkey-patch LLVM code to fix ARM relocation bug.