From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Emacs uses "global" compiler instead of embedded Date: Fri, 30 Sep 2022 13:26:51 +0300 Message-ID: <83sfk9duok.fsf@gnu.org> References: <83ill6hfa5.fsf@gnu.org> <83h70qf8bk.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4620"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 30 12:28:05 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oeDFU-00015A-9i for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 30 Sep 2022 12:28:04 +0200 Original-Received: from localhost ([::1]:59824 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oeDFS-0005Xl-Qk for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 30 Sep 2022 06:28:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47032) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oeDEZ-0005W6-52 for help-gnu-emacs@gnu.org; Fri, 30 Sep 2022 06:27:07 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42892) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oeDEY-0006zi-Qq for help-gnu-emacs@gnu.org; Fri, 30 Sep 2022 06:27:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=dJq1ZoRaqjeKD0f30uiRDg0i/qrv0sPoj4tVPRWhW9E=; b=UWSqzRWqKpGq JMNl8Eb0AR01O/VE2y+Tu4Ncn3s+nhYbljYC2DyMLtDTMSOGxMxP57f/QmMwZZxHFConIfygWd00H /uX8Xr61l984oirpwjjS5CM52YCkMsMngAF0BFGwybJufQOH1AgfKqHmOcFonpA88hRakVvZJCeQD YmWeK/iFMoQf+ER0lU7qj1wWmomKeaGOuAI3a5u+cf53xmDUDnIIwAVn1sz+BjftIT8h3aAtfybLV tpDnsgTxdbmhHq3lCGcZDVpFzOJuLVmjp50KYUpBN0ts+MBewD4ORy4+dEo0/5weSqeiHQYK/XZQS 1Er5Gp73zJiQsmt4koADYw==; Original-Received: from [87.69.77.57] (port=2244 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oeDEX-0004sy-1z for help-gnu-emacs@gnu.org; Fri, 30 Sep 2022 06:27:05 -0400 In-Reply-To: (message from Bartosz Bubak on Fri, 30 Sep 2022 10:02:39 +0200) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:139684 Archived-At: > From: Bartosz Bubak > Date: Fri, 30 Sep 2022 10:02:39 +0200 > Cc: help-gnu-emacs@gnu.org > > >> That's what I'm explaining from the beginning, I have only one MinGW > >> instance, in chocolatey. > >> The second is installed and configured automatically by the emacs > installer > >> and that is what emacs should use. > >> Not my "main" in the system. > > > Didn't you say that if you remove the GCC installation in > > C:\Program Files\Emacs\emacs-28.2\, everything starts working? > > No, I removed my MinGW installation, then everything works fine. What is "your MinGW installation" in this context? Is it what came with Emacs, or is it what was installed from chocolatey? They are both "MinGW" (AFAIU), so what you say is ambiguous. > > AFAIU, it isn't Emacs that looks for GCC, it's libgccjit DLL. So > >maybe just removing libgccjit DLL that came with Emacs will solve your > > problem. > > I tried it, just for the test. It didn't change anything. What exactly did you try, and how did it "not change anything"? Does Emacs succeed in loading libgccjit you have from chocolatey, when you remove the DLL that came with Emacs? If not, does the chocolatey libgccjit DLL live in some directory on PATH? > As you mentioned on Reddit, the installer doesn't ask for anything and > doesn't let you NOT install local gcc. But if removing the local GCC (which is what? the one that came with Emacs?) doesn't leave you with Emacs that can natively-compile, there's a larger problem here, one that I don't yet understand. What version of GCC did you install from chocolatey? What does "gcc --version" there say?