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: Emacs uses "global" compiler instead of embedded Date: Wed, 28 Sep 2022 22:22:19 +0200 Message-ID: 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="19415"; 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 Wed Sep 28 22:23:29 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 1oddab-0004x5-IN for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 28 Sep 2022 22:23:29 +0200 Original-Received: from localhost ([::1]:53026 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oddaa-0004yv-MJ for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 28 Sep 2022 16:23:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36252) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oddZi-0004yn-Hj for help-gnu-emacs@gnu.org; Wed, 28 Sep 2022 16:22:34 -0400 Original-Received: from mail-oo1-xc2a.google.com ([2607:f8b0:4864:20::c2a]:39914) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oddZg-0005Ud-Qz for help-gnu-emacs@gnu.org; Wed, 28 Sep 2022 16:22:34 -0400 Original-Received: by mail-oo1-xc2a.google.com with SMTP id c13-20020a4ac30d000000b0047663e3e16bso1891538ooq.6 for ; Wed, 28 Sep 2022 13:22:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date; bh=Dzo5GLkLos8xv8PIO/BrrUOqKzuPwjTyaKc2z7WtOrg=; b=Z3SQF8UzjUHbBnpVIbGd8CaKCwhOoutcwoCwdlVMByyQj04RDcnXSoeSbEzA4P44rQ ygKaF3WmAV8gNsJgcpcUTop4dQcf9O2QPrswv0NWSEQEUqNkKFm8YK9ktXXwpQtjV3Y3 houWoVr1AcA+2BY8OwbqOcsvCh72J+TUhTsHoYCGd+lovIADu9c6WgsTKwbLZduW33Jo bCeDTXV3pQWmwca0vwTSuLF5cEQSAd78iiyGNvpbuFQ/xwoTStWZOTsP2wpxJ9T0KLLk /Zy4pfa7Gt1yZ/gTftIxWLIMYopJ8ci/g4OmnomUjgj0i5rENa9YXMmWZyZw9Rsw462s U1iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date; bh=Dzo5GLkLos8xv8PIO/BrrUOqKzuPwjTyaKc2z7WtOrg=; b=JWhJjdvOg7VidDOxspXohHUoVdw1iC+d++7TfhcKTvS8V/foy8jiJyTQt/8uIAOSK4 EaGSNHvhXZjN6izGYBY/NxjLtbs9EODhI1NjPWu71WIIHYmLgOrqlZZ0R2ZGCnJS3lYt C9qQl9RKzi5D9DNywDq5BPkqn2dDH21vd8D7lIpmtOmGH/fyhT9X4d4nsfSEcu64BK+u GRykru09GpZGNAtt1UdnH4OF/jNCHOKSR03KaD3bPBZCLjWWFDZkpfsRLcpwK9FUKVOx wEp4FxnQW0aEfbqkkgg9AhStcsNsc0EjiZWPoZw8KIgHRKsXfIUCe+ysg1egngMNBuvR toeg== X-Gm-Message-State: ACrzQf3Q947WQRxUD0M8I3/HhyvyGMuHAt2SU4hxO5+lh0IcuabTzbt8 p0BW6WaV8qVWREZ+qtLU0rUtlXf6E6QeO104kaD9Sq4QhEO59Q== X-Google-Smtp-Source: AMsMyM4rTbKKKEwBQ1CNX7iVinNmERhroacTxBV53mksUNgnKKS1aV5DheiEYpjf0Of/LbUvTR8/Oxi+g6ph8+O82bM= X-Received: by 2002:a4a:1843:0:b0:436:1611:6b51 with SMTP id 64-20020a4a1843000000b0043616116b51mr10895703ooo.18.1664396550741; Wed, 28 Sep 2022 13:22:30 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::c2a; envelope-from=bartosz.bubak@gmail.com; helo=mail-oo1-xc2a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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:139670 Archived-At: Hi, I am just starting my adventure with emacs, and I have already encountered a rather unusual problem. As a beginner, I chose the easier option and installed everything from the package (emacs-28.2-installer.exe). After starting the editor, it turned out that the logs contain a lot of warnings (errors?) caused by using the wrong compiler. I mean, emacs uses the "global" gcc (along with the libraries) which I have in the PATH environment variable, instead of which it has in the embedded package (the /bin subdirectory). Interestingly, I have libgccjit-0.dll in the global directory, but it doesn't seem to work properly. Warning (comp): c: /tools/emacs/share/emacs/28.2/lisp/org/org-entities.el: Error: Internal native compiler error failed to compile Warning (comp): C: \\ ProgramData \\ chocolatey \\ lib \\ mingw \\ tools \\ install \\ mingw64 \\ bin \\ libgccjit-0.dll: error: error invoking gcc driver Is it possible to somehow configure emacs to only use embedded libraries? So far, the only workaround I have found is uninstalling the entire MinGW or removing it from the system PATH. After MinGW is removed, everything works fine as emacs and all the add-ons I downloaded. P.S. Emacs 28.2 on Windows 11, as "global" mingw-64 -- Best regards Bart Bubak