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#43280: 28.0.50; [native-comp] Symbol's function definition is void Date: Sat, 12 Sep 2020 17:12:23 +0000 Message-ID: References: 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="24714"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cc: 43280@debbugs.gnu.org To: Rob Moss Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 12 19:13:10 2020 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 1kH95K-0006JM-Ef for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 12 Sep 2020 19:13:10 +0200 Original-Received: from localhost ([::1]:39254 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kH95J-0004mZ-0V for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 12 Sep 2020 13:13:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40580) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kH95C-0004mL-R6 for bug-gnu-emacs@gnu.org; Sat, 12 Sep 2020 13:13:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37377) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kH95C-0005YF-Hw for bug-gnu-emacs@gnu.org; Sat, 12 Sep 2020 13:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kH95C-00089Y-CV for bug-gnu-emacs@gnu.org; Sat, 12 Sep 2020 13:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Sep 2020 17:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43280 X-GNU-PR-Package: emacs Original-Received: via spool by 43280-submit@debbugs.gnu.org id=B43280.159993074631294 (code B ref 43280); Sat, 12 Sep 2020 17:13:02 +0000 Original-Received: (at 43280) by debbugs.gnu.org; 12 Sep 2020 17:12:26 +0000 Original-Received: from localhost ([127.0.0.1]:48923 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kH94c-00088e-1q for submit@debbugs.gnu.org; Sat, 12 Sep 2020 13:12:26 -0400 Original-Received: from mx.sdf.org ([205.166.94.24]:56456) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kH94a-00088V-Bw for 43280@debbugs.gnu.org; Sat, 12 Sep 2020 13:12:25 -0400 Original-Received: from mab (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTP id 08CHCNaX025066; Sat, 12 Sep 2020 17:12:23 GMT In-Reply-To: (Rob Moss's message of "Sat, 12 Sep 2020 16:59:52 +1000") 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:187905 Archived-At: Rob Moss writes: > On Sat, 12 Sep 2020 at 00:44, Andrea Corallo wrote: >> >> Rob Moss writes: >> >> >> > Hi Andrea, >> > >> > I just tried it with 15acd27d1c0de8b56bab61daa0a8fcd4fef0fdc4 and >> > experienced the same issue. >> > >> > All the best, >> > Rob >> >> Hi Rob, >> >> I had some trouble reproducing with the reproduced as I got a lots of >> errors `Invalid read syntax: "Invalid byte-code object"` byte-compiling >> use-package. This both on master and feature/native-comp. > > Hi Andrea, > > I'm sorry, I don't really know how to make a minimal working example > that downloads and installs packages. Do you know of any examples that > I could learn from? Hi Rob, tipically what helps is if the reproducer manage to reproduce the issue from a scratch Emacs. IOW it should be runnable with something like: HOME=~/a_tmp_emacs_dir .../emacs -Q -l reproducer.el >> Anyway I managed to reproduce the issue with elpher installing it >> manually. >> >> I believe the issue is not compiler related, elpher is using `url-port' >> as a generalized variable (line 1326) but ATM I do not see this defined >> anywhere in the Emacs codebase (maybe something was changed?). > > I'd never heard of a generalized variable, so I've read some of the > relevant sections of the Emacs manual. I can't tell whether the line > in question: > > (setf (url-port address) (url-port current-address)) > > should behave "correctly" (whatever that means). But elpher requires > 'url-util, which in turns requires 'url-parse. So I would have > expected `url-port' to be a valid function at this point, because it's > defined in lisp/url/url-parse.el. I'm particularly confused because I > only see the warning once elpher has been compiled to native code. So > there does seem to be some difference in behaviour between the byte > code and native code, at least on my computer. Uh I was wrong apologies! :/ The gv setter for `url-port' is defined and is meant to be using `url-portspec' that is the setter defined by the structure definition `url' at the top of the url-parse.el. I see the different behaviour from master to native-comp. I think this requires some more investigation on my side. Thanks for the report! Andrea