From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John Paul Adrian Glaubitz Newsgroups: gmane.lisp.guile.bugs Subject: bug#45214: guile segfaults on 32-bit big-endian targets Date: Sun, 3 Oct 2021 11:38:55 +0200 Message-ID: References: <56553e87-ec27-d287-9e5b-fc501bc4b2dc@physik.fu-berlin.de> <1c389d72-cbb7-888f-f1c1-d33fa2a1248b@bell.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13888"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.1 To: efraim@flashner.co.il, 45214@debbugs.gnu.org, deller@gmx.de, dave.anglin@bell.net, schwab@linux-m68k.org, debian@mkarcher.dialup.fu-berlin.de Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Sun Oct 03 11:40:09 2021 Return-path: Envelope-to: guile-bugs@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 1mWxyZ-0003Rp-MI for guile-bugs@m.gmane-mx.org; Sun, 03 Oct 2021 11:40:07 +0200 Original-Received: from localhost ([::1]:36972 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWxyY-0002hF-9H for guile-bugs@m.gmane-mx.org; Sun, 03 Oct 2021 05:40:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50038) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWxyU-0002h7-76 for bug-guile@gnu.org; Sun, 03 Oct 2021 05:40:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49508) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mWxyT-0004tG-Vx for bug-guile@gnu.org; Sun, 03 Oct 2021 05:40:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mWxyT-00034W-TW for bug-guile@gnu.org; Sun, 03 Oct 2021 05:40:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: John Paul Adrian Glaubitz Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sun, 03 Oct 2021 09:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45214 X-GNU-PR-Package: guile X-Debbugs-Original-To: Efraim Flashner , bug-guile@gnu.org, Helge Deller , John David Anglin , Andreas Schwab , Michael Karcher Original-Received: via spool by submit@debbugs.gnu.org id=B.163325397811774 (code B ref -1); Sun, 03 Oct 2021 09:40:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Oct 2021 09:39:38 +0000 Original-Received: from localhost ([127.0.0.1]:32821 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWxy5-00033q-PB for submit@debbugs.gnu.org; Sun, 03 Oct 2021 05:39:37 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:40370) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWxy4-00033j-6j for submit@debbugs.gnu.org; Sun, 03 Oct 2021 05:39:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50014) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWxy3-0002fo-Vs for bug-guile@gnu.org; Sun, 03 Oct 2021 05:39:36 -0400 Original-Received: from outpost1.zedat.fu-berlin.de ([130.133.4.66]:52847) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWxxo-00043c-CN for bug-guile@gnu.org; Sun, 03 Oct 2021 05:39:35 -0400 Original-Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.94) with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (envelope-from ) id 1mWxxS-000UcW-Fn; Sun, 03 Oct 2021 11:38:58 +0200 Original-Received: from p57bd97e9.dip0.t-ipconnect.de ([87.189.151.233] helo=[192.168.178.81]) by inpost2.zedat.fu-berlin.de (Exim 4.94) with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (envelope-from ) id 1mWxxR-001YUv-O4; Sun, 03 Oct 2021 11:38:58 +0200 Content-Language: en-US In-Reply-To: X-Original-Sender: glaubitz@physik.fu-berlin.de X-Originating-IP: 87.189.151.233 Received-SPF: pass client-ip=130.133.4.66; envelope-from=glaubitz@zedat.fu-berlin.de; helo=outpost1.zedat.fu-berlin.de X-Spam_score_int: -32 X-Spam_score: -3.3 X-Spam_bar: --- X-Spam_report: (-3.3 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-1.413, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.io gmane.lisp.guile.bugs:10183 Archived-At: Hi Efraim! On 4/14/21 16:18, Efraim Flashner wrote: > I spent some more time bisecting guile so I could create a diff against > 3.0.5 and then spent another two weeks or so bootstrapping Guix from my > custom bootstrap binaries out to mesa. > > I've attached the patch that's likely to go into Guix to add powerpc > support. Other than the mysterious failing test I've changed the > GUILE_OPTIMIZATIONS in bootstrap/Makefile.in to '-O1 > -Oresolve-primitives -Ocps' on powerpc and it seems to be working fine. I can confirm that adding "-Oresolve-primitives -Ocps" to GUILE_OPTIMIZATIONS in bootstrap/Makefile.am fixes the problem for me on 32-bit PowerPC on Debian. I will have to figure out how to add "-Oresolve-primitives -Ocps" on 32-bit big-endian conditionally so that it is not passed for other architectures. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaubitz@debian.org `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913