From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4C6983858C50; Sat, 7 Jan 2023 21:58:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4C6983858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1673128725; bh=WXLgmEXLV1GzFQ4oA/hUEvL6jaG+LndflVaA41hHYYo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=O6H3laxK9ZQG9CLGPUU4vuuhokTiN5sIUp3J1bLxjtOFanfOSmnxkF7DmnY+6/ro7 XWodiajBFzozJT83l4dQmaJs4U4IfqDZyYaftCee+r4mMSft9pjmBrUN0kI2Ymkh1J r0xXMusTkYgB2GzX/6J67xpD/rQsbIABfDvuZOLg= From: "jwakely.gcc at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug build/29966] Cannot build anymore for win32 thread model of gdb Date: Sat, 07 Jan 2023 21:58:44 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: build X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jwakely.gcc at gmail dot com X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29966 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jwakely.gcc at gmail dot c= om --- Comment #12 from Jonathan Wakely --- For libstdc++ I have no interest whatsoever in supporting Windows 98 and ot= her dinosaurs. The win32 thread model that was previously completely non-functi= onal now supports C++11 std::mutex etc. but only for "Windows Vista and Server 2= 008 or later" (to quote the comment in gthr-win32.h). If you define _WIN32_WINN= T to an older value, you can't use std::mutex etc. That's not "something also wr= ong with gcc and libstdc++ too", it's just reality. So if GDB wants to use threads for a mingw target that uses --enable-threads=3Dwin32 (rather than --enable-thread=3Dposix via libwinpth= reads) then it needs to target Vista or Server 2008 or later. Otherwise, if it wan= ts to target older versions of Windows, then it needs to not use std::mutex et= c. --=20 You are receiving this mail because: You are on the CC list for the bug.=