Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tJ2Z0-000b7G-M5 for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Dec 2024 03:30:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tJ2Yx-0042g3-OP for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Dec 2024 03:30:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tJ2Yx-0042fv-FD for pgsql-hackers@lists.postgresql.org; Thu, 05 Dec 2024 03:30:00 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tJ2Yv-0017Jq-KT for pgsql-hackers@lists.postgresql.org; Thu, 05 Dec 2024 03:30:00 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 4B53TcF22445196; Wed, 4 Dec 2024 22:29:38 -0500 From: Tom Lane To: Thomas Munro cc: Tomas Vondra , Peter Eisentraut , Heikki Linnakangas , Japin Li , Andres Freund , PostgreSQL Hackers Subject: Re: Cannot find a working 64-bit integer type on Illumos In-reply-to: References: <20240322165305.6zrtxcmzdrywvmsu@awork3.anarazel.de> <944094.1711128356@sss.pgh.pa.us> <1229869.1711160593@sss.pgh.pa.us> <7cf1dcb7-306f-4418-bf25-bdc75130db10@eisentraut.org> <0e2cc7af-f0c0-418c-b640-e5eb03eaa6e6@eisentraut.org> <50a4c05e-c43e-4e7e-95d2-4b16493073ed@eisentraut.org> <227! 6817.1733293172@sss.pgh.pa.us> <2385947.1733341279@sss.pgh.pa.us> Comments: In-reply-to Thomas Munro message dated "Thu, 05 Dec 2024 14:06:09 +1300" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <2445194.1733369378.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 04 Dec 2024 22:29:38 -0500 Message-ID: <2445195.1733369378@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Thomas Munro writes: > On Thu, Dec 5, 2024 at 1:59=E2=80=AFPM Thomas Munro wrote: >> I was trying to figure out how I missed this, and I think it might be >> that the meson build scripts didn't port AC_SYS_LARGEFILES. So if you >> build on a 32 bit Linux system with meson (like one of CI's tasks, and >> also build farm animal adder) then I think you finish up with 32 bit >> off_t and no SIZEOF_OFF_T, because we don't do AC_SYS_LARGEFILES' >> dance to figure out if this system needs -D_FILE_OFFSET_BITS=3D64 (or >> other similar macros for AIX, Solaris etc). I will look into that. > Ahh, correction, it does define it (or else perl would have > complained), but it seems that meson magically puts it into the > compiler command line without being asked. So it is defined without > pg_config.h being involved, and thus earlier. Huh. That does not seem great. Compile an extension without the same CPPFLAGS, you silently get an ABI-incompatible module. We really ought to be putting these ABI-critical flags into pg_config.h. It's especially bad that this works differently between autoconf and meson builds. regards, tom lane