From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#45433: 28.0.50; byte/native-compiling ivy and ox-publish possibly miscompiled Date: Mon, 04 Jan 2021 22:12:20 +0000 Message-ID: References: <877dp59aev.fsf@collares.org> <87pn2xy7ys.fsf@collares.org> <87wnx5woli.fsf@collares.org> <87k0sziell.fsf@collares.org> Reply-To: Andrea Corallo Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34128"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 45433@debbugs.gnu.org To: Mauricio Collares Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 04 23:16:51 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 1kwY9i-0008mw-MF for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 04 Jan 2021 23:16:50 +0100 Original-Received: from localhost ([::1]:58604 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kwY9h-00033O-JA for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 04 Jan 2021 17:16:49 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42200) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kwY66-0007pp-2f for bug-gnu-emacs@gnu.org; Mon, 04 Jan 2021 17:13:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48938) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kwY62-00084s-Ij for bug-gnu-emacs@gnu.org; Mon, 04 Jan 2021 17:13:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kwY62-0007aZ-DN for bug-gnu-emacs@gnu.org; Mon, 04 Jan 2021 17:13: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: Mon, 04 Jan 2021 22:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45433 X-GNU-PR-Package: emacs Original-Received: via spool by 45433-submit@debbugs.gnu.org id=B45433.160979834829128 (code B ref 45433); Mon, 04 Jan 2021 22:13:02 +0000 Original-Received: (at 45433) by debbugs.gnu.org; 4 Jan 2021 22:12:28 +0000 Original-Received: from localhost ([127.0.0.1]:60484 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kwY5T-0007Zk-Kp for submit@debbugs.gnu.org; Mon, 04 Jan 2021 17:12:28 -0500 Original-Received: from mx.sdf.org ([205.166.94.24]:56502) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kwY5S-0007Zb-Ei for 45433@debbugs.gnu.org; Mon, 04 Jan 2021 17:12:26 -0500 Original-Received: from mab (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTP id 104MCKxB028067; Mon, 4 Jan 2021 22:12:20 GMT In-Reply-To: <87k0sziell.fsf@collares.org> (Mauricio Collares's message of "Wed, 30 Dec 2020 10:54:30 -0300") 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:197339 Archived-At: Mauricio Collares writes: > Andrea Corallo writes: > >> Hi Mauricio, >> >> I had a look, this issue is not native compiler related as I get the >> same behavior byte compiling. >> >> The trouble seems with `ivy-add-face-text-property' being defaliased, >> ATM I'm not sure what is going on tho. >> >> Andrea > > Hi Andrea, > > Here's an attempt at a minimized testcase: > > * Contents of ~/ivy.el: > > (defun ivy--call-marked (action) > (let* ((prefix-len (length ivy-mark-prefix)) > (marked-candidates > (mapcar > (lambda (s) > (let ((cand (substring s prefix-len))) > (if ivy--directory > (expand-file-name cand ivy--directory) > cand))) > ivy-marked-candidates)) > (multi-action (ivy--get-multi-action ivy-last))))) > > (defalias 'ivy--file-local-name > (if (fboundp 'file-local-name) > #'file-local-name > (lambda (file) > (or (file-remote-p file 'localname) file)))) > > (provide 'ivy) > > * Run the following three commands (note that skipping either command 1 > or command 2 makes the last command pass): > > $ emacs -Q --batch --eval "(add-to-list 'load-path \"/home/collares\")" > -f batch-byte-compile ~/ivy.el > > $ emacs -Q --batch --eval "(add-to-list 'load-path \"/home/collares\")" > --eval "(setq comp-eln-load-path '(\"/home/collares/\"))" -f batch-native-compile ~/ivy.el > > $ emacs -Q --batch --eval "(add-to-list 'load-path \"/home/collares\")" > --eval "(setq comp-eln-load-path '(\"/home/collares/\"))" --eval "(require 'ivy)" > > With this, I still get the same error locally: Hi Mauricio, thanks for reducing, I can reproduce this version too. It looks more like a load issue then a miscompilation. The interesting part is that a priori I don't see how having the bytecode compiled should influence loading the eln, very curious... I'm calling the day but I'll prepare a debug build and look into it further tomorrow. Andrea