From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.bugs Subject: bug#52833: native compilation fails on teco.el from MELPA Date: Tue, 28 Dec 2021 15:05:15 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40707"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 52833@debbugs.gnu.org To: Mark Kennedy Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 28 16:06:20 2021 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 1n2E3Q-000ANy-Ef for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 28 Dec 2021 16:06:20 +0100 Original-Received: from localhost ([::1]:46946 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n2E3O-0003cP-Lo for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 28 Dec 2021 10:06:18 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52684) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2E38-0003cB-T3 for bug-gnu-emacs@gnu.org; Tue, 28 Dec 2021 10:06:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35636) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n2E38-00087S-CH for bug-gnu-emacs@gnu.org; Tue, 28 Dec 2021 10:06:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n2E38-00009E-1v for bug-gnu-emacs@gnu.org; Tue, 28 Dec 2021 10:06:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 28 Dec 2021 15:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52833 X-GNU-PR-Package: emacs Original-Received: via spool by 52833-submit@debbugs.gnu.org id=B52833.1640703920514 (code B ref 52833); Tue, 28 Dec 2021 15:06:02 +0000 Original-Received: (at 52833) by debbugs.gnu.org; 28 Dec 2021 15:05:20 +0000 Original-Received: from localhost ([127.0.0.1]:47182 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2E2R-00008E-Pu for submit@debbugs.gnu.org; Tue, 28 Dec 2021 10:05:19 -0500 Original-Received: from mx.sdf.org ([205.166.94.24]:50337) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2E2P-000086-NU for 52833@debbugs.gnu.org; Tue, 28 Dec 2021 10:05:18 -0500 Original-Received: from ma.sdf.org (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 1BSF5Fv4029656 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Tue, 28 Dec 2021 15:05:17 GMT In-Reply-To: (Mark Kennedy's message of "Mon, 27 Dec 2021 15:40:09 -0500") 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" Xref: news.gmane.io gmane.emacs.bugs:223258 Archived-At: Mark Kennedy writes: > from a fresh build: > > src/emacs -Q -batch -l comp -f batch-native-compile /home/mtk/.emacs.d/elpa/teco-20200707.2309/teco.el > Debugger entered--Lisp error: (args-out-of-range "/home/mtk/.emacs.d/elpa/teco-20200707.2309/teco.el" "d" 1) > signal(args-out-of-range ("/home/mtk/.emacs.d/elpa/teco-20200707.2309/teco.el" "d" 1)) > comp--native-compile("/home/mtk/.emacs.d/elpa/teco-20200707.2309/teco.el") > batch-native-compile() > command-line-1(("-l" "comp" "-f" "batch-native-compile" "/home/mtk/.emacs.d/elpa/teco-20200707.2309/teco.el")) > command-line() > normal-top-level() Hi Mark, having a look here, the trouble is that the compiler is presented with a function named "teco:type-1-\^M". The ^M is the trigger for the bug while converting the lisp function name in a valid symbol name for the C toolchain. The fix should cover all characters below 15 that might appear in a symbol. I've installed a fix on master as e7699bf290, please have a look if it works for you as well. Maintainers will tell us if we want to backport it on emacs-28 as well (I think would be worth). Thanks Andrea