From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from m0.truegem.net (m0.truegem.net [69.55.228.47]) by sourceware.org (Postfix) with ESMTPS id 4BB353858C2B for ; Thu, 24 Aug 2023 21:39:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4BB353858C2B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=maxrnd.com Authentication-Results: sourceware.org; spf=none smtp.mailfrom=maxrnd.com Received: (from daemon@localhost) by m0.truegem.net (8.12.11/8.12.11) id 37OLdbTr067396 for ; Thu, 24 Aug 2023 14:39:37 -0700 (PDT) (envelope-from mark@maxrnd.com) Received: from 50-1-247-226.fiber.dynamic.sonic.net(50.1.247.226), claiming to be "[192.168.4.101]" via SMTP by m0.truegem.net, id smtpdV5khCu; Thu Aug 24 14:39:36 2023 Subject: Re: can't compile coreutils-9.3 any more after upgrade to cygwin-3.4.8 To: cygwin@cygwin.com References: <83C27059-CB24-48F5-AC91-AB0622DF82CD@Denis-Excoffier.org> From: Mark Geisert Message-ID: Date: Thu, 24 Aug 2023 14:39:36 -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: <83C27059-CB24-48F5-AC91-AB0622DF82CD@Denis-Excoffier.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,KAM_DMARC_STATUS,KAM_LAZY_DOMAIN_SECURITY,KAM_NUMSUBJECT,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 List-Id: Hi Denis, Thanks for the report. More below... Denis Excoffier via Cygwin wrote: > Hello, > When i try to compile coreutils-9.3 under cygwin-3.4.8 i get the following error messages (see below). > There seems to be a kind of loop in the hierarchy of #includes. > Moreover, with cygwin-3.4.7, this is ok. Also, if under cygwin-3.4.8 i remove the 2 #includes from /usr/include/sys/cpuset.h, > this is also ok. > > Regards, > > Denis Excoffier. > > > > In file included from /usr/include/sys/signal.h:23, > from /usr/include/signal.h:6, > from ./lib/signal.h:52, > from /usr/include/time.h:158, > from ./lib/time.h:47, > from ./lib/sys/stat.h:44, > from ./lib/fcntl.h:64, > from ./lib/unistd.h:99, > from ./lib/stdlib.h:98, > from /usr/include/sys/cpuset.h:12, > from /usr/include/sys/_pthreadtypes.h:12, > from /usr/include/sys/types.h:221, > from ./lib/sys/types.h:39, > from ./lib/stdio.h:69, > from src/chroot.c:21: > /usr/include/cygwin/signal.h:121:3: error: unknown type name 'pthread_attr_t' > 121 | pthread_attr_t *sigev_notify_attributes; /* notification attributes */ > | ^~~~~~~~~~~~~~ > In file included from /usr/include/signal.h:6, > from ./lib/signal.h:52, > from /usr/include/time.h:158, > from ./lib/time.h:47, > from ./lib/sys/stat.h:44, > from ./lib/fcntl.h:64, > from ./lib/unistd.h:99, > from ./lib/stdlib.h:98, > from /usr/include/sys/cpuset.h:12, > from /usr/include/sys/_pthreadtypes.h:12, > from /usr/include/sys/types.h:221, > from ./lib/sys/#include types.h:39, > from ./lib/stdio.h:69, > from src/chroot.c:21: > /usr/include/sys/signal.h:227:29: error: expected ')' before 'int' > 227 | int pthread_kill (pthread_t, int); > | ^~~~ > | ) ISTM the above could be fixed by moving "#include " after all the typedefs in . That would be an odd location for an #include though. Another approach would be to have explicit external refs for the needed two functions in and remove the #includes there. > In file included from /usr/include/sys/stat.h:22, > from ./lib/sys/stat.h:47, > from ./lib/fcntl.h:64, > from ./lib/unistd.h:99, > from ./lib/stdlib.h:98, > from /usr/include/sys/cpuset.h:12, > from /usr/include/sys/_pthreadtypes.h:12, > from /usr/include/sys/types.h:221, > from ./lib/sys/types.h:39, > from ./lib/stdio.h:69, > from src/chroot.c:21: > /usr/include/cygwin/stat.h:27:3: error: unknown type name 'timestruc_t' > 27 | timestruc_t st_atim; > | ^~~~~~~~~~~ > /usr/include/cygwin/stat.h:28:3: error: unknown type name 'timestruc_t' > 28 | timestruc_t st_mtim; > | ^~~~~~~~~~~ > /usr/include/cygwin/stat.h:29:3: error: unknown type name 'timestruc_t' > 29 | timestruc_t st_ctim; > | ^~~~~~~~~~~ > /usr/include/cygwin/stat.h:32:3: error: unknown type name 'timestruc_t' > 32 | timestruc_t st_birthtim; > | ^~~~~~~~~~~ I don't have an answer for these. Awaiting more input from our wizards. I'm willing to submit the patch for any agreed solution. ..mark