From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: "make autoloads" signals an error Date: Wed, 01 Jun 2022 15:44:15 +0300 Message-ID: <83a6awh7ts.fsf@gnu.org> References: <83ee08h9et.fsf@gnu.org> <87sfoozi14.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29728"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jun 01 14:45:19 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 1nwNiw-0007XD-TQ for ged-emacs-devel@m.gmane-mx.org; Wed, 01 Jun 2022 14:45:19 +0200 Original-Received: from localhost ([::1]:54932 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nwNiu-00008f-Ik for ged-emacs-devel@m.gmane-mx.org; Wed, 01 Jun 2022 08:45:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50418) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nwNho-0007lr-Tu for emacs-devel@gnu.org; Wed, 01 Jun 2022 08:44:08 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:33196) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nwNho-0008Vj-IK; Wed, 01 Jun 2022 08:44:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=2M8zoB3pxUGut/Dd7dCP3l0yUMkV68T5c0ronA9zrfQ=; b=rfhgvDZOTcXW 8QyLktNpjtcZezOz/UCyYXPs3xgilgFyQm3RUpEU0gdg00zv3nhohY8/ZVHuZNr+uNUWlp0GS3lYU 5u9bS+GiqjwU/O+2Z8N9iZrCe772LC/l+//F45s+imQg3jrYoncLuoBqCuaAO2qHGp49hZs4pEdOL oE5uWR66cqTaLrOeRz0satOITfOzxfBAAjyB4FJMMxdTl8nDJMA3SRUT5mPCM9p3RZb/qpeArR/j4 nIZKpihuzkoPuI4hQNe21o178bcgnve+os3ZrF0SNt9qXExSVBNEHaKE2goSyZchEz0Tpb0j1gdaj Fn1JFGl9EbEmCeWXyzI1Vw==; Original-Received: from [87.69.77.57] (port=4601 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nwNho-0004NO-14; Wed, 01 Jun 2022 08:44:08 -0400 In-Reply-To: <87sfoozi14.fsf@gnus.org> (message from Lars Ingebrigtsen on Wed, 01 Jun 2022 14:26:31 +0200) 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:290499 Archived-At: > From: Lars Ingebrigtsen > Cc: emacs-devel@gnu.org > Date: Wed, 01 Jun 2022 14:26:31 +0200 > > Eli Zaretskii writes: > > > Error: wrong-type-argument (integer-or-marker-p nil) > > mapbacktrace(#f(compiled-function (evald func args flags) #)) > > debug-early-backtrace() > > debug-early(error (wrong-type-argument integer-or-marker-p nil)) > > loaddefs-generate(("." "./c > > I'm unable to reproduce this -- "make autoloads" just says > > GEN loaddefs.el > INFO Scraping files for loaddefs... > INFO Scraping files for loaddefs...done I'm guessing that's because it doesn't regenerate anything. It fails for me because it regenerates (a lot of) loaddefs.el, perhaps because loaddefs-gen.el has changed recent-ish? > Does "make autoloads-force" also fail for you? Yes. > In that case, perhaps there's a bug in the code that's computing the > updates, and in that case, it depends on which files are newer than > loaddefs.el. Hm... > > Could you try removing the "c" from "elc" here: > > $(lisp)/loaddefs.el: gen-lisp $(LOADDEFS) > $(AM_V_GEN)$(emacs) \ > -l $(lisp)/emacs-lisp/loaddefs-gen.elc \ > -f loaddefs-generate-batch $(lisp)/loaddefs.el ${SUBDIRS_ALMOST} > > That should give us a more detailed backtrace. Not necessary: I know where it errors out. It's here: ;; Delete the old version of the section. (delete-region (match-beginning 0) (and (search-forward "\n\f\n;;;" nil t) (match-beginning 0))) And that's because search-forward returns nil: Thread 1 hit Breakpoint 2, wrong_type_argument (predicate=XIL(0x8d90), value=XIL(0)) at data.c:142 142 eassert (!TAGGEDP (value, Lisp_Type_Unused0)); (gdb) bt #0 wrong_type_argument (predicate=XIL(0x8d90), value=XIL(0)) at data.c:142 #1 0x011acd80 in fix_position (pos=XIL(0)) at buffer.c:143 #2 0x011b4275 in validate_region (b=0x82f058, e=0x82f050) at buffer.c:2326 #3 0x0125ba63 in Fdelete_region (start=make_fixnum(23071), end=XIL(0)) <<<<<< at editfns.c:2643