From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out1.superhosting.bg (smtp-out1.superhosting.bg [185.123.191.50]) by sourceware.org (Postfix) with ESMTPS id CA2603858401 for ; Wed, 23 Mar 2022 06:24:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org CA2603858401 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=roumenpetrov.info Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=roumenpetrov.info Received: from rila.superhosting.bg ([91.196.125.212]) by smtp-out1.superhosting.bg with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nWuQJ-009vpV-7V for cygwin@cygwin.com; Wed, 23 Mar 2022 08:24:57 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=roumenpetrov.info; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:To:Subject:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=rqdYOgSDCYyxlvrF7qEG2xfWuG3O7W4E5I0wXaNVt5U=; b=Ej3LufBvtPRrqoZyPGV3W+A1ib BTJaUvuWYBh9KAtpo9056l5fu7707JuEbxywg51Nbc/2y53M5Pd/o3IvCc1jgNzyZxlYi7mdFShZo zFwP/4n2YrHzQvyNLRlzg5x39Xa6j5NB2sMZaBepgtpvZ/kP30lr6YP6OK6vV4uikb8HI0pQP3lxL aAcgHZ/VRY/ymrzDLOkuHh+JwhSFWVRggTuiUjk+KMFb7oOrfLjME2JVxCPGkLiqIpfFh0P0ZpCsC PQnN+jwV7pYu4aU34qIGB7tdvwfMqHbMHsB3HRoDwAEaQYvsWqV9Wpe0ao1ODrq0/zFFDEdVImvQQ pALKf1wg==; Received: from [78.128.48.21] (port=35220 helo=[192.168.0.10]) by rila.superhosting.bg with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1nWuQG-000Avo-Ep for cygwin@cygwin.com; Wed, 23 Mar 2022 08:24:46 +0200 Subject: Re: GNU make losing jobserver tokens To: cygwin@cygwin.com References: <9b9da583-124d-9d5f-4c10-6622602ca8dc@oracle.com> From: Roumen Petrov Message-ID: <65df19e4-9ee6-88ec-fde2-2b48cac63340@roumenpetrov.info> Date: Wed, 23 Mar 2022 08:24:44 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 SeaMonkey/2.53.7.1 MIME-Version: 1.0 In-Reply-To: <9b9da583-124d-9d5f-4c10-6622602ca8dc@oracle.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-OutGoing-Spam-Status: No, score=-2.2 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - rila.superhosting.bg X-AntiAbuse: Original Domain - cygwin.com X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - roumenpetrov.info X-Get-Message-Sender-Via: rila.superhosting.bg: authenticated_id: master78@roumenpetrov.info X-Authenticated-Sender: rila.superhosting.bg: master78@roumenpetrov.info X-Source: X-Source-Args: X-Source-Dir: X-SA-Score: -2.1 (--) X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_INFOUSMEBIZ, NICE_REPLY_A, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: cygwin@cygwin.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: , X-List-Received-Date: Wed, 23 Mar 2022 06:25:04 -0000 Hi, Magnus Ihse Bursie wrote: > Hi, > > I'm working for Oracle on the OpenJDK build team. We're using GNU make to build the JDK on all supported platforms. For Windows, we use Cygwin as our build environment, including the Cygwin version of GNU make. > > We have had a long-standing issue with make losing jobserver tokens. ("long-standing" here means for years, and years, at least since GNU make 4.0, up to and including the current latest version in Cygwin.) > Parallel build was working for my on 32-bit cygwin in the past. > Most runs end with something like: > > make[2]: INTERNAL: Exiting with 11 jobserver tokens available; should be 12! > > Since the build still succeeds, and it just affects performance (and typically not that much), we have not spend too much time getting to the bottom of this. Now I cannot get it working on 64-bit cygwin - https://www.mail-archive.com/cygwin@cygwin.com/msg169861.html Interesting that you build succeeds. > > [SNIP] > Instead, they suggested that it was a Cygwin-specific problem, possibly related to issues with emulating Posix pipes and/or signals in Cygwin. There is some issues in the my build environment: - unix domain socket as non administrator (https://www.mail-archive.com/cygwin@cygwin.com/msg169832.html ). If I remember well those socket does not work properly in general. - setup as not admin - package upgrade failed (https://www.mail-archive.com/cygwin@cygwin.com/msg169830.html). The second one look like issue with pipes. > > So, my first question is: Is this a known problem in Cygwin GNU make? Are there any workarounds/fixes to get around it? Does not look like issue in make. Look like general issue. May be related to Microsoft Windows OS restriction to user account. > > Otherwise: Any suggestions on how to go on and debug this? I am willing to build and test an instrumented debug build of make, but I will need assistance to find my way around the source and spot likely candidates for the source of the problem. I'm not regular cygwin user and I do not have time and environments to test build variations. Perhaps build could use local administrator account or to use jobs lest than number of cores. > /Magnus Regards, Roumen Petrov