From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Naofumi Yasufuku Newsgroups: gmane.emacs.bugs Subject: bug#61917: 29.0.60; native compilation issues Date: Thu, 30 Mar 2023 07:53:17 +0900 Message-ID: References: <87zg8vmbb4.fsf@gmail.com> <83wn3zcfx7.fsf@gnu.org> <838rg62q5w.fsf@gnu.org> <83wn3q15h5.fsf@gnu.org> <87356dzxvn.fsf@gmail.com> <86cz4wd2s0.fsf@yasufuku.dev> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17241"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , 61917@debbugs.gnu.org, Al Haji-Ali To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 30 00:54:16 2023 Return-path: Envelope-to: geb-bug-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 1phegJ-0004FW-LH for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 30 Mar 2023 00:54:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pheg7-0005LX-IB; Wed, 29 Mar 2023 18:54:03 -0400 Original-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 1pheg6-0005LP-JK for bug-gnu-emacs@gnu.org; Wed, 29 Mar 2023 18:54:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pheg6-0003Cg-Bl for bug-gnu-emacs@gnu.org; Wed, 29 Mar 2023 18:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pheg5-0001EF-Rm for bug-gnu-emacs@gnu.org; Wed, 29 Mar 2023 18:54:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Naofumi Yasufuku Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Mar 2023 22:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61917 X-GNU-PR-Package: emacs Original-Received: via spool by 61917-submit@debbugs.gnu.org id=B61917.16801304134685 (code B ref 61917); Wed, 29 Mar 2023 22:54:01 +0000 Original-Received: (at 61917) by debbugs.gnu.org; 29 Mar 2023 22:53:33 +0000 Original-Received: from localhost ([127.0.0.1]:55181 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phefc-0001DU-ES for submit@debbugs.gnu.org; Wed, 29 Mar 2023 18:53:33 -0400 Original-Received: from relay1-d.mail.gandi.net ([217.70.183.193]:57351) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phefa-0001DG-Ad for 61917@debbugs.gnu.org; Wed, 29 Mar 2023 18:53:31 -0400 Original-Received: (Authenticated sender: naofumi@yasufuku.dev) by mail.gandi.net (Postfix) with ESMTPSA id E4CA0240002; Wed, 29 Mar 2023 22:53:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yasufuku.dev; s=gm1; t=1680130404; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0fLSS7UlJW7mnMadF5d/5qW739zp30+dOFtVVdwx/So=; b=Aq7vthI82i1br0GsszzgY/kNNXdwheBnBQS/v0SDfw8cHb0Gym1wx8eIZbgBWAmX7xD7sv n5mKekmTnFDT2cfoCJOZFk9e//Xr/3J09waFTp4/m5DBZBCw+TMz2HHTvaJFcIHnTBPXqF lEGWktNoEgCGvkwvIqty/owAgE/1BzoCBVcseyBiuIcxrLYj7SUFoEQNFs5P88u46eErnx tjTYdpB9mo1zoATiFl4CVw+cxyXUMII7GHZIc79EfkYZ6CsQCjTMDr7qfawZ/JIcfgGSyj 6t2FBv16+Y3yUJPlOp91cs231OZIo04IPItgRiE2h/FOZKB5Py/yTAHlUNis6Q== In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:258876 Archived-At: Andrea Corallo writes: > Andrea Corallo writes: > >> Naofumi Yasufuku writes: >> >>> Andrea Corallo writes: >>> >>>> Naofumi Yasufuku writes: >>>>> >>>>> My latest emacs-29 08fbc133756 build (includes bug#61917 fixes) >>>>> fails to start with the following errors after recompiling eln-cache: >>>>> >>>>> ---------------------------------------------------------------------= --- >>>>> Loading /Users/naofumi/.ddskk/init (native compiled elisp)...done >>>>> skk-emacs-prepare-modeline-properties: Wrong type argument: listp, :t= ype >>>>> Error in post-command-hook (yas--post-command-handler): (wrong-number= -of-arguments # 1) [2 times] >>>>> ---------------------------------------------------------------------= --- >>>> >>>> Hi Naofumi, >>>> >>>> could you please provide a reproducer so we can investigate this issue? >>>> >>> >>> Hello, Andrea >>> >>> I tried to find some simple recipe, but I couldn't. >>> The following is a bit complicated YASnippet case: >>> >>> STEP 1) Clone YASnippet, E.g. >>> >>> $ mkdir ~/.emacs.d/site-lisp-29 >>> $ cd ~/.emacs.d/site-lisp-29 >>> $ git clone https://github.com/joaotavora/yasnippet.git >>> >>> STEP 2) emacs -Q >>> >>> STEP 3) Byte compile yasnippet.el, then enable yas-global-mode >>> >>> (push (locate-user-emacs-file "site-lisp-29/yasnippet") load-path) >>> (byte-compile-file (locate-user-emacs-file "site-lisp-29/yasnippet/ya= snippet.el")) >>> (require 'yasnippet) >>> (yas-global-mode 1) >>> >>> >>> ---------------------------- >>> *Warnings* >>> ---------------------------- >>> =E2=9B=94 Warning (comp): yasnippet.el:475:2: Warning: defvar `yas-afte= r-exit-snippet-hook' docstring wider than 80 characters >>> =E2=9B=94 Warning (comp): yasnippet.el:557:2: Warning: custom-declare-v= ariable `yas-keymap-disable-hook' docstring wider than 80 characters >>> =E2=9B=94 Warning (comp): yasnippet.el:1810:2: Warning: docstring wider= than 80 characters >>> =E2=9B=94 Warning (comp): yasnippet.el:2982:2: Warning: docstring wider= than 80 characters >>> =E2=9B=94 Warning (comp): yasnippet.el:3732:4: Warning: `declare' after= `interactive' >>> =E2=9B=94 Warning (comp): yasnippet.el:4735:2: Warning: docstring wider= than 80 characters >>> =E2=9B=94 Warning (comp): lisp.h:1289: Emacs fatal error: assertion fai= led: FIXNUMP (a) >>> >>> ---------------------------- >>> *Async-native-compile-log* >>> ---------------------------- >>> Compiling /home/naofumi/.emacs.d/site-lisp-29/yasnippet/yasnippet.el... >>> >>> In toplevel form: >>> yasnippet.el:475:2: Warning: defvar `yas-after-exit-snippet-hook' docst= ring wider than 80 characters >>> yasnippet.el:557:2: Warning: custom-declare-variable `yas-keymap-disabl= e-hook' docstring wider than 80 characters >>> >>> In yas-define-snippets: >>> yasnippet.el:1810:2: Warning: docstring wider than 80 characters >>> >>> In yas-longest-key-from-whitespace: >>> yasnippet.el:2982:2: Warning: docstring wider than 80 characters >>> >>> In yas-skip-and-clear-or-delete-char: >>> yasnippet.el:3732:4: Warning: `declare' after `interactive' >>> >>> In yas--field-parse-create: >>> yasnippet.el:4735:2: Warning: docstring wider than 80 characters >>> >>> lisp.h:1289: Emacs fatal error: assertion failed: FIXNUMP (a) >>> Fatal error 6: Aborted >>> Backtrace: >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/emacs(+0x24efa0)[0x= 560461b30fa0] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/emacs(+0x2147f1)[0x= 560461af67f1] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/emacs(+0x2cad55)[0x= 560461bacd55] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/emacs(+0x36f6f5)[0x= 560461c516f5] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/emacs(+0x3735ca)[0x= 560461c555ca] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/emacs(+0x37478a)[0x= 560461c5678a] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/emacs(+0x37a2fd)[0x= 560461c5c2fd] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/emacs(+0x37c1b0)[0x= 560461c5e1b0] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/emacs(+0x309cac)[0x= 560461bebcac] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/emacs(+0x30973f)[0x= 560461beb73f] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/emacs(+0x309a8d)[0x= 560461beba8d] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/native-lisp/29.0.60-1d1= 1f894/comp-7672a6ed-a5895679.eln(F636f6d702d636f6d70696c652d637478742d746f2= d66696c65_comp_compile_ctxt_to_file_0+0x1a1)[0x7fd2331d45c1] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/emacs(+0x309cac)[0x= 560461bebcac] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/emacs(+0x30973f)[0x= 560461beb73f] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/emacs(+0x309a8d)[0x= 560461beba8d] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/native-lisp/29.0.60-1d1= 1f894/comp-7672a6ed-a5895679.eln(F636f6d702d66696e616c31_comp_final1_0+0xc5= )[0x7fd2331d47e5] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/emacs(+0x309c96)[0x= 560461bebc96] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/emacs(+0x30973f)[0x= 560461beb73f] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/emacs(+0x309a8d)[0x= 560461beba8d] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/native-lisp/29.0.60-1d1= 1f894/comp-7672a6ed-a5895679.eln(F636f6d702d66696e616c_comp_final_0+0xe7)[0= x7fd2331d4a17] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/emacs(+0x309cac)[0x= 560461bebcac] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/emacs(+0x30973f)[0x= 560461beb73f] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/emacs(+0x309a8d)[0x= 560461beba8d] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/native-lisp/29.0.60-1d1= 1f894/comp-7672a6ed-a5895679.eln(F636f6d702d2d6e61746976652d636f6d70696c65_= comp__native_compile_0+0x822)[0x7fd2331d8ea2] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/emacs(+0x308227)[0x= 560461bea227] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/emacs(+0x34efc5)[0x= 560461c30fc5] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/emacs(+0x34f825)[0x= 560461c31825] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/emacs(+0x34fb6e)[0x= 560461c31b6e] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/../native-lisp/29.0= .60-1d11f894/preloaded/mule-3352613d-8856059e.eln(F6c6f61642d776974682d636f= 64652d636f6e76657273696f6e_load_with_code_conversion_0+0x384)[0x7fd234843d7= 4] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/emacs(+0x309d72)[0x= 560461bebd72] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/emacs(+0x30973f)[0x= 560461beb73f] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/emacs(+0x309a8d)[0x= 560461beba8d] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/emacs(+0x348a8c)[0x= 560461c2aa8c] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/emacs(+0x34cbcb)[0x= 560461c2ebcb] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/../native-lisp/29.0= .60-1d11f894/preloaded/startup-bbc6ea72-10e8addb.eln(F636f6d6d616e642d6c696= e652d31_command_line_1_0+0x1719)[0x7fd234889fa9] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/emacs(+0x309cac)[0x= 560461bebcac] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/emacs(+0x30973f)[0x= 560461beb73f] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/emacs(+0x309a8d)[0x= 560461beba8d] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/../native-lisp/29.0= .60-1d11f894/preloaded/startup-bbc6ea72-10e8addb.eln(F636f6d6d616e642d6c696= e65_command_line_0+0x1afc)[0x7fd2348810cc] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/emacs(+0x309c96)[0x= 560461bebc96] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/emacs(+0x30973f)[0x= 560461beb73f] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/emacs(+0x309a8d)[0x= 560461beba8d] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/../native-lisp/29.0= .60-1d11f894/preloaded/startup-bbc6ea72-10e8addb.eln(F6e6f726d616c2d746f702= d6c6576656c_normal_top_level_0+0xde7)[0x7fd23487ccc7] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/emacs(+0x30819c)[0x= 560461bea19c] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/emacs(+0x307828)[0x= 560461be9828] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/emacs(+0x21ce67)[0x= 560461afee67] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/emacs(+0x305054)[0x= 560461be7054] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/emacs(+0x21ceaf)[0x= 560461afeeaf] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/emacs(+0x304284)[0x= 560461be6284] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/emacs(+0x21cd86)[0x= 560461afed86] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/emacs(+0x21c160)[0x= 560461afe160] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/emacs(+0x21c37d)[0x= 560461afe37d] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/emacs(+0x217b24)[0x= 560461af9b24] >>> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xea)[0x7fd239049d0a] >>> /home/naofumi/src/git.sv.gnu.org/debug/emacs-29/src/emacs(+0x4978a)[0x5= 6046192b78a] >>> Compilation finished. >>> -------------------------------- >>> >>> STEP 3') Native compile yasnippet.el >>> >>> (native-compile (locate-user-emacs-file "site-lisp-29/yasnippet/yasni= ppet.el")) >>> >>> ---------------------------- >>> *Backtrace* >>> ---------------------------- >>> Debugger entered--Lisp error: (wrong-type-argument "~/.emacs.d/site-lis= p-29/yasnippet/yasnippet.el" number-or-marker-p "Aborted") >>> signal(wrong-type-argument ("~/.emacs.d/site-lisp-29/yasnippet/yasnip= pet.el" number-or-marker-p "Aborted")) >>> comp--native-compile("~/.emacs.d/site-lisp-29/yasnippet/yasnippet.el"= nil nil) >>> native-compile("~/.emacs.d/site-lisp-29/yasnippet/yasnippet.el") >>> (progn (native-compile (locate-user-emacs-file "site-lisp-29/yasnippe= t/yasnippet.el"))) >>> elisp--eval-last-sexp(t) >>> eval-last-sexp(t) >>> eval-print-last-sexp(nil) >>> funcall-interactively(eval-print-last-sexp nil) >>> command-execute(eval-print-last-sexp) >> >> PS still, if anyone else find a more reduced reproducer that would >> speed-up the investingation and fix of this issue. >> >> Thanks >> >> Andrea > > Okay ab4273056e0 should be a better (and safer) fix for this bug, I > pushed it now to 29. This time hopefully it does not cause > regressions... > > Bests > > Andrea Thank you. I will try ;-) Best regards, Naofumi