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#46495: 28.0.50; [native-comp] Build fails for 32bit --with-wide-int Date: Mon, 29 Mar 2021 16:15:56 +0000 Message-ID: References: <86y2fq93zj.fsf@gmail.com> <83lfbqbq3g.fsf@gnu.org> <868s7pwvq8.fsf@gmail.com> <28FB9567-61E6-4083-8711-6CF6C8A493F4@gnu.org> <86o8gjheaw.fsf@gmail.com> <865z2p0zrq.fsf@gmail.com> <86pn0w59nj.fsf@gmail.com> <83y2eap33a.fsf@gnu.org> <83lfa6kl8s.fsf@gnu.org> 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="19578"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: andrewjmoreton@gmail.com, 46495@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 29 18:17:12 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 1lQuZi-0004xf-Os for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 Mar 2021 18:17:10 +0200 Original-Received: from localhost ([::1]:60386 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lQuZh-0007TG-EW for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 Mar 2021 12:17:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44956) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQuZa-0007St-SJ for bug-gnu-emacs@gnu.org; Mon, 29 Mar 2021 12:17:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37857) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lQuZa-0006Ru-LA for bug-gnu-emacs@gnu.org; Mon, 29 Mar 2021 12:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lQuZa-0003Bu-Eu for bug-gnu-emacs@gnu.org; Mon, 29 Mar 2021 12:17: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: Mon, 29 Mar 2021 16:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46495 X-GNU-PR-Package: emacs Original-Received: via spool by 46495-submit@debbugs.gnu.org id=B46495.161703456412192 (code B ref 46495); Mon, 29 Mar 2021 16:17:02 +0000 Original-Received: (at 46495) by debbugs.gnu.org; 29 Mar 2021 16:16:04 +0000 Original-Received: from localhost ([127.0.0.1]:49403 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQuYd-0003Aa-8l for submit@debbugs.gnu.org; Mon, 29 Mar 2021 12:16:03 -0400 Original-Received: from mx.sdf.org ([205.166.94.24]:50966) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQuYY-00039v-DM for 46495@debbugs.gnu.org; Mon, 29 Mar 2021 12:16:01 -0400 Original-Received: from mab (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 12TGFukp018355 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Mon, 29 Mar 2021 16:15:57 GMT In-Reply-To: <83lfa6kl8s.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 29 Mar 2021 18:55:31 +0300") 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:203254 Archived-At: Eli Zaretskii writes: >> Date: Fri, 26 Mar 2021 14:27:21 +0300 >> From: Eli Zaretskii >> Cc: andrewjmoreton@gmail.com, 46495@debbugs.gnu.org >> >> One issue left, which I'm pursuing locally, is the one with strange >> gaps in the C backtraces. You can see the traces of that on the >> gdb-patches mailing list. > > The GDB experts seem to indicate that the prologue of functions we > produce is different from the prologue normally produced by GCC from C > code on x86. See > > https://sourceware.org/pipermail/gdb-patches/2021-March/177334.html > > Is that possible? Well if this is what you observe it certainly can be. There might very well be something in how/what libgccjit generates that is causing this difference. > are we doing something that could affect the > prologue of the natively-compiled Lisp code? I suspect this is a libgccjit thing, without knowing where the difference is coming from it's hard to predict if there's a workaround we can put in place in the Emacs codebase, but I suspect there's not. If the generated code is correct I think gdb should recognize it improving its unwinder, otherwise if this is a libgccjit bug we should open a PR on bugzilla. Perhaps if the case is the later one can try a simpler testcase to report it using the test we have in the configure or libgccjit hello world [1]. This might help also analysing how this different frame is formed. Thanks Andrea [1]