From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 61307 invoked by alias); 31 Jul 2019 09:17:43 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 61299 invoked by uid 89); 31 Jul 2019 09:17:43 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-5.1 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.1 spammy=asking X-HELO: nikam.ms.mff.cuni.cz Received: from nikam.ms.mff.cuni.cz (HELO nikam.ms.mff.cuni.cz) (195.113.20.16) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 31 Jul 2019 09:17:42 +0000 Received: by nikam.ms.mff.cuni.cz (Postfix, from userid 16202) id 342D72825B7; Wed, 31 Jul 2019 11:17:40 +0200 (CEST) Date: Wed, 31 Jul 2019 09:22:00 -0000 From: Jan Hubicka To: Jakub Jelinek Cc: Martin =?iso-8859-2?Q?Li=B9ka?= , Jeff Law , gcc-patches@gcc.gnu.org, Michael Matz , Richard Biener Subject: Re: [PATCH] Deduce automatically number of cores for -flto option. Message-ID: <20190731091740.og6rbdgqygpp437f@kam.mff.cuni.cz> References: <20190730233230.GS15878@tucnak> <87d4b006-bb01-a608-7abe-680dffcc937a@suse.cz> <20190731073407.GU15878@tucnak> <20190731080809.g2uerujjqvsaut74@kam.mff.cuni.cz> <20190731085757.GX15878@tucnak> <20190731091215.f5yjjaevmvhiyma4@kam.mff.cuni.cz> <20190731091503.GY15878@tucnak> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190731091503.GY15878@tucnak> User-Agent: NeoMutt/20170113 (1.7.2) X-SW-Source: 2019-07/txt/msg01862.txt.bz2 > On Wed, Jul 31, 2019 at 11:12:15AM +0200, Jan Hubicka wrote: > > > so, if one is lucky enough and at least one of the two file descriptors in > > > MAKEFLAGS --jobserver-auth= is closed, it will work fine, but if they are > > > open, even when they have nothing to do with make, it will fail miserably. > > > > I see, so the problem is that lto-wrapper is executed via plugin from > > gold which already used the file descriptors for something else? > > I don't think I'm using gold, I have it installed, but /usr/bin/ld points to > ld.bfd. Particular linker implementation probably does not make much pracitcal difference. It seems natural that linker opens couple files prior asking plugin doing its job. Honza