From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B30B8398BC27; Thu, 28 Jan 2021 02:40:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B30B8398BC27 From: "unlvsur at live dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/98860] boostrap failure on MinGW-w64 windows 10 Date: Thu, 28 Jan 2021 02:40:43 +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: unlvsur 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: Thu, 28 Jan 2021 02:40:43 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98860 --- Comment #5 from cqwrteur --- I do not know whether it has to do with the CRLF issue because GCC on Linux emits the same result as it does on MinGW-w64 or msys2. conftextx.c #ifdef __x86_64__ #ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 #error need -march=3Di486 #endif #ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16 #error need -mcx16 #endif #else #ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 #error need -march=3Di686 #endif #endif MinGW32 unlvs@DESKTOP-DFHPDC1 MINGW32 ~/gcc_bug $ gcc -E conftestx.c # 1 "conftestx.c" # 1 "" # 1 "" # 1 "conftestx.c" unlvs@DESKTOP-DFHPDC1 MINGW32 ~/gcc_bug $ gcc -E conftestx.c -march=3Di486 # 1 "conftestx.c" # 1 "" # 1 "" # 1 "conftestx.c" conftestx.c:10:2: error: #error need -march=3Di686 10 | #error need -march=3Di686 | ^~~~~ MinGW64 unlvs@DESKTOP-DFHPDC1 MINGW64 ~/gcc_bug $ gcc -E conftestx.c -m32 # 1 "conftestx.c" # 1 "" # 1 "" # 1 "conftestx.c" unlvs@DESKTOP-DFHPDC1 MINGW64 ~/gcc_bug $ gcc -E conftestx.c -march=3Di486 -mtune=3Dgeneric # 1 "conftestx.c" cc1.exe: error: CPU you selected does not support x86-64 instruction set MSYS (which is x86_64 with CYGWIN) unlvs@DESKTOP-DFHPDC1 MSYS ~/gcc_bug $ gcc -E conftestx.c # 1 "conftestx.c" # 1 "" # 1 "" # 1 "conftestx.c" conftestx.c:6:2: error: #error need -mcx16 6 | #error need -mcx16 | ^~~~~ unlvs@DESKTOP-DFHPDC1 MSYS ~/gcc_bug $ gcc -E conftestx.c -march=3Di486 # 1 "conftestx.c" cc1: error: CPU you selected does not support x86-64 instruction set The result on Linux: cqwrteur@DESKTOP-DFHPDC1:/mnt/d/msys64/home/unlvs/gcc_bug$ gcc -E conftestx= .c # 0 "conftestx.c" # 0 "" # 0 "" # 1 "/usr/include/stdc-predef.h" 1 3 4 # 0 "" 2 # 1 "conftestx.c" conftestx.c:6:2: error: #error need -mcx16 6 | #error need -mcx16 | ^~~~~ cqwrteur@DESKTOP-DFHPDC1:/mnt/d/msys64/home/unlvs/gcc_bug$ gcc -E conftestx= .c -march=3Di486 # 0 "conftestx.c" cc1: error: CPU you selected does not support x86-64 instruction set=