From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 642673858C60; Tue, 14 Dec 2021 01:44:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 642673858C60 From: "syq at debian dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug d/103604] [12 Regression] trunk 20210506 fails to build in libphobos on mips64el-linux-gnu Date: Tue, 14 Dec 2021 01:44:56 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: d X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: syq at debian dot org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ibuclaw at gdcproject dot org X-Bugzilla-Target-Milestone: 12.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Dec 2021 01:44:56 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103604 --- Comment #11 from YunQiang Su --- (In reply to Iain Buclaw from comment #10) > (In reply to YunQiang Su from comment #6) > >=20 > > This patch can solve this problem: of course, we need to back port it to > > gcc-10/gcc-11 also. > >=20 > > The problem is due to that:=20 > > N32 and N64 uses different "struct stat" > > In the older version, __USE_FILE_OFFSET64 may be not defined for N64 > > while now, it is defined. > Is this patch backwards compatible though? Perhaps the value of > `__USE_FILE_OFFSET64` should instead be fixed to match that of the target. ohhh. you are right. I misunderstand this problem.=