X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 991093858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1694150351; bh=00U6Z6C3ifUPKScWt/+za//fDOk1dFKmQYdgkXyVJuk=; h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=HWsVZ6+3k9eeKYTRp5qm+qWXnp7BBNi61UHMQcaZISZSGcBV8ZVedSh5lRKUlfTua WPqv4f06l/SNh7m7R0ORyh2taKMIGHPLq7q3xUiybWbWCDSIyPFZt1Mk4Vaq3tuZDn zLo244biHGF/K4TDPgn7J/DSubcw9NJjXnUEced4= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8CE973858D1E Subject: Re: [pkg cygwin-devel] /usr/include/sys/cpuset.h:52 error: missing return type To: cygwin AT cygwin DOT com References: Message-ID: <3e525bb6-ce45-4e0c-fd65-29f4ae69454e@maxrnd.com> Date: Thu, 7 Sep 2023 22:18:32 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.4 MIME-Version: 1.0 In-Reply-To: X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, SPF_HELO_NONE, SPF_NONE, 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 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Mark Geisert via Cygwin Reply-To: Mark Geisert Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Hi Marco, Marco Mason via Cygwin wrote: > I just updated to 3.4.9-1 and compiled some code, and it complained about > cpuset.h. > Specifically, "C++ requires a type specifier for all declarations", and > sure enough, there's no return type on line 52. So I changed my local copy > to the following, and it cleared things up: > > #define CPU_ZERO_S(siz, set) __cpuset_zero_s (siz, set) > static __inline /*MCM*/ void /*MCM*/ > __cpuset_zero_s (__size_t siz, cpu_set_t *set) > { Thanks for the report; right you are. > I looked at a couple mailing list archives and saw that the cpuset.h header > was worked on recently, but couldn't track it down any closer. I also > tried to find a git repository so I could find the commit so I could check > for similar errors on other headers, but couldn't find the repo for > cygwin-devel anywhere. This error was introduced with the most recent update to cpuset.h. There is a public-visible mirror of the Cygwin tree at https://github.com/cygwin/cygwin/blob/main/winsup/cygwin and the problematic file can be found at include/sys/cpuset.h within. Your bug report and proposed correction are all we need for the issue you ran into. I'll submit a patch shortly. Thanks again, ..mark -- 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