From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Madhu Newsgroups: gmane.emacs.devel Subject: Re: obscure compilation error with cl-defstruct &aux boa constructor Date: Mon, 18 Apr 2022 08:14:06 +0530 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7805"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Cancel-Lock: sha1:nF/2+0NYYRVSM465h5JpD/zfATk= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Apr 18 04:45:07 2022 Return-path: Envelope-to: ged-emacs-devel@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 1ngHNy-0001w5-9M for ged-emacs-devel@m.gmane-mx.org; Mon, 18 Apr 2022 04:45:06 +0200 Original-Received: from localhost ([::1]:41820 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngHNx-0001I8-8S for ged-emacs-devel@m.gmane-mx.org; Sun, 17 Apr 2022 22:45:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36822) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngHMw-0000ZN-2J for emacs-devel@gnu.org; Sun, 17 Apr 2022 22:44:02 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]:50880) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngHMt-0006OI-U4 for emacs-devel@gnu.org; Sun, 17 Apr 2022 22:44:01 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1ngHMr-0000aO-M9 for emacs-devel@gnu.org; Mon, 18 Apr 2022 04:43:57 +0200 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=ged-emacs-devel@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:288587 Archived-At: * Stefan Monnier : Wrote on Sun, 17 Apr 2022 11:16:30 -0400: > Madhu [2022-04-16 22:16:18] wrote: [...] >> (stack (make-list (1+ (car ppss)) nil))) 0 4) > > It looks like some frames are missing between these two. I think I posted the full backtrace, but there was other cruft on HEAD, so it is not the same error you'd get on master with the single indicated change. which would be #+begin_example Loading /dev/shm/emacs/lisp/progmodes/prog-mode.el (source)... Loading /dev/shm/emacs/lisp/emacs-lisp/lisp-mode.el (source)... Eager macro-expansion failure: (void-function cl-subseq) Eager macro-expansion failure: (void-function cl-subseq) Symbol’s function definition is void: cl-subseq make[1]: *** [Makefile:912: bootstrap-emacs.pdmp] Error 255 #+end_example >> The error goes away if I remove the &aux (and thus make all the >> arguments optional) > > I must say that seeing your backtrace I can't understand why your code > doesn't work or rather why our code works (the call to `cl-subseq` > depends on the presence of `&aux` which is already present in our code). > >> Might this be a bug from a recent change? (I've not looked at the >> changes yet, so this is a note to self) > > The bootstrap is delicate and ad-hoc. > Sometimes innocuous changes can break it. I see it isn't a recent error. to compile the indicated form I had a workaround in loadup.el that defined cl-subseq (after loading "simple"), since around 2019-03-14. (somehow I'd lost that workaround this time around)