From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 979573858D3C; Sun, 28 Apr 2024 20:33:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 979573858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1714336380; bh=7Cb1oDkZKN17a2jiGOtJ2pqVEz/PUHzi/taziRXZBEA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=u0SE+dK2/U45zTYm3icDczLunvBK4ayLCrr1WbRWCYYum6horIMEql8+qR/LdSNkw tvC1oNBSnALOGahTKzOtazl9RzFNan7pYZMmkxJEY0fWZ580wpQl5+GYTxDmQAIkoB mUUKNaTzazjdnxH5Mc6AClZalctDoVnMvP89vp10= From: "nicolas at debian dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/114065] gnat build with -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 fails on 32bit archs Date: Sun, 28 Apr 2024 20:32:59 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ada X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: nicolas at debian dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.isobsolete attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114065 Nicolas Boulenguez changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #58028|0 |1 is obsolete| | --- Comment #24 from Nicolas Boulenguez --- Created attachment 58060 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D58060&action=3Dedit timeval timespec: merge all definitions, select 32 or 64 bits variants on g= libc Hello. The second issue is caused by glibc implementing (on architectures where ti= me_t was 32 bits by default) gettimeofday __gettimeofday64 and #defining gettimeofday __gettimeofday64 if __USE_TIME_BITS64. Ada, ignoring this, was still importing the 32 bits version. The attached archive patches all such issues as far as I know. The patch has been tested on x86_64-linux-gnu (time_t64 is the default) and arm-linux-gnueabihf (time_t64 is affected by __USE_TIME_BITS64).=