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

From: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
To: Anthonin Bonnefoy <anthonin(dot)bonnefoy(at)datadoghq(dot)com>
Cc: Holger Hoffstätte <holger(at)applied-asynchrony(dot)com>, Peter Eisentraut <peter(at)eisentraut(dot)org>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [PATCH] jit: fix build with LLVM-21
Date: 2025-11-17 15:06:49
Message-ID: CA+hUKGL3-JQC-Q-8O=pemrSOuBjy+V-a_Rx-Mm2bW+o-W0gMDQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Nov 18, 2025 at 12:11 AM Thomas Munro <thomas(dot)munro(at)gmail(dot)com> wrote:
> On Mon, Nov 17, 2025 at 9:48 PM Anthonin Bonnefoy
> <anthonin(dot)bonnefoy(at)datadoghq(dot)com> wrote:
> > Homebrew is now installing LLVM21 by default, so compiling with Homebrew's default LLVM now fails without this patch.
>
> Ack, testing...

Looks good so far. Will try to push this tomorrow.

I got distracted trying to figure out why LLVM 22 is segfaulting in
llvm::orc::ExecutionSession::IL_emit(). It's not out ... yet. I was
worried that might be a clue about problems with the backported
SectionMemoryManager nonsense, but (un)fortunately it also still
crashes with the JITLink patch[1]. Will need to chase this down...

[1] https://www.postgresql.org/message-id/flat/CA%2BhUKGJBJx4fDGLv8zUtmsmg16Swry7DJbMr2_GNZcd6sgE0rg%40mail.gmail.com

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2025-11-17 15:09:36 Re: pg_plan_advice
Previous Message Daniel Gustafsson 2025-11-17 15:04:17 Re: [PATCH] Add hints for invalid binary encoding names in encode/decode functions