From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1E44A3858D38; Sat, 14 Jan 2023 17:52:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1E44A3858D38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1673718771; bh=oq7bR4+nxkKZJ+d16t+lunHQmLZHpqxbrOuNz/524io=; h=From:To:Subject:Date:In-Reply-To:References:From; b=HcFek5S+8l3820Km3lMLnRsaS93KRMCR/htA1XTG9yb07m2ikTlM0tIvA5goYXB5v eclgugucM6lfBZLaDO3a0jYWiaf+15j7XefsA6WUFkW6YPzbbQ51NXCO4AVIODls8q reJZzA8banda60mG5trSAlJwiXppFo729FSJL4sA= 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, 14 Jan 2023 17:52:50 +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: REOPENED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: tromey at sourceware dot org X-Bugzilla-Target-Milestone: 13.1 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://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29966 --- Comment #46 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #45) > So that might mean that GDB needs to pick a newer default value of > _WIN32_WINNT, because the current "define it to 0x0501 if not defined > already" logic selects a prehistoric version which cannot be used with GCC > 13 + --enable-threads=3Dwin32 Another option (which I haven't actually tested) would be to extend the existing configure check that uses std::thread to also include and = do: std::mutex m; std::lock_guard l(m); That would fail with GCC 13 + threads=3Dwin32 when _WIN32_WINNT < 0x0600, a= nd so GDB would disable threads. It would work with GCC 13 with threads=3Dposix, or threads=3Dwin32 && _WIN3= 2_WINNT >=3D 0x0600 --=20 You are receiving this mail because: You are on the CC list for the bug.=