From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DDB903857407; Wed, 18 May 2022 22:05:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DDB903857407 From: "ebotcazou at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/105507] Ada build fails for 32bit Windows Date: Wed, 18 May 2022 22:05: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: 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: Wed, 18 May 2022 22:06:00 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105507 --- Comment #5 from Eric Botcazou --- > We do have some open bugs re broken exception handling with mingw32, like > https://github.com/msys2/MINGW-packages/issues/9289#issuecomment-945306860 >=20 > Sadly no one stepped up to look into that. Do you think this could be > related? Possible, but the above report clearly points to pitfall #1 with DWARF unwinding: you may *not* have more than a single libgcc in a link. This me= ans that, if you link with a DLL that was linked with the (shared, that's requuired) libgcc, you *cannot* also link with the static libgcc, because t= his brings 2 libgccs in the link, you *must* link with the shared libgcc. So the rule of thumb is to never use -static-libgcc if you have a GCC-compi= led DLL in the link, that's guaranteed to break otherwise.=