Re: --with-llvm on 32-bit platforms?

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thomas Munro <thomas.munro@gmail.com>
Cc: Dmitry Mityugov <d.mityugov@postgrespro.ru>, Peter Eisentraut <peter@eisentraut.org>, pgsql-hackers@postgresql.org
Date: 2025-09-16T00:04:55Z
Lists: pgsql-hackers
Thomas Munro <thomas.munro@gmail.com> writes:
>> Dmitry Mityugov <d.mityugov@postgrespro.ru> writes:
>>> I get a failure in Postgres executable early on startup.

>> Interesting, but again, how about a stack trace?

> Hmm.  We use TypeSizeT in generated IR for Datum, which is obviously
> incorrect in this configuration.

Oh!  Yeah, that is surely broken now.  But it'd only explain problems
once you reach JIT-ed code, which I'd not expect to happen "early on
startup".  So maybe there's another problem?

			regards, tom lane



Commits

  1. jit: Fix type used for Datum values in LLVM IR.

  2. Avoid faulty alignment of Datums in build_sorted_items().

  3. Make type Datum be 8 bytes wide everywhere.