On 2023-04-10 07:27, Pádraig Brady wrote:
We need to adjust the build instructions to allow enabling 32b-bit time_t.
The attached attempts to do that, but I'm unsure of the details.

Thanks, I twiddled that a bit and installed the attached.
From cc95246ee2ed674cd407f0f80fd77f3364012458 Mon Sep 17 00:00:00 2001
From: Paul Eggert <egg...@cs.ucla.edu>
Date: Mon, 10 Apr 2023 11:55:54 -0700
Subject: [PATCH] doc: update re 32-bit builds
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

* README-install: Mention how to build on 32-bit-only hosts.
This builds on a previous patch by Pádraig Brady.
---
 README-install | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/README-install b/README-install
index 0c5bcf470..6ab5b4f8c 100644
--- a/README-install
+++ b/README-install
@@ -54,13 +54,13 @@ all mention of "[$(EXEEXT)" from src/Makefile.
 32 bit time_t build failures
 ------------------------
 
-On systems where it's determined that 64 bit time_t is supported
-(indicated by touch -t <some time after 2038>), but that coreutils
-would be built with a narrower time_t, the build will fail.
-This can be allowed by passing TIME_T_32_BIT_OK=yes to configure,
-or avoided by enabling 64 bit builds.  For example GCC on AIX defaults
-to 32 bit, and to enable the 64 bit ABI one can use:
-./configure CFLAGS=-maix64 LDFLAGs=-maix64 AR='ar -X64'
+Although 32-bit builds fail if that forces time_t to be 32 bits, this
+can be fixed by using 64-bit builds.  For example, on AIX where GCC
+defaults to 32 bits, one can use "./configure CC='gcc -maix64' AR='ar
+-X64'"; similarly, on Solaris one can configure with CC='gcc -m64'.
+If all else fails one can configure with ac_year2038_required=no;
+however, this will mishandle timestamps after 2038, and please file
+bug reports for any such situations.
 
 
 *************************************************
-- 
2.37.2

Reply via email to