From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D911D385840C; Thu, 22 Feb 2024 19:40:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D911D385840C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1708630829; bh=4EFLICCkKefC/+c4YuPsWm+Q0SpsHccLA5EGbAqlQY8=; h=From:To:Subject:Date:From; b=NC5iswVt7t/ALkjmDqXctDaVz0HF201syhVI5pR6P/y4fIqucj2h9JD2/qCx2Ao81 FkXJseyZky6YeOoJ2NaoaNooVo7J8u66hj8RU0PRUSr0ObAV0VEE1c75e+XbX7jteY 3YtgrlUObuDY79+aqD8bNuHPo37OWfAPNbC9qMOE= From: "doko at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/114065] New: gnat build with -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 fails on 32bit archs Date: Thu, 22 Feb 2024 19:40:29 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new 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: doko at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: 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 Bug ID: 114065 Summary: gnat build with -D_TIME_BITS=3D64 -D_FILE_OFFSET_BITS= =3D64 fails on 32bit archs Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ada Assignee: unassigned at gcc dot gnu.org Reporter: doko at gcc dot gnu.org CC: dkm at gcc dot gnu.org Target Milestone: --- trying to build with time_t64 on 32bit archs fails with: g-socket.adb:2860:26: error: value not in range of type "time_t" defined at g-sothco.ads:47 g-socket.adb:2860:26: error: static expression fails Constraint_Check g-socket.adb:2862:26: error: value not in range of type "time_t" defined at g-sothco.ads:47 g-socket.adb:2862:26: error: static expression fails Constraint_Check make[8]: *** [../gcc-interface/Makefile:301: g-socket.o] Error 1 make[8]: Leaving directory '/<>/build/gcc/ada/rts' this can be fixed with --- a/gcc/ada/libgnat/s-parame.ads +++ b/gcc/ada/libgnat/s-parame.ads @@ -102,7 +102,7 @@ -- Characteristics of time_t type -- ------------------------------------ - time_t_bits : constant :=3D Long_Integer'Size; + time_t_bits : constant :=3D Long_Long_Integer'Size; -- Number of bits in type time_t ---------------------------------------------- however that's not the correct fix. Is there any way to fix this in a better way? Plust, this uncovered a bootstrap error on hppa-linux See PR114062=