From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 45C033858401; Fri, 15 Oct 2021 20:48:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 45C033858401 From: "gcc_bugzilla at axeitado dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/100486] Ada build fails for 32bit Windows Date: Fri, 15 Oct 2021 20:48:07 +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: 11.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gcc_bugzilla at axeitado dot com X-Bugzilla-Status: WAITING 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: Fri, 15 Oct 2021 20:48:07 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100486 --- Comment #29 from =C3=93scar Fuentes = --- (In reply to Eric Botcazou from comment #28) > OK, I know what's wrong in the libstdc++.dll of GCC 11, now let's try to > figure out why this is so... Can you run 'nm' on one of the occurrences = of > crtend.o in the build tree (there are two copies of it)? On my machine it > yields: >=20 > 00000000 b .bss > 00000000 d .ctors.65535 > 00000000 d .data > 00000000 d .eh_frame > 00000000 r .rdata$zzz > 00000000 t .text > 00000000 t .text.startup > 00000000 d ___FRAME_END__ > U ___gcc_register_frame > 00000000 t _register_frame_ctor I have quite a few crtend.o files in the build directory. A quick glance indicates that .text.startup is missing: $ for f in `find ./build-i686-w64-mingw32/ -name crtend.o` ; do echo $f && = nm $f ; done ./build-i686-w64-mingw32/gcc/crtend.o 00000000 b .bss 00000000 d .ctors.65535 00000000 d .data 00000000 r .eh_frame 00000000 r .rdata$zzz 00000000 t .text 00000000 r ___FRAME_END__ U ___gcc_register_frame 00000000 t _register_frame_ctor ./build-i686-w64-mingw32/i686-w64-mingw32/libgcc/crtend.o 00000000 b .bss 00000000 d .ctors.65535 00000000 d .data 00000000 r .eh_frame 00000000 r .rdata$zzz 00000000 t .text 00000000 r ___FRAME_END__ U ___gcc_register_frame 00000000 t _register_frame_ctor ./build-i686-w64-mingw32/prev-gcc/crtend.o 00000000 b .bss 00000000 d .ctors.65535 00000000 d .data 00000000 r .eh_frame 00000000 r .rdata$zzz 00000000 t .text 00000000 r ___FRAME_END__ U ___gcc_register_frame 00000000 t _register_frame_ctor ./build-i686-w64-mingw32/prev-i686-w64-mingw32/libgcc/crtend.o 00000000 b .bss 00000000 d .ctors.65535 00000000 d .data 00000000 r .eh_frame 00000000 r .rdata$zzz 00000000 t .text 00000000 r ___FRAME_END__ U ___gcc_register_frame 00000000 t _register_frame_ctor ./build-i686-w64-mingw32/stage1-gcc/crtend.o 00000000 b .bss 00000000 d .ctors.65535 00000000 d .data 00000000 r .eh_frame 00000000 r .rdata$zzz 00000000 t .text 00000000 r ___FRAME_END__ U ___gcc_register_frame 00000000 t _register_frame_ctor ./build-i686-w64-mingw32/stage1-i686-w64-mingw32/libgcc/crtend.o 00000000 b .bss 00000000 d .ctors.65535 00000000 d .data 00000000 r .eh_frame 00000000 r .rdata$zzz 00000000 t .text 00000000 r ___FRAME_END__ U ___gcc_register_frame 00000000 t _register_frame_ctor These are the crtend.o from the installed gcc 10.3 (which works fine): $ for f in `find /mingw32 -name crtend.o` ; do echo $f && nm $f ; done=20= =20=20=20=20=20=20=20=20 /mingw32/i686-w64-mingw32/lib/crtend.o 00000000 b .bss 00000000 d .data 00000000 r .rdata$zzz 00000000 t .text /mingw32/lib/gcc/i686-w64-mingw32/10.3.0/crtend.o 00000000 b .bss 00000000 d .ctors.65535 00000000 d .data 00000000 r .eh_frame 00000000 r .rdata$zzz 00000000 t .text 00000000 t .text.startup 00000000 r ___FRAME_END__ U ___gcc_register_frame 00000000 t _register_frame_ctor=