From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 74DD63858C54; Thu, 19 May 2022 09:46:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 74DD63858C54 From: "ebotcazou at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/105507] Ada build fails for 32bit Windows Date: Thu, 19 May 2022 09:46:03 +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: 12.1.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: ebotcazou at gcc dot gnu.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: 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: Thu, 19 May 2022 09:46:03 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105507 --- Comment #8 from Eric Botcazou --- > We currently link: >=20 > shared: gmp, winpthread, zlib, zstd > static: mpc, mpfr, isl >=20 > Not for any particular gcc related reason I think, some dependent packages > have static/shared builds, some don't. Why didn't I think of that for PR ada/100486? So the fix should have been = to add -shared-libgcc to GCC_LINKERFLAGS in gcc/ada/gcc-interface/Make-lang.in: # Strip -Werror during linking for the LTO bootstrap GCC_LINKERFLAGS =3D $(filter-out -Werror, $(ALL_LINKERFLAGS)) -shared-libgcc in your setup since you link gnat1 with shared libraries. This should overr= ide the -static-libgcc in ALL_LINKERFLAGS inherited from toplevel. So you need to to it 1) for GCC 11: rebuild it and reinstall it 2) for GCC = 12: build it with the patched GCC 11. Note that this means that GCC 11 is currently not fully functional anyway.=