This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: fork: Resource temporarily unavailable errors after upgrading cygwin packages
- From: Ken Brown <kbrown at cornell dot edu>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Tue, 31 Dec 2019 19:20:08 +0000
- Subject: Re: fork: Resource temporarily unavailable errors after upgrading cygwin packages
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cornell.edu; dmarc=pass action=none header.from=cornell.edu; dkim=pass header.d=cornell.edu; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=yidJmNa9WRcr/7ENMw0g6TJ3nPV4helk4KL5ZAzi7Ho=; b=iOKLFIf4dJXQUbupyMLwArIgO9sKU2haGfKUkqLsAZud0yDH6u8j6n9nKfoge8CfNH91NcIkX/ceZBZXNrwXyJW59whi6fDVPfc9l1dI1w95EnHxPknJ292VX8GvVq/xR/VKMU8j6ElZUFYF8UCk+kL7g8k5YsCjcjrrgK9YSULszDDQQUNSUhAq/o/1KwZdEsPGTD6WqA51ZPsJBwBkH673k7GumRRXJvNaZQseeYUqu/rWlcggTUJPRkXsWPtH0d62cW1ZVok28IKp82SjRaU4Jw4he1JKtkml/+UbjQToCmcDzUPe1/APAua5cnq30uUy721Nu3RQ/viTXtObqQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IcktT1aFU6pgaRW1ZDYJsUiLDlICTBZpkgndbH/Gfx9llnIOHdQRohvdZfXOJMk/7pZmOyCOX1egOhoIVLMui6Or84lsHubsrSM7zI8jATTeFFxB/C+uGnHB886nfxyqAkz9hPcjuPPo2t6iO/ogvc54gu6XSFPw3yPF8vXNu+KWERpsNLbZYXADdi6B25IYWveDoneKHrfbwrEAwr+1pYxem/5izlY63AsJ1nur83SJMOKVOhk2zGy4/Nxb5bg4cYFOISQvC9axR3L50XQS0+z1N5UHJbetjfAMVwqFN4GZzgxQavRnmKc37Tn/PDD+I1c1sWDBDaE2UpbNyhWKKA==
- References: <6d43c714-c4ba-4f0c-9913-cb8453129c85@gmail.com>
On 12/30/2019 6:10 PM, David Finnie wrote:
> I recently upgraded my cygwin64 installation to get latest packages.
>
> After the install, if I run a fairly lengthy GNU make with multiple concurrent
> jobs (-j option) specified, some of the sub-makes fail with "Resource
> temporarily unavailable" errors. In all cases, this has been when make is
> starting a shell (i.e. $(shell ...) ) to help with setting up some of the
> variables required in the make processing. The failure, however, occurs in
> different places in the make files used (the make spawns several sub-makes).
Does this happen with every parallel make, or is it one specific program that
you're building? If the latter, can you give a detailed recipe so that others
can try to reproduce the problem?
> Some example error output from make:
>
> make[2]: ../../build/Make/platform_options.mk:9: fork: Resource temporarily
> unavailable
> make[2]: ../../build/Make/platform_options_linux.mk:33: fork: Resource
> temporarily unavailable
> make[2]: ../../build/Make/platform_options.mk:9: fork: Resource temporarily
> unavailable
> make[2]: ../../build/Make/platform_options_linux.mk:33: fork: Resource
> temporarily unavailable
> make[2]: ../../build/Make/platform_options_oss_l.mk:7: fork: Resource
> temporarily unavailable
> make[2]: fork: Resource temporarily unavailable
>
> Note that while some make operations fail as per above, the vast majority work -
> including sub-makes that are executing the exact same lines that occasionally
> fail. If I force make to run with 1 concurrent job (-j1), I don't get these errors.
>
> I have confirmed via Windows Task Manager that the correct cygwin64 make and
> bash are being invoked. The makefiles do not override the default SHELL.
>
> I have tried all of the usual things:
>
> - running rebaseall from ash (running as Administrator)
>
> - using rebase-trigger full, and then re-running cygwin64 setup
>
> - reverting to a slightly older version of make and bash
Have you tried reverting to cygwin-3.0.7-1?
> This all happened immediately after upgrading the cygwin installation, and I
> didn't change anything else on my system in between make working perfectly, and
> now consistently getting these errors.
>
> Is anyone else experiencing this ? Does anyone have any further magic to try to
> correct it ?
>
> cygcheck.out attached.
The only thing that jumps out at me from your cygcheck output is that your PATH
is very long. I don't know if that's relevant, but you might try cutting it
down before running make.
Ken
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple