From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#47049: [feature/native] macro-expansion cycle when compiling comp.el Date: Thu, 11 Mar 2021 10:26:03 -0500 Message-ID: References: <83zgzbnm7i.fsf@gnu.org> <83pn07nfuc.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="877"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 47049@debbugs.gnu.org, Andrea Corallo To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 11 17:14:42 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 1lKNxR-00006I-Br for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 11 Mar 2021 17:14:41 +0100 Original-Received: from localhost ([::1]:55366 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKNxQ-0000ti-Ae for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 11 Mar 2021 11:14:40 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52112) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKNDK-0002dx-OH for bug-gnu-emacs@gnu.org; Thu, 11 Mar 2021 10:27:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43114) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lKNDK-00081a-FH for bug-gnu-emacs@gnu.org; Thu, 11 Mar 2021 10:27:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lKNDK-0002Jg-Ag for bug-gnu-emacs@gnu.org; Thu, 11 Mar 2021 10:27:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Mar 2021 15:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47049 X-GNU-PR-Package: emacs Original-Received: via spool by 47049-submit@debbugs.gnu.org id=B47049.16154763758851 (code B ref 47049); Thu, 11 Mar 2021 15:27:02 +0000 Original-Received: (at 47049) by debbugs.gnu.org; 11 Mar 2021 15:26:15 +0000 Original-Received: from localhost ([127.0.0.1]:54660 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKNCY-0002If-7q for submit@debbugs.gnu.org; Thu, 11 Mar 2021 10:26:15 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:50618) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKNCW-0002IR-9L for 47049@debbugs.gnu.org; Thu, 11 Mar 2021 10:26:12 -0500 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id EDF6810023D; Thu, 11 Mar 2021 10:26:06 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 655F0100236; Thu, 11 Mar 2021 10:26:05 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1615476365; bh=AD0pmAMT535SSR5vzItfNzRzFyBnL1WL1GXyq19gcSc=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=cH4YOYTs7hE1DQp3l/N82ptuork2/fBIKrPLPap7OcrWIpku4ICO6Iq/AWx/i5tSZ E6ce86i4DF5Us9du5ZdBw/Kni1AJNo9Y0yyW8ZWkWUKbjpJhG4Qcv/tXwDJaz2pEw4 Qyw/yTjQqBXoi1TwgvNL0zrR6sTW6b5GQYa6i3HxnDZop9B6be5zH9c0QemHKS1ULQ 6OdaZN2C9jWM69pVDOHYW6WxsvXm62/JLwp3RwjousFJGewH8iIsBoWxV9ZkQEMhCr /0Gpp2yZ8VxCq3n7+mJNfwCsqjr8F4+AYbpeOpmvggtCCHVdxkuVbPu+4oUTKojh08 Pbv6TfxAMtsSA== Original-Received: from alfajor (unknown [216.154.43.249]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id ECE66120289; Thu, 11 Mar 2021 10:26:04 -0500 (EST) In-Reply-To: <83pn07nfuc.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 10 Mar 2021 18:17:15 +0200") 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:202069 Archived-At: >> > I made some local modifications in comp.el, and used that modified >> > comp.el for a while (by loading it manually at run time) to debug some >> > problem. Then I undid those local modifications of comp.el (by saying >> > "git checkout") and said "make" to rebuild Emacs. And I see this: >> > >> > ELC emacs-lisp/comp.elc >> > Warning: Eager macro-expansion skipped due to cycle: >> > => (load "comp.el") => (macroexpand-all (defalias 'comp-add-call-cstr )) => (macroexpand (comp-loop-insn-in-block )) => (load "comp.el") >> > >> > Why does this happen? >> >> I'm not sure, but I can reproduce it. >> >> I guess (just a guess) it might be because `comp-add-call-cstr' is using >> a macro `comp-loop-insn-in-block' that is expanding with a >> `cl-symbol-macrolet' inside? (no idea why this should be a problem). >> >> > could it be that while comp.el was modified it >> > got native-compiled, and now that inconsistent comp.eln gets in the >> > way? >> >> I think this has not to do specifically with native compilation. >> >> I see it goes away removing '(setq load-prefer-newer t)' from the >> invocation tho. >> >> Perhaps somebody already more into the macro expansion business might >> have some suggestion. > > Stefan, can you help, please? Nothing jumps at me by looking at the code. I'll have to look at the actual complete stacktrace I think. Stefan