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.bugs Subject: bug#51104: comp-tests.elc messes up after reconfiguring for different machine Date: Mon, 12 Sep 2022 14:43:40 +0300 Message-ID: <838rmo95sj.fsf@gnu.org> References: <87h71c972r.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12625"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 51104@debbugs.gnu.org, eggert@cs.ucla.edu, andrea_corallo@yahoo.it To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 12 14:02:24 2022 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 1oXi8u-00037Y-Oh for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 12 Sep 2022 14:02:24 +0200 Original-Received: from localhost ([::1]:42954 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oXi8t-0006Vs-H6 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 12 Sep 2022 08:02:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49420) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXhs7-0002hF-0Z for bug-gnu-emacs@gnu.org; Mon, 12 Sep 2022 07:45:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55707) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oXhs6-0003x6-L9 for bug-gnu-emacs@gnu.org; Mon, 12 Sep 2022 07:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oXhs6-0001V2-Hq for bug-gnu-emacs@gnu.org; Mon, 12 Sep 2022 07:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 12 Sep 2022 11:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51104 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 51104-submit@debbugs.gnu.org id=B51104.16629830455676 (code B ref 51104); Mon, 12 Sep 2022 11:45:02 +0000 Original-Received: (at 51104) by debbugs.gnu.org; 12 Sep 2022 11:44:05 +0000 Original-Received: from localhost ([127.0.0.1]:44406 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oXhrB-0001TR-9w for submit@debbugs.gnu.org; Mon, 12 Sep 2022 07:44:05 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:39200) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oXhr9-0001St-1h for 51104@debbugs.gnu.org; Mon, 12 Sep 2022 07:44:04 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43556) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXhr1-0003t7-QI; Mon, 12 Sep 2022 07:43:56 -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=iSP0SXugFWOdFA9CdonKFl+CejDONSP+5f75p0eG3cY=; b=d5nGTPovNTM/ vj/zFLv50alwuGwdMJ7mRB1tvCoJu4PlpQRpsuqNU3sk1lOCKv55TGgkzbvRvgVzgj3fU37w1rb8r AIAWZjPrmdpcD7srqj30pZmbyT6ngLRCjSgQ28kGouKLmQzkrJQ0/WBZ/yfHS6K/VNyZNmBcwtmZY W9zflFciIPCkHTwQ1jlr6po5FuXX6QKLCzEvGhuDsH77zuv3xFoB9pf5n0dIYWV8WDhBj7puNlzTy OnOVRO2Hup6SUKOg2K41+bDVtpN6gGIXy4jdNyKmdnGgOfBetKGf9k6vIKdDjKSWai8biwMXBkXFv WrwWtjzSY1pkRUqR+NBKQg==; Original-Received: from [87.69.77.57] (port=4188 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 1oXhr0-000530-Ju; Mon, 12 Sep 2022 07:43:55 -0400 In-Reply-To: <87h71c972r.fsf@gnus.org> (message from Lars Ingebrigtsen on Mon, 12 Sep 2022 13:15:56 +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:242251 Archived-At: > Cc: 51104@debbugs.gnu.org, Andrea Corallo > From: Lars Ingebrigtsen > Date: Mon, 12 Sep 2022 13:15:56 +0200 > > Paul Eggert writes: > > > When trying out the emacs-28 branch on both 32- and 64-bit platforms, > > I had test failures that I tracked down to this line: > > > > test/src/comp-tests.el:933: (integer ,most-negative-fixnum > > ,most-positive-fixnum)) > > > > My problem was that I'd built test/src/comp-tests.elc on a 32-bit > > platform (using "./configure CC='gcc -m32'" on an x86-64 machine) so > > that .elc file had been built assuming 32-bit values for > > most-negative-fixnum and most-positive fixnum. When I then re-ran > > 'configure' for a 64-bit platform the .elc files were not > > automatically rebuilt for it (they're supposed to be > > machine-independent, right?) and so the optimizations were incorrect > > for a 64-bit platform and the tests failed. > > > > What's a good way to fix this problem, while still testing everything > > that comp-tests.el wants to test? > > This was a year ago, but the code in question seems unchanged now on > "master": > > ;; 14 > ((defun comp-tests-ret-type-spec-f (x) > (comp-hint-fixnum x)) > (integer ,most-negative-fixnum ,most-positive-fixnum)) > > So I guess the problem is still present? (I haven't tested myself.) > > Andrea, do you see any way to fix this test for this 32-bit/64-bit > scenarion? Is comp-tests.el supposed to run when Emacs is built without native-compilation? if so, what does it test in that case? And if comp-tests.el is supposed to run only in a native-compilation build, then I'd expect to see comp-test.eln run, not comp-test.elc, and *.eln files are architecture-specific to begin with.