help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Emacs freezes while running `vterm-module-compile'.


From: Hongyi Zhao
Subject: Emacs freezes while running `vterm-module-compile'.
Date: Fri, 3 Dec 2021 12:46:30 +0800

On Ubuntu 20.04.3 LTS, I use the following version of self-compiled GNU Emacs:

`GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
3.24.20, cairo version 1.16.0) of 2021-11-14`

At the same time, the following command was used to install
[`emacs-libvterm`](https://github.com/akermu/emacs-libvterm) with
[straight's use-package
integration](https://github.com/raxod502/straight.el#integration-with-use-package):

```emacs-lisp
(use-package vterm)
```

But Emacs will freeze at the `vterm-module-compile' step. I've
discussed this problem at here [1-2], but still didn't solve the
problem. The definition of the function `vterm-module-compile' is
located at here [3] with the following content:

```emacs-lisp
(defun vterm-module-compile ()
"Compile vterm-module."
(interactive)
(when (vterm-module--cmake-is-available)
(let* ((vterm-directory
(shell-quote-argument
;; NOTE: This is a workaround to fix an issue with how the Emacs
;; feature/native-comp branch changes the result of
;; `(locate-library "vterm")'. See emacs-devel thread
;; https://lists.gnu.org/archive/html/emacs-devel/2020-07/msg00306.html
;; for a discussion.
(file-name-directory (locate-library "vterm.el" t))))
(make-commands
(concat
"cd " vterm-directory "; \
mkdir -p build; \
cd build; \
cmake -G 'Unix Makefiles' "
vterm-module-cmake-args
" ..; \
make; \
cd -"))
(buffer (get-buffer-create vterm-install-buffer-name)))
(pop-to-buffer buffer)
(compilation-mode)
(if (zerop (let ((inhibit-read-only t))
(call-process "sh" nil buffer t "-c" make-commands)))
(message "Compilation of `emacs-libvterm' module succeeded")
(error "Compilation of `emacs-libvterm' module failed!")))))
```

Any hints for further inspecting this problem will be highly appreciated.

[1] https://github.com/akermu/emacs-libvterm/issues/558
[2] https://github.com/raxod502/straight.el/issues/891
[3] 
https://github.com/akermu/emacs-libvterm/blob/2681120b770573044832ba8c22ccbac192e1a294/vterm.el#L103-L131


Regards,
HZ



reply via email to

[Prev in Thread] Current Thread [Next in Thread]