From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 27 May 2024 10:32:31 +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 1sBVmR-000dnL-0v for lore@lore.pengutronix.de; Mon, 27 May 2024 10:32:31 +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 1sBVmR-000846-09; Mon, 27 May 2024 10:32:31 +0200 Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.220]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sBVlz-000837-2y for ptxdist@pengutronix.de; Mon, 27 May 2024 10:32:07 +0200 ARC-Seal: i=1; a=rsa-sha256; t=1716798722; cv=none; d=strato.com; s=strato-dkim-0002; b=eV3RSVz1hyEuZC0Wko0NiUxljJ3js4ORMQJssnhwhycqyx/FzsisMtFciVC6cUBbad kKFdSIgx9WCykV8si9Y7sApEQ1IcpU5YeeqBFIqJ5oAAMstZGo/ole8lc+pu5O2Icvi7 9YXRx6WSRYRTGVkc8r/fWe6uri2LWi+lG9Z71bBDJJgXzE1QzEhdH1niR/A5FeDKgtbo nT/BZ8m2szGVncOKTKWKmUURQOntegO67zG/M2ADc9zUFZTyejjbFxnGoXoC7IHnOvzW uVLKTbHRes/G5ackFitq49tMgSrhqGwHxNdV2Z8enQvaoytze1V2xDp0L8rtGsw02mqK z2EA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1716798722; s=strato-dkim-0002; d=strato.com; h=In-Reply-To:From:References:To:Subject:Date:Message-ID:Cc:Date:From: Subject:Sender; bh=IfBSEKZiIAMPry5aL3Y0TGSMYH07M6K/K+eaPwLxT/4=; b=rjQz/g9CEhSBkoAjS5M42I/O8mPXbsZ0VhAoxBT0ScRyNa28VU+734nGQ/eTp/xHAd 9RiQZ9N6mIvo5jQpUIPKuwHDlNk0vDg/G9UaIzEtuxyscJgWe3Fys1A5JuF6CspyfhwD gyXooNaC/5M6m7gmfjecfHYi1HaIzA8b8/ez9vCGBTu5G4SX933PQVakTC8BYuJnIMdI MAutSdQ00NTs2kwuItxxQHAiCKDbtk5jonZK2mWRufLwCAMfztcppNoO1Hl0MFHHvMJZ UfPz1kt9AhsNDRxFHxvwsmTmMFRHR8VV98ff1zIO+sihIB2bf6580Cc/MffbNPNO26l/ cKVg== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1716798722; s=strato-dkim-0002; d=erwinrol.com; h=In-Reply-To:From:References:To:Subject:Date:Message-ID:Cc:Date:From: Subject:Sender; bh=IfBSEKZiIAMPry5aL3Y0TGSMYH07M6K/K+eaPwLxT/4=; b=Z0PIyVNs79UHkI14FwW4DRaOuZa+jg6fCSvX4H1cilfXE5ldpwUHAHsC3ncB5ht1ti ihZpXx51a3VvECeUb9lUsGExLCJqW9eRcu5RYRA6uD4BK7aJOCDHYkuYbyN4eYtxo9fj 4B863t6vxGCkylaEhEGotk7GG28BNSvNPLypD1hC45d0ZYFTJg5kGmn8fx5K+/NO4tvg xCPEki6VCQCqZB6aIGNnNOh5vVPDB31sfKo0vymdIG0ExpRbU6Bxkm93uVkXETmcO+rY /yuR2OY25JwqiETXdNle9WHiPFZjFwn404+16Gp+Rb///3NqEzlk2WqtZMFGb2XBOmSQ 7j3w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1716798722; s=strato-dkim-0003; d=erwinrol.com; h=In-Reply-To:From:References:To:Subject:Date:Message-ID:Cc:Date:From: Subject:Sender; bh=IfBSEKZiIAMPry5aL3Y0TGSMYH07M6K/K+eaPwLxT/4=; b=TIEyjnYH4PYfZYfivwyE1y2Zx6vo8yU3H1sMVogyOSwjAEQDHyDtGwkS6fxY0K/Piw VFN2pVS2CFH4/3IsfhAw== X-RZG-AUTH: ":IW0NeUmmfPMLa6/h5H5SuRJPHbcbCVKNPAiWvE9c+VT2q3W9psWmf2XwhOj/G5GB3zfMUpIfZgN3" Received: from [192.168.1.15] by smtp.strato.com (RZmta 50.5.0 DYNA|AUTH) with ESMTPSA id Vcdcba04R8W28Xh (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate) for ; Mon, 27 May 2024 10:32:02 +0200 (CEST) Message-ID: <261a0dbe-5594-4095-bf3b-87901f9a0585@erwinrol.com> Date: Mon, 27 May 2024 10:32:01 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: ptxdist@pengutronix.de References: <24f03e42-a9ab-4303-9d0e-3b1ff24e0097@erwinrol.com> <67eb8195-ca07-4425-9569-3f3d423ac5c0@erwinrol.com> Content-Language: en-US From: Erwin Rol In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.whiteo.stw.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 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 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 5/24/24 12:19, Michael Olbrich wrote: > 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. Any ETA for a gcc14 ptxdist Toolchain ? > 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. Maybe make 2 specific 32bit toolchains, one with TIME_BITS=32 and one with TIME_BITS=64? So ppl (like me) can start testing the TIME_BITS=64 version, and ppl that know for sure they do not care about y2038 can keep using the TIME_BITS=32 version ? - Erwin