emacs中的破坏:内部本机编译器错误未能编译 我是Emacs的初学者。安装史莱姆环境后,我打开Emacs时不断收到以下警告: 警告(comp):c:/program文件/emacs/emacs-28.2/share/emacs/28.2/lisp/...

问题描述 投票:0回答:1
环境后,我在打开

emacs时不断收到以下警告: Warning (comp): c:/Program Files/Emacs/emacs-28.2/share/emacs/28.2/lisp/emacs-lisp/pp.el: Error: Internal native compiler error failed to compile Disable showing Disable logging Warning (comp): c:/Program Files/Emacs/emacs-28.2/share/emacs/28.2/lisp/progmodes/project.el: Error: Internal native compiler error failed to compile Disable showing Disable logging Warning (comp): c:/Program Files/Emacs/emacs-28.2/share/emacs/28.2/lisp/progmodes/gud.el: Error: Internal native compiler error failed to compile Disable showing Disable logging 这是至关重要的,我应该如何处理它们?

我搜索了互联网来重新列出警告,但我没有获得有用的信息。此外,当我在

emacs中测试基本的lisp

编程时,我不会遇到任何关键错误。

我打开Emacs时,请继续收到以下警告。他们至关重要...?

在某种意义上,这些错误并不能阻止工作,他们并不是至关重要的,您已经确认了自己。但是,如果您不喜欢错误消息,并且喜欢(显着)更快地工作
emacs
1个回答
5
投票
,那么让我们继续前进

我应该如何处理他们?

可以从阅读几段开始:
M-:
(info“(ELISP)本机汇编”)
ret

或inline手册中,以使总体了解错误消息的内容。即:

在上一个字节编译中的添加 章,Emacs也可以选择编译LISP 函数定义为真正的编译代码,称为“本机 代码”。此功能使用“ libgccjit”库,这是 海湾合作委员会的分布,并要求建立emacs以支持 使用该库。 它还需要具有海湾合作委员会和binutils( 您的系统上可用汇编器和链接器) 本机编译LISP代码

从本文中,我们可以理解报告的错误意味着Emacs无法(本地)编译文件。而且我们的第一眼可能应该是检查Emacs库是否可以由libgccjit库使用。

我猜测以下emacsse线程:
“ eRROR:junk of Line”,and antable-comp

是为MS-Windows构建的GCCEMACS(本机comp)构建?
可能为您的情况提供有用的信息。

如果这无济于事,请发布有关您的

Emacs
安装/编译的更多信息,有关环境的更多详细信息以及
M-:
(本机comp-abailable-pabailable-p)
ret
的输出。

,在某种情况下,您是一种喜欢潜入更多细节的人,这篇文章将gnu emacs to to Native Code-可能是无价的。 我最近安装了Windows 11笔记本电脑,并在Emacs中遇到了同样的问题: Emacs

问题来自环境中的路径变量。所需工具的路径必须放在路径的开头。编辑

msys2
文件并将路径设置为类似的路径: Warning (comp): collect2.exe: error: ld returned 5 exit status Warning (comp): c:\msys64\mingw64\bin\libgccjit-0.dll: error: error invoking gcc driver Warning (comp): c:/msys64/mingw64/share/emacs/29.4/lisp/misearch.el: Error: Internal native compiler error failed to compile

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.