From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D5EE93858034; Tue, 15 Dec 2020 19:48:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D5EE93858034 From: "euloanty at live dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/98300] GCC 11 failed to build on Windows 10. I guess the new module completely breaks this. Date: Tue, 15 Dec 2020 19:48:11 +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: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: euloanty at live dot com X-Bugzilla-Status: UNCONFIRMED 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: Tue, 15 Dec 2020 19:48:12 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98300 --- Comment #5 from fdlbxtqi --- (In reply to Nathan Sidwell from comment #3) > Hm, I thought there was sufficient #ifing to prevent that ... BTW. I tried the example you showed on the GCC module webpage on Linux. It fails to compile. why? cqwrteur@Home-Server:~/myhome/test_module$ vim hello.cc cqwrteur@Home-Server:~/myhome/test_module$ vim a.cc cqwrteur@Home-Server:~/myhome/test_module$ g++ -fmodules-ts hello.cc main.cc -Ofast -std=3Dc++20 -s /usr/bin/ld: /tmp/ccQUwe74.o: in function `_GLOBAL__sub_I_main': main.cc:(.text.startup+0x31): undefined reference to `_ZGIW5helloEv' collect2: error: ld returned 1 exit status My MinGW-w64 msys2 build script Just run makepkg-mingw in the msys2 console and the compiler will get built. https://bitbucket.org/ejsvifq_mabmip/mingw-gcc-mcf-gthread/src/master/=