From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id AAa7NDQ6H2CxMgAA0tVLHw (envelope-from ) for ; Sun, 07 Feb 2021 00:54:12 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id ojaVMDQ6H2AWSgAA1q6Kng (envelope-from ) for ; Sun, 07 Feb 2021 00:54:12 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 577699402D4 for ; Sun, 7 Feb 2021 00:54:12 +0000 (UTC) Received: from localhost ([::1]:36310 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l8YL5-00061u-Bp for larch@yhetil.org; Sat, 06 Feb 2021 19:54:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46200) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l8YKw-00061X-4p for bug-guix@gnu.org; Sat, 06 Feb 2021 19:54:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:35147) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l8YKv-0006q3-Tq for bug-guix@gnu.org; Sat, 06 Feb 2021 19:54:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l8YKv-0006vb-Sd for bug-guix@gnu.org; Sat, 06 Feb 2021 19:54:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#46253: powerpc64le: gcc-final: "configure: error: cannot compute sizeof (long long)" Resent-From: Chris Marusich Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 07 Feb 2021 00:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46253 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 46253@debbugs.gnu.org Received: via spool by 46253-submit@debbugs.gnu.org id=B46253.161265922826612 (code B ref 46253); Sun, 07 Feb 2021 00:54:01 +0000 Received: (at 46253) by debbugs.gnu.org; 7 Feb 2021 00:53:48 +0000 Received: from localhost ([127.0.0.1]:46693 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l8YKi-0006v9-A3 for submit@debbugs.gnu.org; Sat, 06 Feb 2021 19:53:48 -0500 Received: from mail-pl1-f171.google.com ([209.85.214.171]:35714) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l8YKg-0006ut-Q4 for 46253@debbugs.gnu.org; Sat, 06 Feb 2021 19:53:47 -0500 Received: by mail-pl1-f171.google.com with SMTP id g3so5759455plp.2 for <46253@debbugs.gnu.org>; Sat, 06 Feb 2021 16:53:46 -0800 (PST) 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=8YolHY9cgmsf9ct6ImJo6FpS6a+0ew2zILiTizyREcg=; b=MMUpibN1e5kMBZI8exNOm2Zvyq0vYuNufi4b4I9e6XXq8WoBD/slIotCFEbHX0RVth RmgbN6PuVBnyuQfWHdi8d+giGtKJJkV8+uYi32MQrDbNoEe39JzU6yoBYhgIjbs2PzSD pcd+9UuW5iuJS9aMOL16RhHn9a0pl128XWG7kD29lEiYHWajbJHQzrPrsuOPPIBktWmH OqrWLLP0eBRZitfYSlPcrNGDFQVY0CZr94vklPyuV2qacuRdDvKAAh0Sjt8CpROdFkZh iKRz8z4ozv4zVZLqKNUAMeqj01wg1bXB8rhH7rvkzTSHyeJUfuE0hBGks7wUxwGF+swa 58eg== 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=8YolHY9cgmsf9ct6ImJo6FpS6a+0ew2zILiTizyREcg=; b=ucnoSmWMsiKISg89UO+7Z9SAP7sHrx9hiWll7+wYbkkGQbtwC/aRAdjn4fYp/6KeFt j7ifkjva30qDH1zMbTxjbZRC+mNzZ2gGurYtU0c1u27+C9xKO+TVuP1nDS+qzqkl/kXk NJLb1VpPAWXwxyKO3ghVUKy+NwIAm+xGhPVpu1lDEro3xNeuJnOMGj72732T92yNgiIu zm94swZcesJxnwlY1G0bRNCoaJL0FjsvebxUC6NLSKUOB031dGd+BEx9wEny3CVaoccA dKZ/6HKLfpGC5K7h3jfc5uLShXQGgD/YWJUr9B/fXo+gI+3C5ZAdPnBGQAACHj7IWF4l q3zw== X-Gm-Message-State: AOAM533ARKY/Z2TbsK8odAA/4b25bBvdYCkQu5QeWsEx96Kmjju7kvV1 cAYmX5bJrCPVKtgixlgRcz92aqLbjlPA7w== X-Google-Smtp-Source: ABdhPJziRx6rNpkSNZlaEhwOYA3YFPUvwdBcW25bMFIYLMJIlxWqr5IxOTtCNpbttvVZJskVD8hQDQ== X-Received: by 2002:a17:902:eccf:b029:de:72a2:f1f8 with SMTP id a15-20020a170902eccfb02900de72a2f1f8mr10633538plh.17.1612659220766; Sat, 06 Feb 2021 16:53:40 -0800 (PST) Received: from garuda-lan (c-24-18-44-142.hsd1.wa.comcast.net. [24.18.44.142]) by smtp.gmail.com with ESMTPSA id b21sm14513247pfb.45.2021.02.06.16.53.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Feb 2021 16:53:39 -0800 (PST) From: Chris Marusich References: <871rdyon1v.fsf@gmail.com> Date: Sat, 06 Feb 2021 16:53:38 -0800 In-Reply-To: <871rdyon1v.fsf@gmail.com> (Chris Marusich's message of "Tue, 02 Feb 2021 01:07:24 -0800") Message-ID: <87im74u299.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?Q?L=C3=A9o?= Le Bouter Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.36 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=MMUpibN1; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 577699402D4 X-Spam-Score: -3.36 X-Migadu-Scanner: scn0.migadu.com X-TUID: GG+mzLTCDA7h --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Chris Marusich writes: > configure:6100: error: cannot compute sizeof (long long) It was mentioned on IRC that a better way to fix this would be to configure libstdc++ to install to /lib instead of /lib64, since in Guix we install libraries to /lib by convention, even on 64-bit systems. See: https://logs.guix.gnu.org/guix/2021-02-06.log I looked into this a bit more after that. It turns out that we do something like that already, in the original gcc package definition, for existing architectures. However, L=C3=A9o pointed out that on the rs6000 architecture (i.e., powerpc), the gcc/config/rs6000 directory's build logic hard-codes some /lib64 references. I have added a phase that replaces those hard-coded references. I should also mention that I did try to use the --libdir configure flag to tell libstdc++ to install to /lib64, but it didn't work; libstdc++ just ignored the flag and still installed its libraries in /lib64. Replacing the hard-coded references fixed it, though. In addition, I discovered that the libstdc++ package does not actually re-use the package arguments from gcc. Therefore, it was necessary to add a similar phase in the make-libstdc++ procedure. Although it is possible that, to resolve this specific bug (gcc-final: "configure: error: cannot compute sizeof (long long)"), only the make-libstdc++ change is necessary, it seems prudent to go ahead and also make the change described above for gcc, to avoid future problems. I have pushed both changes to wip-ppc64le in commit db761a593992aea441055bda260461f4302a4667 on the wip-ppc64le branch. =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAmAfOhIACgkQ3UCaFdgi Rp1FJQ/7B00x9Fck3OnkKKVZw3q3jknlr89zkMwWtoYSPufpdd8/6Fk7ojxBj6tC Uj7+IWg1Z9Qo+xqbofuuljzJi/F7UBRG5xI9JB8VOOGm8MXvu5B58li+HkvJWBIA AyUTLFSEpslz23sitjU6SKCko0m9dfgUOhVrcNr8/891SGD0Q6TQAtu5NCFHZ085 tNwdq9/uJyAthm+04jOD4UCuk/QJBdNzq3734336SlM9gas4+zK95umSIvf7f3pU mG96X4ZmuVkgXn3XUigJr+YpK1RALzzCPQ3NOa8LH0heu6J7iKamD5CaOFo4y0ds kzdDmouTVT1xqdPHpZaVPd5cXu9oUVzfxxrUMACqUKRhn5TrOF4735E7OqtASzrz IepOUEFilz9EyRisstvxrbRPYKrMWOiqGwI0SIhvrBMQNToB5B7uc+obhgMyabZx 9jCWwfnsKvo356h+uOtbKuuBas4r5lahf2ZPAJlWyPHaQP+E5ajxEeYVMBv/PJRK KM/gVE1fOWoz2iYsJMG9FXvOPREQ4wAHepXKmLm4p1VqJbO0bdMixiC9o0lxSQBw KMeQIfi4dNY09ENHsK7/C2uoVVeDNB6ZT4JpBnGxj+rRlPhvhX8apHlFaA8/xQmk HbIei1kU3am2OQ98VcUJK6f9392UFoEt8CE9z2PBJa+F02uYOew= =ygeq -----END PGP SIGNATURE----- --=-=-=--