From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Emacs freezes while running `vterm-module-compile'. Date: Fri, 3 Dec 2021 12:46:30 +0800 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="35097"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 03 05:47:23 2021 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 1mt0Ti-0008tS-Lx for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 03 Dec 2021 05:47:22 +0100 Original-Received: from localhost ([::1]:47742 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mt0Tg-00022j-Kn for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 02 Dec 2021 23:47:20 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:58464) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mt0T6-00022J-2O for help-gnu-emacs@gnu.org; Thu, 02 Dec 2021 23:46:44 -0500 Original-Received: from [2607:f8b0:4864:20::a36] (port=43619 helo=mail-vk1-xa36.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mt0T4-0007jy-GT for help-gnu-emacs@gnu.org; Thu, 02 Dec 2021 23:46:43 -0500 Original-Received: by mail-vk1-xa36.google.com with SMTP id f7so1025992vkf.10 for ; Thu, 02 Dec 2021 20:46:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=TZQa0WHxA4+nfTHGu9hhTC/JejgsUA6xbAe++LnYqNk=; b=ErFrZ6XYNMURm9FK7qloYI6HLryN40yaPKZ00kFLehPIthw7/ZCKn8EY3aiFCg+xmD H2QbFUQ3Y/wJ0YKfMnl20vvM0e6UKBhGDSyBf4vHeZJOTRY1dOv3NP8HhdDefhBxM5lS 9XYD8JPq2DxarOIqaZdauZDwXrmCSBlmyPVgDgyfJpntAnMeJqeosaWyuuuQnjMVxA5s nll+BRewPjnoP8vllcpbar+FIfWJfLou9oHka303BHDXnx31Qfpv2bncD5BMXXPzt72I PpHmTviuE19kbexVriRWBt/cOEbfTK2iXTBBtskeOtBahTfX05xp7MWKLepiEG/Y0cCa VIzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=TZQa0WHxA4+nfTHGu9hhTC/JejgsUA6xbAe++LnYqNk=; b=jVNLTskIhuDLH0HYQuqscVcJ7V6XcCID8WmpKxJzMmWf+cG+UAQ91XKgvDcXS8N4iG KjPLWHK4VAuBSNQ+ImIbnP24c0GTiMbX2o1B7OFmQ5qQci0m+hTtORgGsanr6BjUCftR GNe4JsuVsL2dsD45Z7DCnaCgAxTetRc88Y3PtBHdVG8g5curEddincCH70n4UzoYeoS+ 4uXyQ68V/Mf9D2dtSpPe6B4elGDfA4AidrLZQfdkq0gcwY/QB59wS8/jyJwaUUtJGqCX h3XcgXXSjnM9YzDDSHNJpGE4q3dwlWUarzP3xYtHzl4mkyDCRx1ucr0tSQK3+7PgrVxG lIPQ== X-Gm-Message-State: AOAM533gPAyAN8hy08rDtaCxyvUgJqnzQqGwktZ9slCm8sRUeAvCbbZi s0jjr3ywpNk20VnaSCDbcpIpwxDDkBL+VrNJClHCx/RZm//b1dk6 X-Google-Smtp-Source: ABdhPJx7+xPPcBG2Eu2EtxHN/fVJAgHyJQuJJDvxcMdcx1i8qJXe/3aKdayNj0mxLJv8Hpy9debuhwGxiPyT1GYdKWw= X-Received: by 2002:a1f:7f01:: with SMTP id o1mr20670063vki.40.1638506801356; Thu, 02 Dec 2021 20:46:41 -0800 (PST) X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::a36 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::a36; envelope-from=hongyi.zhao@gmail.com; helo=mail-vk1-xa36.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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:134801 Archived-At: 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