From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:1008:1e59::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id TtjPMEMOjWVr3wAAkFu2QA (envelope-from ) for ; Thu, 28 Dec 2023 06:57:23 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id kOTCLEMOjWWiOgEA62LTzQ (envelope-from ) for ; Thu, 28 Dec 2023 06:57:23 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=trop.in header.s=key1 header.b=cNfB0T8g; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1703743043; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=ekqAfIZZxHbOvMWh0Tnw4wVzlzo9WgzgBWgd3KapKps=; b=vAr8aHgNAcQ/Kjv0wzlClP+jID9CRN9iAZq6XEuZQdUEjrogz9k+o/dLMJebRL945hqX2a gb5PG472LMGzrAlRyyrD/YhyQ13gk353j1QiatHG/+AAQSsU+K/b+rN57oZtnZLR9j841m PLIkzusrVtzgFMaKMSswD3V0LfRqM1RKktuWQT+iqsIoTgPyQmSnj4a3LA0oYmqtd5rGNU FStwjRP+VmrU/UnXNlmOrz+gpkyQ8RzK5SYKBIzqnHxPbeXFffllQYkA4pCuGOLrrD/EWl XZpho9nT61hZ6CXGKKcs1aEDNo8V9QJAAbZXBjzlPv/EbUIvSZtys6suu9Qhcg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=trop.in header.s=key1 header.b=cNfB0T8g; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1703743043; a=rsa-sha256; cv=none; b=MZ7n9rX4gpZTaTWr/7/oOGv3F0MMB1OygGeWi+flkskSRTRoUXlnycupM3kH0lbCIx4V00 xp3ieMw8u94wNFiTgzz8x5CPD/OwBJGhmCwL2CWm0Ul5c8fDjlf5SchCCrHffXbqVbPLG6 sch5MMXMxXFuW6QhyiwDItvXUMuJ+GJo+LHFtDypSDPxY+ivIq8jAwjOWpv20dbvdTBuYB lDswPOA+FyYdXXh5hQ2Q8q+QOlnKgc4ufBBOGL0vFUWTNvcO2ijhw/ASZ11259VBX/nScV Eo3d9O46oKW2Sbthc5afAszPhl31naxHt82amvi26BnFBYQoiBp5unN9xt8zow== 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 D3EA454DEF for ; Thu, 28 Dec 2023 06:57:22 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rIjOF-0001I6-B4; Thu, 28 Dec 2023 00:57:07 -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 1rIjOB-0001GC-73 for guix-patches@gnu.org; Thu, 28 Dec 2023 00:57:03 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rIjOA-0004RW-Up for guix-patches@gnu.org; Thu, 28 Dec 2023 00:57:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rIjO9-0002e1-RW for guix-patches@gnu.org; Thu, 28 Dec 2023 00:57:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67260] [PATCH v4 1/5] gnu: emacs: Build trampolines. Resent-From: Andrew Tropin Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 28 Dec 2023 05:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67260 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Liliana Marie Prikler , 67260@debbugs.gnu.org Cc: Mekeor Melire , Josselin Poiret , cox.katherine.e+guix@gmail.com Received: via spool by 67260-submit@debbugs.gnu.org id=B67260.170374298610116 (code B ref 67260); Thu, 28 Dec 2023 05:57:01 +0000 Received: (at 67260) by debbugs.gnu.org; 28 Dec 2023 05:56:26 +0000 Received: from localhost ([127.0.0.1]:38269 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rIjNZ-0002d5-Rw for submit@debbugs.gnu.org; Thu, 28 Dec 2023 00:56:26 -0500 Received: from out-180.mta0.migadu.com ([91.218.175.180]:10327) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rIjNX-0002cu-Ge for 67260@debbugs.gnu.org; Thu, 28 Dec 2023 00:56:24 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop.in; s=key1; t=1703742983; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ekqAfIZZxHbOvMWh0Tnw4wVzlzo9WgzgBWgd3KapKps=; b=cNfB0T8gR5DhExzfO3gHAuhHO3z3zAemkrM7Nq1a7HIyUw5MaXU+ICEhOxUac70l9BI4aK 9jHLNrfrtwhS/R4YDz1BgSBTDCPtKiifedURVo0Tp2EJJnTAMOseZ4M2yMoDF9Yju6pfhg aKsWV8rMsU6jph6CzH1QDDPMDuYIpuSKi8W+cu5gpxhVBd78Vw3TMT76+ogQU8GrLrLNBQ eTNsKj/PbppfZ/zdafVwrxMGisW0xVSyRcessJqyeoa1/sM3M5IYWKez/o1KA+nbMni5/H YdRSMjzJrG92HninrgnKee5re3F0OPt8nMGSLdjAyUN+33b1dukO8KC1Mmj4kA== In-Reply-To: <8269b690abfe4011b01a59d35f24a5b6ca938f29.camel@gmail.com> References: <84c0bc8c4e65af2241b9dd15f494fdc7eedd83d1.1702036387.git.liliana.prikler@gmail.com> <87le9fzz9c.fsf@trop.in> <87wmszfql8.fsf@trop.in> <8269b690abfe4011b01a59d35f24a5b6ca938f29.camel@gmail.com> Date: Thu, 28 Dec 2023 08:56:15 +0300 Message-ID: <87r0j6g9a8.fsf@trop.in> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Andrew Tropin X-ACL-Warn: , Andrew Tropin via Guix-patches From: Andrew Tropin via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -7.33 X-Spam-Score: -7.33 X-Migadu-Queue-Id: D3EA454DEF X-TUID: ZtDYaJGufplD --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2023-12-27 21:03, Liliana Marie Prikler wrote: > Am Mittwoch, dem 27.12.2023 um 21:27 +0300 schrieb Andrew Tropin: >> On 2023-12-27 17:40, Liliana Marie Prikler wrote: >>=20 >> > Am Mittwoch, dem 27.12.2023 um 14:00 +0300 schrieb Andrew Tropin: >> > > On 2023-11-25 12:13, Liliana Marie Prikler wrote: >> > >=20 >> > > > * gnu/packages/emacs.scm (emacs-no-x)[#:phases]: Add =E2=80=98buil= d- >> > > > trampolines=E2=80=99. >> > > >=20 >> > > > Change-Id: I33303bcbaf6cbda15867a5546e793c05d1f0e67b >> > > > --- >> > > > =C2=A0gnu/packages/emacs.scm | 5 ++++- >> > > > =C2=A01 file changed, 4 insertions(+), 1 deletion(-) >> > > >=20 >> > > > diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm >> > > > index b9d9e2b891..55eab48c25 100644 >> > > > --- a/gnu/packages/emacs.scm >> > > > +++ b/gnu/packages/emacs.scm >> > > > @@ -327,7 +327,10 @@ (define-public emacs-no-x >> > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (string-append >> > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "-B" #$(this-p= ackage-input "libgccjit") >> > > > "/lib/") >> > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (string-append >> > > > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "-B" #$(this-pack= age-input "libgccjit") >> > > > "/lib/gcc/")))))))))) >> > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "-B" #$(this-pack= age-input "libgccjit") >> > > > "/lib/gcc/")))))) >> > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 (add-after 'build 'build-trampolines >> > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 (lambda* (#:key make-flags #:allow-other-keys) >> > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 (apply invoke "make" "trampolines" make- >> > > > flags))))))) >> > > > =C2=A0=C2=A0=C2=A0=C2=A0 (inputs >> > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (modify-inputs (package-inputs emac= s-minimal) >> > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (prepend gnutls >> > > >=20 >> > > > base-commit: 60c97924e9519361494aaf0686e28eb831a42315 >> > >=20 >> > > Applied the patch series v4 to emacs-team branch, removed all eln >> > > files >> > > in ~/.cache/emacs and ~/.config/emacs, executed >> > >=20 >> > > --8<---------------cut here---------------start------------->8--- >> > > ./pre-inst-env guix shell emacs-pgtk emacs-magit \ >> > > --pure -E '.*GTK.*|.*XDG.*|.*DISPLAY.*' -- emacs -Q >> > > # M-S-: (require 'magit) RET >> > > --8<---------------cut here---------------end--------------->8--- >> > You're missing --with-input=3Demacs-minimal=3Demacs.=C2=A0 You are not >> > natively compiling emacs-magit atm. >>=20 >> Right, thank you! > Turns out you also need to do this with emacs-no-x due to emacs-libgit. > > Friendly reminder that we don't have build system/packaging utilities > to easily replace emacs versions yet, so magit might not have been the > wisest choice to showcase here. > > More worryingly, it appears you're recompiling Emacs itself here. This > should not be happening. However, it turns out that your eln-cache is > always first on the native load path and thus already compiled files > won't be found.=C2=B9 Try adding=C2=A0 > --eval=3D'(setq native-comp-jit-compilation nil)' > and see whether you can load natively compiled procedures and have them > show as natively compiled. =2D-8<---------------cut here---------------start------------->8--- native-comp-eln-load-path is a variable defined in =E2=80=98C source code= =E2=80=99. Its value is ("/home/bob/.config/emacs/eln-cache/" "/gnu/store/lxf6aqh5b1zzaclfxcivk8vw1= q4fhrrn-profile/lib/emacs/native-site-lisp" "../native-lisp/") =2D-8<---------------cut here---------------end--------------->8--- =2D-8<---------------cut here---------------start------------->8--- ls ~/.config/emacs/eln-cache/**/=20 /home/bob/.config/emacs/eln-cache/: 29.1-5c9913f6/ /home/bob/.config/emacs/eln-cache/29.1-5c9913f6/: subr--trampoline-6d616b652d70726f63657373_make_process_0.eln =2D-8<---------------cut here---------------end--------------->8--- magit-status is an interactive native-compiled Lisp function in =E2=80=98magit-status.el=E2=80=99. > > Cheers > > =C2=B9 Maybe there's a smarter way to locate them files? Did I go wrong = in > one of my patches? > =2D-=20 Best regards, Andrew Tropin --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEKEGaxlA4dEDH6S/6IgjSCVjB3rAFAmWNDf8ACgkQIgjSCVjB 3rDBUQ/5AWm+ZhW9xlkZzBUx47n0uPqaq08EmSTDjKtwVCYVwkzxpzOnVrsxY3go vVmpheF0VajfOUn7VvgSB0M4v7oWyIfCSmTgyXmm5ykpfb1Kglq+4Uy+G22wmCdi oD8oT+Yhdix1MsR2qrlOXoSSRNgxoJJNaVg9a6pCi20Y1FnAYtfrTGxBviVrMTKu 5ha5xNqITBOdnn6Xmp1HXSDdB6paAZTp0b5xqTIVl5VzOyHiQhOC5mMKRJmiGjkp mNzhIVmfVzsXAULML/gXP6/52lAHG0TIKvpUW6lZmx8/6hzmoPD4gTRzXbgW2yFr G7/4W7VtoXLiB3f/X3SOK7DYBTPjMTx/rE2X8LtWBTeRYmJlXpidTU3olmntKsUs vAdj7wgj0hmHnww20Tb2cTbk2jv4MpYLmedQUOpwFx+YKH1/ABjH1npnLcrKKV0J Wcj4d3a7ZhSNEzeJjZ3Sml/AVJkT5WO2twoghxObNY/q+VqMjLkwSZMsLCimsdnK VRYV3/QLJcqFWqO/SZhybrPn9m7C2FNAomW9JXl90MhAgxNP5sPuzcweBVeSnpYi h1mocFdwvZPFxUed5vwD9DmA4Fe0h/kMfjSIN4VUHlOGMRdy1msZIxV8wwVnoCx/ sZfFhNwEuSBMojN+egEyqKT+Fq92PTFvWAfxsAd9f/vzTINnxUI= =fjbk -----END PGP SIGNATURE----- --=-=-=--