From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 24 May 2024 11:04:36 +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 1sAQqq-00GTSV-2c for lore@lore.pengutronix.de; Fri, 24 May 2024 11:04:36 +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 1sAQqq-0004Ut-II; Fri, 24 May 2024 11:04:36 +0200 Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.221]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sAQqf-0004Uk-Th for ptxdist@pengutronix.de; Fri, 24 May 2024 11:04:27 +0200 ARC-Seal: i=1; a=rsa-sha256; t=1716541465; cv=none; d=strato.com; s=strato-dkim-0002; b=pRZQH6Ij8nktPKQQEmXs16ndLDI74NLBj6q24JM2rKCIJoSmiuaTlNuaU1bVI0pT5r yJ0+Tcy+p0U9O+Y5d+b8/xkUq1lmiSvKsNxRVJfGnu8zkIL7gW1fBmOEycIokL3fk/1S UcYW/PTXiri9GhemKRMFdxZIb/3VgD3xIbzVLF6q70g1JiYCgHO74I6RPWp1o2LiO+Pu OYMs2WH2eoF5KmnqfzJJXMRGMBSXLeeXEHkypzs7wQF/J4t48SF8MnsVH+8VXzutg7jJ pZcLy3fGSG7MVTFzzGvqXjY8W1L128ElwitcrIv6Q/+lC7+TAnjjy0w63WXtRfFh2TAN iYSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1716541465; s=strato-dkim-0002; d=strato.com; h=In-Reply-To:From:References:To:Subject:Date:Message-ID:Cc:Date:From: Subject:Sender; bh=T7IjLxJeqDEY/8NGgKu+p2fB+xmQH6lRB7oQK8o5fuQ=; b=qNNGHFNvbokRP3ctyNIa+gMRr5ziwpQU+VFzKuJrvxFPa4LZ0oGJX01Q5iSLbkGOGc xndBg1ayhMCVnDalPsJeRw0aUC24Ym5i6Dw3lO3eQGbs6bRiQMTgmSrz9M0ljxPRTysX TVd/jaTO81jgb+0uE6G6oIz+3wcuyUEgbqhCOKhukdrohdDGqrDTdaR5SQRJHes+silh DYkBN48kH/rJVvgfj/FTo2UcNBI05e+7qi4/GnnxW76hneMLT4R14UaittOslSLJ6An9 jGPohBwXbP3cIGs2Vlg2rG4BhGKSB9iwloSuZTs2n5Jf2C3EiFweQTQLqjcN2mOlIUiL UZzw== 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=1716541465; s=strato-dkim-0002; d=erwinrol.com; h=In-Reply-To:From:References:To:Subject:Date:Message-ID:Cc:Date:From: Subject:Sender; bh=T7IjLxJeqDEY/8NGgKu+p2fB+xmQH6lRB7oQK8o5fuQ=; b=ToUoPTxAeThieVtieezz2+lpa0IpzYsfQlcrqP6JI98XKVDdP3t73ViBf61nbNq0Qd TNWMNEYWv5va7icPuw1df7q5Rt9Ly1sqbm2p5cymgRvoUh4UNhnFB6vZMEUEbPqMqSp+ 2cA3s7EbkfHtgTPZ7Gd/+LrMRof+LcsLoJSjgZkS8JkfX90VrWsAfjYjVvB2WzsZwBEk qSKna0hhIT5GoA+Rrt2A+WoJzSGHTM+Xw31jJMr5emjfAadvXQP+/ZoNluL5Kkz9I4Y6 5BDg1pubAYCAER04lGpV46rfqUoYzC6Pfc/RphmQTiqKojW7/unBk2ol8C3kXBy9HbdJ Wo4w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1716541465; s=strato-dkim-0003; d=erwinrol.com; h=In-Reply-To:From:References:To:Subject:Date:Message-ID:Cc:Date:From: Subject:Sender; bh=T7IjLxJeqDEY/8NGgKu+p2fB+xmQH6lRB7oQK8o5fuQ=; b=w8FsUsmPYObkiTsFaiVzaF7M8wIMF/dhWfpqq1kkw7NNIhSHYTv1Bw43ZbjP2duadT e9Y1A4BwthbUrnqVFrBw== 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 Vcdcba04O94PzZu (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate) for ; Fri, 24 May 2024 11:04:25 +0200 (CEST) Message-ID: <67eb8195-ca07-4425-9569-3f3d423ac5c0@erwinrol.com> Date: Fri, 24 May 2024 11:04:24 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: ptxdist@pengutronix.de References: <24f03e42-a9ab-4303-9d0e-3b1ff24e0097@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=-1.7 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS 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 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 :-) - Erwin