From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 936503858C83; Wed, 12 Apr 2023 11:17:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 936503858C83 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1681298241; bh=LdrC4YIzNYnU7fExOyVE/HkfUZaapU7WVBI3+vsok40=; h=From:To:Subject:Date:In-Reply-To:References:From; b=xbd1rXaRwfdYtRnqnXiOnzAKY7UstKwvcXCKdsWXkK4ZjSPIB0GkIZ5xiT4NU0Dkc cBFC+d1QyBYyJhazwKmnw4JWnKhirbKSMSrhC5JD7HmakEOzLAgf49H3VveTOM2vue lTX0fjaHLdIu0RAFM5BV8BnuC/PuNTKM0bXhssNc= From: "costas.argyris at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/109460] Build gcc for win32 failed in gcc13 master branch Date: Wed, 12 Apr 2023 11:17:21 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: costas.argyris at gmail dot com 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: 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=3D109460 --- Comment #24 from Costas Argyris --- So this is because of the old (7.3) gcc version not supporting -r. Indeed, in the 7.3 doc https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/Link-Options.html#Link-Options there is no '-r' option while there is in the current doc: https://gcc.gnu.org/onlinedocs/gcc/Link-Options.html#Link-Options However, I don't understand how the proposed solution works: + $(COMPILER) -r -nostdlib utf8rc-mingw32.o sym-mingw32.o -o $@ since we are still using the -r flag which we just found out doesn't work in 7.3 The fact that -nostdlib somehow makes it work seems like magic to me, and I can't propose such a patch for that reason. I also don't know if this fi= xes this case of using an old compiler but breaks others. If Eric feels confident about this and can test that it doesn't break curre= ntly working builds, please propose a patch. Thanks=