From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id AMP+LhZzfGMGwAAAbAwnHQ (envelope-from ) for ; Tue, 22 Nov 2022 07:58:30 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id MK8GLhZzfGMyBwAAG6o9tA (envelope-from ) for ; Tue, 22 Nov 2022 07:58:30 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 78EEADEA1 for ; Tue, 22 Nov 2022 07:58:30 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oxNE8-0000wV-W0; Tue, 22 Nov 2022 01:57:53 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oxNE7-0000wC-Ni for help-guix@gnu.org; Tue, 22 Nov 2022 01:57:51 -0500 Received: from box.catsu.it ([46.232.250.231]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oxNE5-0002oe-HH for help-guix@gnu.org; Tue, 22 Nov 2022 01:57:51 -0500 Received: from authenticated-user (box.catsu.it [46.232.250.231]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by box.catsu.it (Postfix) with ESMTPSA id 9DF44624EB for ; Tue, 22 Nov 2022 07:57:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=catsu.it; s=mail; t=1669100263; bh=U1yOD0oDe66uFN4XSabCAcL2gkNcOr2b6ybmbOQsJJU=; h=References:From:To:Subject:Date:In-reply-to:From; b=2zocTdYp+ZFFFV4LFiyayRO9i4PPA5LbohSZQpXmABHgShNxm1C6Hg/pH3JBzhuaF wV8UPDRtk7EOJF3Bf5+Gt/Hr3Vcf/IGC6xQrtoOmDKXag/5QN9efbYcV1lI987ge1n YO6+Fljuo2pUK6zrgG0nfC3P30TWeOBea3utpigEVwd48aRSpAX08L6PoIA15XjmxQ 2MtgAMRdBXVxrvRa7sgZHWFzYYlIt1j/NIDu7eDfv2VAniBE93qNYgtjpqUIjY7B4e y0ZVnHi5XqC1aUu1qHYJnxNpoS0vwIOTy+RhRjLD15/jUku83w/yVbC2u50vOFotUx dpdNr0l4+8HpQ== References: <865yfkfb89.fsf@catsu.it> <871qq8yr97.fsf@riseup.net> <27B2C53F-8701-4BBF-8AD0-70247933D1D1@tobias.gr> <86bkpbnltn.fsf@catsu.it> To: help-guix@gnu.org Subject: Re: Compiling vterm: cc: command not found Date: Tue, 22 Nov 2022 07:56:17 +0100 In-reply-to: <86bkpbnltn.fsf@catsu.it> Message-ID: <86y1s34gt6.fsf@catsu.it> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=46.232.250.231; envelope-from=chris@catsu.it; helo=box.catsu.it 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, SPF_HELO_FAIL=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Chris Keschnat From: Chris Keschnat via Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1669100310; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=n3XvBy4xQQ8BpWqDcjtLO5xxX174HGnFei+htDVTlvs=; b=nzs1LgKdxKJwIvrNRM+0OXi/QYw/IMdnHyrEx4/gRwv+9OWeBZmSS+Lc0Lov5i2wG/TRma J4KKF0NlUyuBqtllQA4j2owi0UVuJXf28+0G89molAQhk4i6yHrcXkmDxJi2WfuBsgUKmM yVFTdj9hSYm9LNG1SCoQA12aWsSJ2+FcxApJpKHp8hV5gWQAuHdYA9gX5+YaU3+tkyfXzE peZquLdMotnzI9pbJ13FXengvAA02fdkDDOsgAXuWmskCIuiSji6K1vWO+q24qBBkjPkhk lgciL4bZZQf9wiQBwl70i4tFKqSUmQdsDVp5nSMKpIilJZHwUiusMz+nOwe91Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669100310; a=rsa-sha256; cv=none; b=ky3/JuIZ15Xjpo7FCso797AzRtE/YFwGli5Vu/d6/hFhhgKNpkfVteLy/vBDL5/XfdvrNo AWbslSL1WBH/SL0k1Boj7oP8krsSd3hWhowkMFPujNoNdJnVgg1nmmwm4diGxoIXTmYoF3 917tExtrq0TdmMB/wgt/7kBJr5ig9HkbUUeWrPAEvI0Id6RtXvE9rARtLk+Klm/5Sx3qEH BmwZKfLDYITlh0BacBHN2p6jXPtaC8QtIenTRL8RNhXq5C+1WayY0+LzobzPuIhumaJG/n kUoH/SuzZNapILDXqb9zL8gO+3JGOWDt5GmeNI6ebSOXf8kzoLv6EYjY6bF3/w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=catsu.it header.s=mail header.b=2zocTdYp; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.01 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=catsu.it header.s=mail header.b=2zocTdYp; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 78EEADEA1 X-Spam-Score: -1.01 X-Migadu-Scanner: scn0.migadu.com X-TUID: ZzIoQobAgoVQ Chris Keschnat writes: > Tobias Geerinckx-Rice writes: > >>> (anymore?) >> >> Guix has never provided the 'cc' alias for GCC AFAIR. >> >> Perhaps you were previously using 'clang-toolchain', which does >> symlink cc to clang? That's something that we, Guix, explicitly add; >> not upstream. >> >> It's unfortunate that Guix promotes a non-GPL compiler over GCC this way. >> >> Kind regards, >> >> T G-R >> >> Sent on the go. Excuse or enjoy my brevity. > > > Hello, > I might have been confused about how I installed vterm before. I > thought I used straight.el, which builds the module as describe in my > previous mail. It could be that I had manually installed =emacs-vterm= and > didn't add it to my (guix) emacs profile. > > I have now installed ~emacs-vterm~ through guix (together with ~libvterm~ > in my emacs profile). When I try running vterm from emacs, it still asks > to compile the module though (which fails). > > Looking at the ~emacs-vterm~ packages, this happens here: > > #+begin_src sh > > (unless (require 'vterm-module nil t) > ....) > > #+end_src > > > Trying manually: > > #+begin_src sh > > (require 'vterm-module) > > => > > Debugger entered--Lisp error: (file-missing "Cannot open load file" "No such file or directory" "vterm-module") > require(vterm-module) > elisp--eval-last-sexp(nil) > eval-last-sexp(nil) > funcall-interactively(eval-last-sexp nil) > command-execute(eval-last-sexp) > > #+end_src > > > There is a .so file in my emacs profile though, so I think there is something wrong with some kind of module path? > > #+begin_src sh > > ~/.guix-extra-profiles/emacs/emacs $ find | grep vterm-module > ./lib/vterm-module.so > > #+end_src > > I do not know how/what to check though. So far I have only found that my > ~module-file-prefix~ is ".so". But other than that, I do not know how > the loading of modules works and would appreciate a hint. > > > Thank you > Chris As I couldn't figure out how to debug this, I chose trial and error. And it workd. I'm not exactly sure what the issue was, but here is what I did, in case it helps anyone in the future: Added ~libtool~ and ~cmake~ to =emacs.scm= and installed those. After that and running: #+begin_src sh GUIX_PROFILE="/home/ck/.guix-extra-profiles/emacs/emacs" . "$GUIX_PROFILE/etc/profile" #+end_src the compilation worked. But the module could not be loaded: #+begin_src sh byte-code: Module could not be opened: "/home/ck/.emacs.d/straight/build/vterm/vterm-module.so", "libvterm.so.0: cannot open shared object file: No such file or directory" #+end_src Then changed (as stated in the docs) #+begin_src emacs-lisp (use-package vterm) #+end_src to #+begin_src emacs-lisp (use-package vterm :load-path "/home/ck/.guix-extra-profiles/emacs/emacs/lib") #+end_src vterm now works again.