From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bartosz Bubak Newsgroups: gmane.emacs.help Subject: Re: Emacs uses "global" compiler instead of embedded Date: Thu, 29 Sep 2022 18:12:53 +0200 Message-ID: References: <83ill6hfa5.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16495"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 29 18:26:43 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 1odwN1-000474-3C for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 29 Sep 2022 18:26:43 +0200 Original-Received: from localhost ([::1]:34482 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1odwN0-0004Hy-2C for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 29 Sep 2022 12:26:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58576) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odw9r-0001Vz-5g for help-gnu-emacs@gnu.org; Thu, 29 Sep 2022 12:13:07 -0400 Original-Received: from mail-oi1-x232.google.com ([2607:f8b0:4864:20::232]:46856) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1odw9p-0007tV-IA for help-gnu-emacs@gnu.org; Thu, 29 Sep 2022 12:13:06 -0400 Original-Received: by mail-oi1-x232.google.com with SMTP id g130so2051767oia.13 for ; Thu, 29 Sep 2022 09:13:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date; bh=tJNdbp1EhBX6l47mP9WwQZy3XxtTbizQWWWD7AomC2Y=; b=QUawkLBB1IdYcrmoahxvAbNWoC06vVYCt4DmOon0Ik7Huov7SqJrARg6fowGzO6LoE ZeVdkSYV8unt/pSPwQPAXJ3N86XDgAaIPDtYsnBEJkBLwMwTN6xhMvu7+H1ihbP0DGPN aX2aiVPe0NvGSCg/xxvgxqOJW6QuCpZHnf4UlbcFfJeMjtTcjqv5UkqDvHxbc3iISLv9 Pij1RUE+jBgtluXszhqKyIB9AKBkmyg3wKxSvbUXH2fk6cS0ejEZcAyVN8sG93iPmp/A hag/wdTFt4kpaURtg78nnrwF+44p1SBQYWWu3GIZ5khp/o/jvgBh52FzTp6hdRLmmOd5 1NEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date; bh=tJNdbp1EhBX6l47mP9WwQZy3XxtTbizQWWWD7AomC2Y=; b=YMl1SM8Uitj+qPPaI9D4fXYU9iO62SzhvLYFu6VhPDsyMQCcl6k0/EoDxsUTK75b3M oeVjCfRXSbidY+MsdpBLilcQwTPQ5XV/Q7hFXbBT/ASKtZt51CSLbmKGDI8d+gg/ZXDG LIlHZfP3TotI316k5lakR4OCa0tGAmZbu2EWGlmYz8cobTA8Kr/jbpUvzm+Wc4bLJVmA WklP5O38A24F+LrhTpJKVU53XTslZ+bFFVr7piDPvYeSyJFtPSwP6/p5zXnpFb4QEcud AzcON4oYuafkM5bDJQQdfG6ftSVUurkZ8rs1QyWMPpaxIMd5KEfWRp9Ic2nXINesgiQL ynCA== X-Gm-Message-State: ACrzQf1IArc/55SJgshHGUVmZBXx2ZmzG55lC8EtDu524Ia13Ims/1do ZryLJlfoG7PyHFAiXUvqhWRLJnAVp4i+hGVF+D8lJFTPzf49jQ== X-Google-Smtp-Source: AMsMyM4TGyFrtNhYAP/tO2QWzYtw1HcKzyelVitJmP4ThoqAh8TgdMDurC7XbfHQe1/+pWGwDbkS7MItJtZozoyReME= X-Received: by 2002:a05:6808:1416:b0:350:da6b:e24a with SMTP id w22-20020a056808141600b00350da6be24amr7099255oiv.14.1664467984057; Thu, 29 Sep 2022 09:13:04 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::232; envelope-from=bartosz.bubak@gmail.com; helo=mail-oi1-x232.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, MISSING_HEADERS=1.021, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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:139680 Archived-At: Hi, > I don't know: the description he gave suggests that the Emacs package he > installed included a GCC ("embedded"), in which case that package should > make sure that Emacs uses this bundled GCC rather than any other GCC > that may be found on the system. > But maybe I simply misunderstood what he meant by: Yes, you understood me well. > M-: (executable-find "gcc") RET "c:/ProgramData/chocolatey/bin/gcc.exe > M-: (executable-find "as") RET "c:/ProgramData/chocolatey/bin/as.exe" This is problem, it should be: C:\Program Files\Emacs\emacs-28.2\bin\gcc.exe C:\Program Files\Emacs\emacs-28.2\bin\as.exe On the other hand, I don't want all the rest of the tools in the system to use this installation, so changing global PATH is pointless. 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. In my opinion, the problem is that emacs does not consider local folders when it looks for the compiler. Should look in: 1) Local directories, if not found 2) Global system configuration And it does the opposite, only when gcc is missing in global configuration it uses local. P.S. By mistake I sent the previous response only to Eli instead to group :(