From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 06 16:17:22 2021 Received: (at 39400) by debbugs.gnu.org; 6 Jul 2021 20:17:22 +0000 Received: from localhost ([127.0.0.1]:50305 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0rVS-00083B-0Y for submit@debbugs.gnu.org; Tue, 06 Jul 2021 16:17:22 -0400 Received: from out1.migadu.com ([91.121.223.63]:34305) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0rVP-000830-Ra for 39400@debbugs.gnu.org; Tue, 06 Jul 2021 16:17:21 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mgsn.dev; s=key1; t=1625602637; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=AozZCJTq1G1NGnTFN/tqe56I5JefHP/L7DtbihOUY4w=; b=Xk4Aso7fuNXj4tlXEwEt1bSPH1EG5ErvABwrrjJsIzGuzuV+Me/GUC5jS7gjvWRt+XkdmF 6YaTDAiOzp5MH2BNTqCEYj7sq48C58HGp2yhS1oVavtUM5GugeLTE6vGMgXDkHqK9BdW8L iS12WPsR51es1yuVyFedgcpac+dI5cU= From: Sarah Morgensen To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#39400: Go retains a reference to GCC References: <87v9oo391q.fsf@gnu.org> <86k0m6abn2.fsf@mgsn.dev> Date: Tue, 06 Jul 2021 13:17:15 -0700 In-Reply-To: <86k0m6abn2.fsf@mgsn.dev> (Sarah Morgensen's message of "Sat, 03 Jul 2021 22:30:57 -0700") Message-ID: <86k0m3jiyc.fsf@mgsn.dev> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: iskarian@mgsn.dev X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 39400 Cc: Tobias Geerinckx-Rice , 39400@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hello, A quick addendum... Sarah Morgensen writes: > This means that even if the user provides a different CC, the > gcc-7.5.0-lib dir will also be in the runpath. I do not know if, or how > much, this would conflict with other gcc-lib runpaths. > I have just seen the consequences of this: the binary is unable to load symbols from the newer library. More info at . > I have experimented with a couple ways of removing the gcc-7.5.0 reference: > > 1. Simply set CC=gcc. This works to remove gcc-7.5.0 from references, > but we still get a gcc-7.5.0-lib runpath. We can't remove this runpath > completely, as anything using cgo-enabled parts of the standard library > require it, and Go does not save the library location anywhere. > -- Sarah