From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from latitanza.investici.org (latitanza.investici.org [82.94.249.234]) by sourceware.org (Postfix) with ESMTPS id CCBB7385840E; Tue, 1 Nov 2022 05:22:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org CCBB7385840E Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=autistici.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=autistici.org Received: from 1.mail-backend.investici.org (unknown [10.0.0.11]) by latitanza.investici.org (Postfix) with ESMTP id 4N1dgm4mJhzGp0Y; Tue, 1 Nov 2022 05:22:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1667280148; bh=iKU1kEJt8BGvaKbQvZaIYAs1lQZ34SmGG+qaJOBEmWA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ciLX/fOy/sXKygxGdLMV9FTjpZdZBe0WgQcwSm9tW2QUAr+6N+wGZbK+yW68m+5Ff a3sNpI8dv+h8TOkxHc7P+eRs/0ZxC3H/lLltElzHyLcf+yz1qx1mElNwNsadSC4wiB 5Xq4s+a26PusUwkFJILuej2KTtGYPwMCWsX8K5Rk= Received: from 1.webmail.investici.org (localhost [127.0.0.1]) (Authenticated sender: i.nixman@autistici.org) by 1.mail-backend.investici.org (Postfix) with ESMTPA id 4N1dgm3HyZz5t7Q; Tue, 1 Nov 2022 05:22:28 +0000 (UTC) MIME-Version: 1.0 Date: Tue, 01 Nov 2022 05:22:28 +0000 From: i.nixman@autistici.org To: Eric Botcazou Cc: i.nixman@autistici.org, libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: Re: Adding a new thread model to GCC In-Reply-To: <21655510.EfDdHjke4D@fomalhaut> References: <0f1f223a-3756-1da3-bd1d-b87edd34e1f9@126.com> <4435122.LvFx2qVVIh@fomalhaut> <5795a640ae545b07f11763c310825cc9@autistici.org> <21655510.EfDdHjke4D@fomalhaut> User-Agent: Roundcube Webmail Message-ID: <9dc353a02591d10e5830ec069325ba28@autistici.org> X-Sender: i.nixman@autistici.org Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 2022-10-31 09:18, Eric Botcazou wrote: hello Eric! > This also changes libstdc++ to pass -D_WIN32_WINNT=0x0600 but only when > the > switch --enable-libstdcxx-threads is passed, which means that C++11 > threads > are still disabled by default *unless* MinGW-W64 itself is configured > for > Windows Vista/Server 2008 or later by default (this has been the case > in > the development version since end of 2020, for earlier versions you can > configure it --with-default-win32-winnt=0x0600 to get the same effect). I have faced with "#error Timed lock primitives are not supported on Windows targets" and I'm not sure I understood the reason correctly. as far as I understand, the definition for `_GTHREAD_USE_MUTEX_TIMEDLOCK` comes from libstdc++/configure as a result of some test. why did I faced with this error? what should I do to avoid this? > you can configure it --with-default-win32-winnt=0x0600 to get the same > effect are you talking about the `--with-default-win32-winnt=` option used on MinGW-builds script? best!