From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9C4283858D39; Wed, 4 Jan 2023 13:32:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9C4283858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1672839152; bh=WIE1DabWo4t3fSGUJ48ojfWozOoY7hrUJm9gFh9VeOE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=jda97CHeJxV8CSxAzhQsn9cQjUcgs/ZI6yo0MWV49QWab0QABaUhqEYlcO6HpZGdq 4ql5vaqNKQ+qavXMGSR2ze1rIxFs7ft47Wy6qwqnHCxOOnClemIBj6kk10pWNnHQ9O coHUe5kHMPTrTxZ2vbQ1DdXvRoNiAAfQLJr6SpyI= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/108225] canadian compilation of gdb error for libstdc++'s std_mutex.h on x86_64-w64-mingw32 host Date: Wed, 04 Jan 2023 13:32:32 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: WONTFIX 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: resolution bug_status 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108225 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |WONTFIX Status|WAITING |RESOLVED --- Comment #10 from Jonathan Wakely --- (In reply to cqwrteur from comment #3) > libstdc++ completely ignores __GTHREAD_HAS_COND macro which cause build > failure for gdb If GDB requires then it requires working C++11 thread support, which has never worked for the win32 thread model with -D_WIN32_WINNT=3D0x0500. With GCC 12, gthr-win32.h simply doesn't support std::mutex, period. With GCC 13 it supports it for modern Windows versions: /* Condition variables are supported on Vista and Server 2008 or later. */ #if _WIN32_WINNT >=3D 0x0600 #define __GTHREAD_HAS_COND 1 #define __GTHREADS_CXX0X 1 #endif For older Windows versions, the win32 thread model doesn't support std::mut= ex etc. There is no C++11 threading support for Win95 using --enable-threads=3Dwin3= 2. If you don't like it, either don't compile for Win95 or use a different thread model. Ranting and raving that unsupported things don't work is a waste of time.=