From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Chris Marusich Newsgroups: gmane.lisp.guile.bugs Subject: bug#39817: Using cross compiled .go from amd64 to powerpc64 segfaults Date: Thu, 21 May 2020 00:06:35 -0700 Message-ID: <87r1vd6a2s.fsf@gmail.com> References: <9c48fc62-9de3-12b7-c672-a58694be57e5@free.fr> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="42760"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cc: 39817@debbugs.gnu.org To: dftxbs3e Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Thu May 21 09:07:25 2020 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 1jbfIb-000B28-0H for guile-bugs@m.gmane-mx.org; Thu, 21 May 2020 09:07:25 +0200 Original-Received: from localhost ([::1]:35384 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jbfIa-0000h8-3B for guile-bugs@m.gmane-mx.org; Thu, 21 May 2020 03:07:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44482) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jbfIE-0000LB-DH for bug-guile@gnu.org; Thu, 21 May 2020 03:07:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43676) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jbfIE-0007pF-4A for bug-guile@gnu.org; Thu, 21 May 2020 03:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jbfID-0005We-Uw for bug-guile@gnu.org; Thu, 21 May 2020 03:07:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Chris Marusich Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Thu, 21 May 2020 07:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39817 X-GNU-PR-Package: guile Original-Received: via spool by 39817-submit@debbugs.gnu.org id=B39817.159004480821219 (code B ref 39817); Thu, 21 May 2020 07:07:01 +0000 Original-Received: (at 39817) by debbugs.gnu.org; 21 May 2020 07:06:48 +0000 Original-Received: from localhost ([127.0.0.1]:55222 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jbfI0-0005WB-Ij for submit@debbugs.gnu.org; Thu, 21 May 2020 03:06:48 -0400 Original-Received: from mail-pl1-f179.google.com ([209.85.214.179]:37412) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jbfHy-0005Vv-Eo for 39817@debbugs.gnu.org; Thu, 21 May 2020 03:06:47 -0400 Original-Received: by mail-pl1-f179.google.com with SMTP id x10so2493031plr.4 for <39817@debbugs.gnu.org>; Thu, 21 May 2020 00:06:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=DLfHBA+81vuDSOizImMskc4A3W/Q8g2EkHUBPV/lS4k=; b=oL3eaibyXjIn98DobcpKrocgz8jVOSeEGZ8sXFlgbygSavbFH7Q9y/KXuSJfBnOxFc 7uLGU/JxC2ZxOnVvZrhu1DwibP4vARKqprfJ03ze8NIagjI1dq9/t+f8Xus3xtBrvYIc M7ZegJn/XS2lMtBSM9jzCFZSmod90Byhzn0/tlnJy4nz4PnxRJ06wej1M/04KMdlg3RM g+VPlVll7Tjke5fcnGVnyVsr+z5cOtFKNRPFDXnLGiHuvKoQ4R2E8j/d9wfZN9GiAb9s LxCjVCy3ZnO+b/HoNSHHEHhs8ku3b/TK7R7tAj+FOcX8e9mUuiLIQA2eFbePw53K2wOO K7rA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=DLfHBA+81vuDSOizImMskc4A3W/Q8g2EkHUBPV/lS4k=; b=P/GcGOnKWJ65aO1KwrlstLYVnjxbyHJELhOWGX9LfB2npNYdmdzXddjxXPAWR3hGa5 NQrc0EjLXA2bge5DVrVUswiTKaAl/nYLMqY+qSf2AFhtRAgF86n7kG4tJtBZXzQWHGa3 UEFxs569Urhq0qLfs5QgVj7EKEjJ9+xTmnJUKlNDw7ijnx2fKC8jCJSq4TX8KGCxkdiS ZEPjWIo4nVDJTcN70Ccy01LleCw4Bf+y3IYbP1rHeRyTIxT/o/H+wksBDw3dE2vEtuV9 +5Rn+961GUA7wXvbqjK7ikxjLXO3elY9e2mJwKflDerZEzgOh/ZS6E+0joCn9sQ78X9u eNmA== X-Gm-Message-State: AOAM531WNdpNehIg/wE8wGvbMkNv8vyBAmrkPucbrL2WehB79uMyKAZO 2VfPbwSoa5S2GN922Raqg97EzAe7n7s= X-Google-Smtp-Source: ABdhPJxFYFhufiwOrv3hwVVEg5sx8KJ2o82TqDiryhpmjuUiK1yAf8tI9EaA70ddtTWdGzhP2XlBCA== X-Received: by 2002:a17:90a:21e5:: with SMTP id q92mr8724796pjc.63.1590044799831; Thu, 21 May 2020 00:06:39 -0700 (PDT) Original-Received: from garuda-lan (c-73-97-103-127.hsd1.wa.comcast.net. [73.97.103.127]) by smtp.gmail.com with ESMTPSA id u69sm3772823pjb.40.2020.05.21.00.06.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 May 2020 00:06:38 -0700 (PDT) In-Reply-To: <9c48fc62-9de3-12b7-c672-a58694be57e5@free.fr> (dftxbs3e@free.fr's message of "Fri, 28 Feb 2020 02:07:12 +0100") 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:9774 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, dftxbs3e writes: > I built GNU Guix's `bootstrap-tarballs` package which includes Guile 2.2 > with `guix build --target=3Dpowerpc64-linux-gnu bootstrap-tarballs` and > when I run that compiled Guile on powerpc64, it crashes. > > I tried replacing the .go files with natively built ones and it works, > with the same cross compiled copy of the GNU Guile binaries. > > I used this GNU Guix's tree: > > https://gitlab.com/lle-bout/guix - commit > f47e761a10675b05b07107035d5024618267a3ad > > And bootstrap binaries are: > > https://gitlab.com/lle-bout/guix-bootstrap/-/commit/8e464405c0ba76b29e11c= 3b60af4d6ea9c83c188 > > After that copy of GNU Guix is built, to experience the crash you can > run on a powerpc64 machine: > > ./pre-inst-env guix build hello > > And it will try to run the bootstrap GNU Guile after some time and segfau= lt. What was the architecture of the system on which you ran the command "guix build --target=3Dpowerpc64-linux-gnu bootstrap-tarballs"? That may help me reproduce the issue. Can you remind me why bootstrap-tarballs uses Guile 2.2? Is there any possibility we can use Guile 3 instead? Maybe doing so could work around this problem. Or maybe I'm just confused. :-) It sounds like you're saying that one could reproduce this issue by doing the following: =2D Do a "guix pull" to install Guix commit f47e761a10675b05b07107035d5024618267a3ad (from your repo). =2D Use this newly pulled Guix to build the bootstrap binaries: guix build --target=3Dpowerpc64-linux-gnu bootstrap-tarballs =2D This should produce the same binaries that are found here: https://gitlab.com/lle-bout/guix-bootstrap/-/commit/8e464405c0ba76b29e11c= 3b60af4d6ea9c83c188 =2D Update the Guix source so that Guix will use those newly built bootstrap binaries (it looks like you did this in commit bb7d8f3b2ec469c6b3f460e4731871e8e2314dc4 in your repo). =2D On a POWER9 machine, get the new Guix source (e.g., commit bb7d8f3b2ec469c6b3f460e4731871e8e2314dc4 from your repo), and build Guix from source using the foreign distribution's native libraries (i.e., build Guix without using Guix, since it isn't available yet on POWER9). =2D Once you've built Guix in your local checkout, run "./pre-inst-env guix build hello" to observe the crash. Is that basically right? I will try to reproduce this and poke at it a bit. Please let me know if I have misunderstood anything. =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAl7GKHsACgkQ3UCaFdgi Rp0+dA//fsyiC66tPfjPDYRjBX/vnnHH/s9FklA/PgcVTI3vrnG2jVjsQNn5Z+mZ JrTRlfEaiWNDPD6gxwOsDvtQ/GCyivT519hSZOzQgA2U3dkQu6GBFNMR+Dp74hqm 1j4E2Mp9nP6Z8p1ceiv70juJAR05s/ZcH5MrTGa7EZVyhmg8EmGE3tjrgppCE4H8 3q1L+p2J8J9kFv1lehi9N9fVPo7FRV2dWVJGn2/ByhUWnM+RjJ9bPqIy2AZmKQWN o/fVH0+YmmZ1+OgH3xdD8U7sl0zZrqDQ9OsP0IoNIkcy845AwwFhh3asCUoIK7F7 T3fKktGhDJB31ezX5kFTCfSRnn5697AzN2HuK5389ZZJFSFaMFwTitB88F5Hh+qF lmt/RRPZFzpJl/Vvaw/HwzrCKxAdr1Wak9WEPz2vPRRg+LtsqMM52Ki1i/jLI5cB vbKVeVX+/tFFWTiBtsLJDYGjNHnfb4/EVy/zcvm//pxm13a3kjEiJT3KACQf1767 LkH1b52ahJBssZGvbgDcUI+oVHBZ4QifS+c8xdFkhft9t0cYv4Hic6MMCeEsaQME GbQncQ/b+38KuN0LyC/mQQgKGb8j8Vo5ylY1UJ/P+iM//XnyySRl33O+XFhwXprk 1lBSRTtZvneWTbL7b9NEIwhAQZ7EJ+DrtNfgoPWTkRwZRkrHeq0= =0XWl -----END PGP SIGNATURE----- --=-=-=--