X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E5C7B3856956 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1686270194; bh=UkVWKR8fw8FEzVAvaVFRhlLmMQJyRAjzm1YIyZzy+YU=; h=Date:To:Cc:Subject:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=KjqnmZJwciPa9zLv+ivNAVLo3cO950PIOZcA9EFRbXh+2b0y4KHW8U3H2WnbFfLzm OIT+qM3Y9C+CQcs2bjrAZBBO4cKL1BV2w8zcXXRsmrSCB1dNugfHw/9ZhVlP4RTV55 YibkNNLVqnXexD5H2TOOFVMcm1yHEpWJ047PctvE= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 285883856948 Date: Fri, 9 Jun 2023 09:22:33 +0900 To: cygwin AT cygwin DOT com Cc: "=?UTF-8?B?TcO8bWlu?= A." Subject: Re: Memory Barriers at pthread using CYGWIN Message-Id: <20230609092233.952b3d191906006ba36ed36c@nifty.ne.jp> In-Reply-To: References: X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Takashi Yano via Cygwin Reply-To: Takashi Yano Content-Type: text/plain; charset="utf-8" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 3590NdcY018704 On Thu, 8 Jun 2023 22:58:59 +0000 Mümin A. wrote: > r1=0 and r2=0 > That is my result with Cygwin on windows. It’s false. > > When I compiled with gcc. The result is correct but when I use lasted Cygwin gcc in windows 10. The result is false. I cannot reproduce your problem. If I compile main.cpp with 'g++ main.cpp', a.exe outputs r1 = 1, r2 = 1 If I use cmake, I get an error message: CMake Error at CMakeLists.txt:1 (cmake_minimum_required): CMake 3.26 or higher is required. You are running version 3.25.3 My environment is: cygwin 3.4.6 g++ (GCC) 11.4.0 cmake version 3.25.3 all packages are updated. -- Takashi Yano -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple