From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 12 Jul 2021 08:48:48 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1m2pkG-0005Pr-Qy for lore@lore.pengutronix.de; Mon, 12 Jul 2021 08:48:48 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1m2pkG-0005J9-D6; Mon, 12 Jul 2021 08:48:48 +0200 Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m2pjZ-0005Ix-SU; Mon, 12 Jul 2021 08:48:05 +0200 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1m2pjZ-0008V7-ED; Mon, 12 Jul 2021 08:48:05 +0200 Date: Mon, 12 Jul 2021 08:48:05 +0200 From: Michael Olbrich To: Felix Mellmann Message-ID: <20210712064805.GA27936@pengutronix.de> Mail-Followup-To: Felix Mellmann , ptxdist@pengutronix.de References: <20210706075245.GF12605@pengutronix.de> <40f2ae97-36f0-6cf0-915a-253cafd69a3e@benfm.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <40f2ae97-36f0-6cf0-915a-253cafd69a3e@benfm.de> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 08:25:35 up 144 days, 9:49, 99 users, load average: 0.11, 0.11, 0.18 User-Agent: Mutt/1.10.1 (2018-07-13) Subject: Re: [ptxdist] [ANNOUNCE] OSELAS.Toolchain() 2021.07.0 released 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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.ext.pengutronix.de); SAEximRunCond expanded to false Hi, I've put the list back in Cc. I think this is interesting for others as well. On Sun, Jul 11, 2021 at 02:00:33PM +0200, Felix Mellmann wrote: > thanks for releasing an updated toolchain! > > Do the ARM 32bit toolchains already make use of the 64 bit unix timestamps > to overcome the 2k38 problem? I assume you mean the compat stuff where time_t is 64 bit (with _TIME_BITS defined). No. The support for this is still missing in glibc 2.33. I looked into this when I was working on the toolchains and at the time, there where quite a few patches that had not been merged for this. From what I can tell, they have been merged in the meantime. I've not checked if there are still some bits missing. But I hope that glibc 2.34 will have the full support. > As far as I can see, glibc is compiled against the kernel 3.16 headers which > do not include support for 64 bit timestamps on 32 bit machines (https://git.pengutronix.de/cgit/OSELAS.Toolchain/tree/ptxconfigs/arm-v7a-linux-gnueabihf_gcc-11.1.1_clang-12.0.0_glibc-2.33_binutils-2.36.1_kernel-5.12.4-sanitized.ptxconfig?h=v2021.07.0 > , line 51) That's something else. The toolchain is built with 5.12.4 kernel headers (line 62). The PTXCONF_GLIBC_ENABLE_KERNEL specifies the oldest kernel this glibc will run on. Basically how much compat code should be added for syscalls etc. that did not exist in old kernel versions. > If the toolchain still uses 32 bit timestamps - are there any plans to > implement support in an upcoming release? Yes definitively. Right now I'm still waiting for a glibc release that has the necessary support. I don't think we actually need to do anything here. At least in the toolchain. It should just work once we have a glibc that supports it. I think the hard part will be all the other userspace software. We need to compile it with _TIME_BITS (and _FILE_OFFSET_BITS=64). That's the easy part. But someone need to check all the code to check that time_t is never cast to/from int... Regards, 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 | _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de