From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 24 May 2024 12:19:22 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1sAS1C-00GYKy-2n for lore@lore.pengutronix.de; Fri, 24 May 2024 12:19:22 +0200 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1sAS1C-00070h-7M; Fri, 24 May 2024 12:19:22 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sAS12-00070J-OM; Fri, 24 May 2024 12:19:12 +0200 Received: from [2a0a:edc0:2:b01:1d::c5] (helo=pty.whiteo.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sAS12-002mUM-9F; Fri, 24 May 2024 12:19:12 +0200 Received: from mol by pty.whiteo.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1sAS12-00BdcI-0f; Fri, 24 May 2024 12:19:12 +0200 Date: Fri, 24 May 2024 12:19:12 +0200 From: Michael Olbrich To: Erwin Rol Message-ID: Mail-Followup-To: Erwin Rol , ptxdist@pengutronix.de References: <24f03e42-a9ab-4303-9d0e-3b1ff24e0097@erwinrol.com> <67eb8195-ca07-4425-9569-3f3d423ac5c0@erwinrol.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <67eb8195-ca07-4425-9569-3f3d423ac5c0@erwinrol.com> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain Subject: Re: [ptxdist] year 2038 Toolchain X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: ptxdist@pengutronix.de Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false On Fri, May 24, 2024 at 11:04:24AM +0200, Erwin Rol wrote: > On 5/24/24 10:41, Ian Abbott wrote: > > > > If I figure it out I'll let you guys know (so it can be added to the > > > official Toolchain) > > > > Rememember to define _FILE_OFFSET_BITS=64 too if it is not already > > defined. _TIME_BITS=64 is ineffective when _FILE_OFFSET_BITS=32 for > > Glibc policy reasons. > > I tried some things to convince the Toolchain project (latest gcc13 release) > to use those two defines, but without much luck. Sometimes parts complained > that there were duplicate declarations of (time) functions, with some other > tries it actually complained the the _FILE_OFFSET_BITS was missing for some > part, that I really don't understand because I added them always in pairs. > > So I believe it is just a bit too early for 100% year 2038 compliance at the > moment. Especially when it comes to C++/libstd++ there is also not much info > online. > > But the C part seems to work with the support ptxdist offers, and C++ has > always been some unwanted stepchild, especially now Rust is going to safe > the world :-) So gcc-14 has a --enable-year2038 configure option, but I didn't test if it works. But I don't know if that causes any API or ABI incompatibilities. The changelog says "Disable year2038 by default on 32-bit hosts.". That looks a bit suspicious to me. Michael -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |