From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iJQhK7QITGK1ZQAAgWs5BA (envelope-from ) for ; Tue, 05 Apr 2022 11:15:32 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id KAUJKbQITGL5DQEA9RJhRA (envelope-from ) for ; Tue, 05 Apr 2022 11:15:32 +0200 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 2D4B12FC7A for ; Tue, 5 Apr 2022 11:15:32 +0200 (CEST) Received: from localhost ([::1]:54852 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nbfHf-0005m3-4T for larch@yhetil.org; Tue, 05 Apr 2022 05:15:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37960) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nbfDL-0003Lq-4F for bug-guix@gnu.org; Tue, 05 Apr 2022 05:11:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59850) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nbfDK-0000Fu-Qa for bug-guix@gnu.org; Tue, 05 Apr 2022 05:11:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nbfDK-0003E0-HU for bug-guix@gnu.org; Tue, 05 Apr 2022 05:11:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#54407: Issues building grub for powerpc64le, could not force big-endian Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 05 Apr 2022 09:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54407 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxime Devos Received: via spool by 54407-submit@debbugs.gnu.org id=B54407.164914981912326 (code B ref 54407); Tue, 05 Apr 2022 09:11:02 +0000 Received: (at 54407) by debbugs.gnu.org; 5 Apr 2022 09:10:19 +0000 Received: from localhost ([127.0.0.1]:53746 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nbfCc-0003Ck-Sw for submit@debbugs.gnu.org; Tue, 05 Apr 2022 05:10:19 -0400 Received: from mira.cbaines.net ([212.71.252.8]:41288) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nbfCa-0003Ca-Ux for 54407@debbugs.gnu.org; Tue, 05 Apr 2022 05:10:17 -0400 Received: from localhost (unknown [IPv6:2a02:8010:68c1:0:54d1:d5d4:280e:f699]) by mira.cbaines.net (Postfix) with ESMTPSA id D071227BBE9; Tue, 5 Apr 2022 10:10:15 +0100 (BST) Received: from felis (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 04aefa4d; Tue, 5 Apr 2022 08:43:35 +0000 (UTC) References: <87pmmm6hfj.fsf@cbaines.net> <7b43424a2ca7b3048fc2652cbee4f71390ce9151.camel@telenet.be> User-agent: mu4e 1.6.10; emacs 27.2 From: Christopher Baines Date: Mon, 04 Apr 2022 20:37:23 +0100 In-reply-to: <7b43424a2ca7b3048fc2652cbee4f71390ce9151.camel@telenet.be> Message-ID: <87h777q5s8.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; 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: 54407@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1649150132; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post; bh=uI45jD9sKC0J9dzoUcw7hhpOauBwZfFfo4Z5zQGdrzY=; b=VRulD/e+TxbTWoM7ApZvopp0EJRuupY1FtzO26FJJrTzw2NbrKDN673vZjaCj98C7SFLiT 6hUUuMKAam0wEc7Ryqq0OST2oQ3IBJq482ba7dS7YEz6cYF2hLUKr2dtea5vnSqmCRGQU/ IVZViqtJda79zoJ31tJyPLbDPnNjqbz0oqu35CZFEWC32T5vjDkGmv2qKfdLwkLdFrrj0k Kpa+CxVjAxyu0Tgi4Iu48lFB7EtwT6l7rkam5Xb2fL2AyDopgaCGqZVwzIP88tjmOLfoIR G3B3eJ5IoFdDdadZ9I5VbfFcvOyieIPvHW9ojSYt+345iwqGa2IbFY90/aAUKA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649150132; a=rsa-sha256; cv=none; b=uannuXCAU5uWo4dSZ00lsti8/Po8ioGOJz1/1Kn6tkG+SvjPUFy4K4rqWLTCp8LFbY59pB srV7Y8bQuCryiuBdfu4miDcfam6qWeJp+ovam44CM15swsSOeyMuEY7XyvT9cSaCMJKJ68 GKXwWnx0fNXi1jiBWVYwr4xgpv3y3cBS+uiQ4/Yma3FQt9dnSbzThCEwe+NRlnDrbfeOLJ yOabQEVEYDklBREu6L9VhKOnip8y9VnZIJ3SPNcCakCel84mKHducmCWAJ5NK+jdd3TAPt 4sV7sppaOuipb2EFAD7Vl16NY+9OeiTWVoHyz9HXQfIzzJDLpQsQ3cy4MOlwjg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -6.47 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 2D4B12FC7A X-Spam-Score: -6.47 X-Migadu-Scanner: scn0.migadu.com X-TUID: BzTMeyfcJIdZ --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Maxime Devos writes: > Christopher Baines schreef op di 15-03-2022 om 21:11 [+0000]: >> grub can't be built for powerpc64le, I believe the same failure >> occurs >> with native builds or cross compilation from x86_64. I think this >> might >> have always been the case. >> >> This is the error from the build log: >> >> =C2=A0 checking for options to get big-endian compilation... no >> =C2=A0 configure: error: could not force big-endian >> >> Looking in the config.log file, it tries a bunch of options with >> different errors, but this one stands out: >> >> =C2=A0 cc1: error: '-m32' not supported in this configuration >> >> I know very little about gcc, but I think this might relate to the >> multilib thing, which I'm guessing is disabled for the gcc in use >> here. >> >> Any ideas about this issue? > > Maybe you could add a gcc compiling for 32-bit ppc (maybe without a > glibc since this is grub) and patch the configuration script to use the > 32-bit ppc gcc instead of using the 64-bit ppc+-m32? I've had a go at this, using something like what I've included below, but I haven't stumbled upon the right options yet, or a way to work out why gcc still thinks "-m32 not supported". (define multilib-gcc (package (inherit gcc) (name "foo-gcc") (arguments (substitute-keyword-arguments (package-arguments gcc) ((#:phases phases) `(modify-phases ,phases (add-after 'unpack 'fix-genmultilib (lambda _ ;; patch-shebang doesn't work here because there are actua= lly ;; several scripts inside this script, each with a #!/bin/= sh ;; that needs patching. (substitute* "gcc/genmultilib" (("#!/bin/sh") (string-append "#!" (which "sh")))))))) ((#:configure-flags flags) `(append (list "--with-endian=3Dlittle,big" "--enable-multilib" "--with-multilib-list=3Dmx32,m64,m32" ) (delete "--disable-multilib" ,flags))))))) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAmJMATdfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh aW5lcy5uZXQACgkQXiijOwuE9XfvdQ//c9sQYvGWLHqVGFIhsRzdakO1rhQUr/4j HuB+Zo+da1klZYUpHphqqelRaRKhr1aDBX+pbTPv3bBhrPf/YiJ6Q5J4E68iCST5 rU/KpQywkU+LoNgh28GhijDzg8dXWeFUbNNOL945w6hpinWIbURYFwWdVU2B8iHl tXpBKVaJCLgc9nIjTeC62HVNgGXsncQS/r4yvqb5h+Lq+Cz367kG4WaxqKDBcYCm YOwqWV1T8m6tNHzZTRac1Noh8ExaEbZTYrgT7iHRlQBjbvVB10jrWd1ZuQ7EXNJb nwhR8Btdya0rMSAVo8rGDuNKLHmOAVh2x1yHgi/BYciuGzxem8zFAIdWmuu7bne8 5Tvnti6xP1iJCrbBkqY+0iYzs7HGUFejhJIxU3hg9tV9TzIao4jThE+yyHRht0BB /5knr56AYcmQn/SUptemnZrA+cIFoRuDIqyerkT1s4FiHbd0YRDgNFEks0gjw5tt Jn9EVD1VgzWqcDDJ/C8fwSe6Dct3G5KX8rCjgHWQBchvL5mqe/HkCANiHc1QGz60 7EzLspsThuG6HkE6PP3V3JUqcz1CdA+iYrNyxKW434pN4HNSG7eIEk6Md0Gcm8LX ifIZON9/V0Tkn5eapMQdimeli3lmTkh2NktSU+zxReX7LZ3t5U3IQOomTJ8khNLJ XlphoSMeRoY= =aklY -----END PGP SIGNATURE----- --=-=-=--