From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:5f26::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id mPwHMbiKjGUOMgAAkFu2QA (envelope-from ) for ; Wed, 27 Dec 2023 21:36:08 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id YBBGK7iKjGVlCAEAqHPOHw (envelope-from ) for ; Wed, 27 Dec 2023 21:36:08 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; none 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 8ADAB59614 for ; Wed, 27 Dec 2023 21:36:08 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rIa8K-0004im-VU; Wed, 27 Dec 2023 15:04:05 -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 1rIa8J-0004iL-Pr for guix-patches@gnu.org; Wed, 27 Dec 2023 15:04: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 1rIa8J-0001lT-FW for guix-patches@gnu.org; Wed, 27 Dec 2023 15:04:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rIa8H-0003HB-Tp for guix-patches@gnu.org; Wed, 27 Dec 2023 15:04:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67260] [PATCH v4 1/5] gnu: emacs: Build trampolines. Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 27 Dec 2023 20:04: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: Andrew Tropin , 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.170370740812552 (code B ref 67260); Wed, 27 Dec 2023 20:04:01 +0000 Received: (at 67260) by debbugs.gnu.org; 27 Dec 2023 20:03:28 +0000 Received: from localhost ([127.0.0.1]:37789 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rIa7k-0003GO-Af for submit@debbugs.gnu.org; Wed, 27 Dec 2023 15:03:28 -0500 Received: from mail-ej1-x643.google.com ([2a00:1450:4864:20::643]:51397) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rIa7h-0003GA-Ok for 67260@debbugs.gnu.org; Wed, 27 Dec 2023 15:03:26 -0500 Received: by mail-ej1-x643.google.com with SMTP id a640c23a62f3a-a271a28aeb4so158139566b.2 for <67260@debbugs.gnu.org>; Wed, 27 Dec 2023 12:03:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703707401; x=1704312201; darn=debbugs.gnu.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=T5wIV+/sbhZKa0FaVSk0PlwJODa6H8no9x6U4vCq8YQ=; b=PH+sEZobG+wfDWT5nkb0mV+28q58gjkpZLVfv7MYUOFx5ONGvkfEFbKtLc9PxO3UzP 8x9pCodLe4++295R2dWsf8IJY4mr2CiDDPkGGHVp7QqvkxO6egA6m+ZnPrCH+qCsnAHH AswdJyVbPT0sYekevvOiDGoIoB3D65l9sbE/54qJNkIfGYjZFUr0dwqWZGbDnoU/bfKM dqg5mTnoVlsr9cl3LphuJERGqbunhM5Lsj1xZAr6gDPTZ6IXC4bWpy/9i4c1cmnIuhZG pGkg6iUlGmxVbQrjAuyIyFwTGFjbT3Xxzne5Aq9kKgafj2wSnIYigjMBMJHbDulFLEJs HqZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703707401; x=1704312201; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=T5wIV+/sbhZKa0FaVSk0PlwJODa6H8no9x6U4vCq8YQ=; b=UqK0EAev7l8c7p+/bdpxeQtoyFrRnwHo4GL04GKTfjVLf3J5tLMfZbtQbFKfsZA4ly /UBdy78zqis3om3DDmNS8S0sO3ro+j3bpiamH8/MkPJxE0xKNVQIgeYwLw7gwOkXXlQX gtTj1uZaLgulMpZitVxj+mWbkOeDkEr+lSFy2+Ug0kFBPckpgSbio4TU7/pGdirXcTUM i+bLwp6X5LXNiSFY0PN4vwV8Ch53ho2ltyVaesSMVViMb1cBx7UXofFTOoK4QxKx8+bK /UV4xD0ZmYIxrcIFmzm4h/HViKpTAkEBz1H6o5ICAk3fQJDTZoDgafzfc6I3CwA3FdLZ zG8g== X-Gm-Message-State: AOJu0Yx1mwqI3b88xlCegFk2SLHNzlGcqOHUnPEx0kF5GXt47240nncC gWo+Ii8MRuJg+W8Vf/sNUcA= X-Google-Smtp-Source: AGHT+IEjG3V4bne6C4x4SDJjdheN2iMo4Oli29hsrfASX5Q+stm8xJfgFkak9bE5Cm7WF3Zl0Y7T+Q== X-Received: by 2002:a17:907:9706:b0:a27:59f9:6858 with SMTP id jg6-20020a170907970600b00a2759f96858mr593606ejc.63.1703707400667; Wed, 27 Dec 2023 12:03:20 -0800 (PST) Received: from lumine.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id d17-20020a170906175100b00a235b01886dsm6916772eje.10.2023.12.27.12.03.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 12:03:19 -0800 (PST) Message-ID: <8269b690abfe4011b01a59d35f24a5b6ca938f29.camel@gmail.com> From: Liliana Marie Prikler Date: Wed, 27 Dec 2023 21:03:15 +0100 In-Reply-To: <87wmszfql8.fsf@trop.in> References: <84c0bc8c4e65af2241b9dd15f494fdc7eedd83d1.1702036387.git.liliana.prikler@gmail.com> <87le9fzz9c.fsf@trop.in> <87wmszfql8.fsf@trop.in> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 MIME-Version: 1.0 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: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -4.00 X-Spam-Score: -4.00 X-Migadu-Queue-Id: 8ADAB59614 X-Migadu-Scanner: mx11.migadu.com X-TUID: J4+YwzJuRCr3 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=98build= - > > > > 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-package= -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-package= -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 emacs= -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. Cheers =C2=B9 Maybe there's a smarter way to locate them files? Did I go wrong in one of my patches?