From unknown Sun Aug 17 22:03:33 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#31380 <31380@debbugs.gnu.org> To: bug#31380 <31380@debbugs.gnu.org> Subject: Status: grub fails to build on i686-linux Reply-To: bug#31380 <31380@debbugs.gnu.org> Date: Mon, 18 Aug 2025 05:03:33 +0000 retitle 31380 grub fails to build on i686-linux reassign 31380 guix submitter 31380 Mark H Weaver severity 31380 serious thanks From debbugs-submit-bounces@debbugs.gnu.org Mon May 07 16:01:15 2018 Received: (at submit) by debbugs.gnu.org; 7 May 2018 20:01:15 +0000 Received: from localhost ([127.0.0.1]:53227 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fFmJv-0002TQ-Je for submit@debbugs.gnu.org; Mon, 07 May 2018 16:01:15 -0400 Received: from eggs.gnu.org ([208.118.235.92]:33242) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fFmJt-0002TD-Sw for submit@debbugs.gnu.org; Mon, 07 May 2018 16:01:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fFmJn-0007xd-PB for submit@debbugs.gnu.org; Mon, 07 May 2018 16:01:08 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:51341) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fFmJn-0007xX-MY for submit@debbugs.gnu.org; Mon, 07 May 2018 16:01:07 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52441) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fFmJm-00076O-0U for bug-guix@gnu.org; Mon, 07 May 2018 16:01:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fFmJg-0007uU-P6 for bug-guix@gnu.org; Mon, 07 May 2018 16:01:04 -0400 Received: from world.peace.net ([64.112.178.59]:44596) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fFmJg-0007u6-LN for bug-guix@gnu.org; Mon, 07 May 2018 16:01:00 -0400 Received: from mhw by world.peace.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1fFmJf-00052A-AF; Mon, 07 May 2018 16:00:59 -0400 From: Mark H Weaver To: bug-guix@gnu.org Subject: [core-updates] grub fails to build on i686-linux Date: Mon, 07 May 2018 15:59:56 -0400 Message-ID: <87d0y7grsz.fsf@netris.org> MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) On the 'core-updates' branch, both 'grub' and 'grub-efi' fail to build on i686-linux. See below for the relevant excerpt from the build log of 'grub-efi', but the error is the same for both. https://hydra.gnu.org/build/2675846 https://hydra.gnu.org/build/2684033 Mark --8<---------------cut here---------------start------------->8--- gcc -DHAVE_CONFIG_H -I. -I.. -Wall -W -DGRUB_MACHINE_EFI=3D1 -DGRUB_MACHI= NE=3DI386_EFI -m32 -nostdinc -isystem /gnu/store/w55k6qc17s6nf7rv4agap9lsas= 4hb50l-gcc-5.5.0-lib/lib/gcc/i686-unknown-linux-gnu/5.5.0/include -I../incl= ude -I../include -DGRUB_FILE=3D\"lib/i386/relocator.c\" -I. -I. -I.. -I.. -= I../include -I../include -I../grub-core/lib/libgcrypt-grub/src/ -D_FILE_= OFFSET_BITS=3D64 -Os -Wall -W -Wshadow -Wpointer-arith -Wundef -Wchar-subsc= ripts -Wcomment -Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by-= zero -Wfloat-equal -Wformat-extra-args -Wformat-security -Wformat-y2k -Wimp= licit -Wimplicit-function-declaration -Wimplicit-int -Wmain -Wmissing-brace= s -Wmissing-format-attribute -Wmultichar -Wparentheses -Wreturn-type -Wsequ= ence-point -Wshadow -Wsign-compare -Wswitch -Wtrigraphs -Wunknown-pragmas -= Wunused -Wunused-function -Wunused-label -Wunused-parameter -Wunused-value = -Wunused-variable -Wwrite-strings -Wnested-externs -Wstrict-prototypes -g = -Wredundant-decls -Wmissing-prototypes -Wmissing-declarations -Wextra -Wat= tributes -Wendif-labels -Winit-self -Wint-to-pointer-cast -Winvalid-pch -Wm= issing-field-initializers -Wnonnull -Woverflow -Wvla -Wpointer-to-int-cast = -Wstrict-aliasing -Wvariadic-macros -Wvolatile-register-var -Wpointer-sign = -Wmissing-include-dirs -Wmissing-prototypes -Wmissing-declarations -Wformat= =3D2 -march=3Di386 -m32 -falign-jumps=3D1 -falign-loops=3D1 -falign-functio= ns=3D1 -freg-struct-return -mno-mmx -mno-sse -mno-sse2 -mno-sse3 -mno-3dnow= -msoft-float -fno-dwarf2-cfi-asm -mno-stack-arg-probe -fno-asynchronous-un= wind-tables -fno-unwind-tables -Qn -fno-stack-protector -Wtrampolines -Werr= or -ffreestanding -MT lib/i386/relocator_module-relocator.o -MD -MP -MF= lib/i386/.deps-core/relocator_module-relocator.Tpo -c -o lib/i386/relocato= r_module-relocator.o `test -f 'lib/i386/relocator.c' || echo './'`lib/i386/= relocator.c lib/i386/relocator64.S: Assembler messages: lib/i386/relocator64.S:66: Error: unknown pseudo-op: `.code64' lib/i386/relocator64.S:74: Error: bad register name `%rax' lib/i386/relocator64.S:88: Error: bad register name `%rsp' lib/i386/relocator64.S:98: Error: bad register name `%rax' lib/i386/relocator64.S:132: Error: bad register name `%rip)' make[3]: *** [Makefile:28996: lib/i386/relocator_module-relocator64.o] Erro= r 1 make[3]: *** Waiting for unfinished jobs.... mv -f lib/.deps-core/crypto_module-crypto.Tpo lib/.deps-core/crypto_module-= crypto.Po mv -f lib/i386/.deps-core/relocator_module-relocator.Tpo lib/i386/.deps-cor= e/relocator_module-relocator.Po mv -f fs/.deps-core/xfs_module-xfs.Tpo fs/.deps-core/xfs_module-xfs.Po make[3]: Leaving directory '/tmp/guix-build-grub-efi-2.02.drv-0/grub-2.02/g= rub-core' make[2]: *** [Makefile:23531: all] Error 2 make[2]: Leaving directory '/tmp/guix-build-grub-efi-2.02.drv-0/grub-2.02/g= rub-core' make[1]: *** [Makefile:10904: all-recursive] Error 1 make[1]: Leaving directory '/tmp/guix-build-grub-efi-2.02.drv-0/grub-2.02' make: *** [Makefile:3130: all] Error 2 --8<---------------cut here---------------end--------------->8--- From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 13 23:44:44 2018 Received: (at 31380) by debbugs.gnu.org; 14 Jun 2018 03:44:44 +0000 Received: from localhost ([127.0.0.1]:47176 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fTJBk-0003F5-3g for submit@debbugs.gnu.org; Wed, 13 Jun 2018 23:44:44 -0400 Received: from world.peace.net ([64.112.178.59]:50554) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fTJBi-0003El-5g; Wed, 13 Jun 2018 23:44:42 -0400 Received: from mhw by world.peace.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1fTJBb-0001fr-9s; Wed, 13 Jun 2018 23:44:35 -0400 From: Mark H Weaver To: 31380@debbugs.gnu.org Subject: Re: bug#31380: grub fails to build on i686-linux References: <87d0y7grsz.fsf@netris.org> Date: Wed, 13 Jun 2018 23:43:18 -0400 In-Reply-To: <87d0y7grsz.fsf@netris.org> (Mark H. Weaver's message of "Mon, 07 May 2018 15:59:56 -0400") Message-ID: <874li6rq21.fsf@netris.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 31380 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable retitle 31380 grub fails to build on i686-linux severity 31380 serious thanks Mark H Weaver writes: > On the 'core-updates' branch, both 'grub' and 'grub-efi' fail to build > on i686-linux. See below for the relevant excerpt from the build log > of 'grub-efi', but the error is the same for both. core-updates has since been merged to master, so this is now a serious problem for i686 users. It prevents building any system, and therefore prevents i686 users from applying security updates. > gcc -DHAVE_CONFIG_H -I. -I.. -Wall -W -DGRUB_MACHINE_EFI=3D1 -DGRUB_MAC= HINE=3DI386_EFI -m32 -nostdinc -isystem /gnu/store/w55k6qc17s6nf7rv4agap9ls= as4hb50l-gcc-5.5.0-lib/lib/gcc/i686-unknown-linux-gnu/5.5.0/include -I../in= clude -I../include -DGRUB_FILE=3D\"lib/i386/relocator.c\" -I. -I. -I.. -I..= -I../include -I../include -I../grub-core/lib/libgcrypt-grub/src/ -D_FIL= E_OFFSET_BITS=3D64 -Os -Wall -W -Wshadow -Wpointer-arith -Wundef -Wchar-sub= scripts -Wcomment -Wdeprecated-declarations -Wdisabled-optimization -Wdiv-b= y-zero -Wfloat-equal -Wformat-extra-args -Wformat-security -Wformat-y2k -Wi= mplicit -Wimplicit-function-declaration -Wimplicit-int -Wmain -Wmissing-bra= ces -Wmissing-format-attribute -Wmultichar -Wparentheses -Wreturn-type -Wse= quence-point -Wshadow -Wsign-compare -Wswitch -Wtrigraphs -Wunknown-pragmas= -Wunused -Wunused-function -Wunused-label -Wunused-parameter -Wunused-valu= e -Wunused-variable -Wwrite-strings -Wnested-externs -Wstrict-prototypes -= g -Wredundant-decls -Wmissing-prototypes -Wmissing-declarations -Wextra -W= attributes -Wendif-labels -Winit-self -Wint-to-pointer-cast -Winvalid-pch -= Wmissing-field-initializers -Wnonnull -Woverflow -Wvla -Wpointer-to-int-cas= t -Wstrict-aliasing -Wvariadic-macros -Wvolatile-register-var -Wpointer-sig= n -Wmissing-include-dirs -Wmissing-prototypes -Wmissing-declarations -Wform= at=3D2 -march=3Di386 -m32 -falign-jumps=3D1 -falign-loops=3D1 -falign-funct= ions=3D1 -freg-struct-return -mno-mmx -mno-sse -mno-sse2 -mno-sse3 -mno-3dn= ow -msoft-float -fno-dwarf2-cfi-asm -mno-stack-arg-probe -fno-asynchronous-= unwind-tables -fno-unwind-tables -Qn -fno-stack-protector -Wtrampolines -We= rror -ffreestanding -MT lib/i386/relocator_module-relocator.o -MD -MP -= MF lib/i386/.deps-core/relocator_module-relocator.Tpo -c -o lib/i386/reloca= tor_module-relocator.o `test -f 'lib/i386/relocator.c' || echo './'`lib/i38= 6/relocator.c > lib/i386/relocator64.S: Assembler messages: > lib/i386/relocator64.S:66: Error: unknown pseudo-op: `.code64' > lib/i386/relocator64.S:74: Error: bad register name `%rax' > lib/i386/relocator64.S:88: Error: bad register name `%rsp' > lib/i386/relocator64.S:98: Error: bad register name `%rax' > lib/i386/relocator64.S:132: Error: bad register name `%rip)' I looked into this, and the problem is that our 'binutils' package on i686-linux is not configured to support 64-bit instructions. Here's a proposed patch that I hope will fix the problem, although I'm unable to easily test it because I no longer use binary substitutes, and I have not yet built the core packages for i686-linux. However, I've applied this patch to my x86_64 system, and verified that it does not cause any problems there. Would someone be willing to test it and report back? Mark --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-UNTESTED-gnu-grub-Fix-build-on-32-bit-x86.patch Content-Description: [PATCH] UNTESTED: gnu: grub: Fix build on 32-bit x86 >From 6fb0495569846b6399583a6c32ee341dde2e1785 Mon Sep 17 00:00:00 2001 From: Mark H Weaver Date: Mon, 11 Jun 2018 19:21:39 -0400 Subject: [PATCH] UNTESTED: gnu: grub: Fix build on 32-bit x86. --- gnu/packages/bootloaders.scm | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm index a86c73731..8c8588973 100644 --- a/gnu/packages/bootloaders.scm +++ b/gnu/packages/bootloaders.scm @@ -61,7 +61,8 @@ #:use-module (guix packages) #:use-module (guix utils) #:use-module (srfi srfi-1) - #:use-module (srfi srfi-26)) + #:use-module (srfi srfi-26) + #:use-module (ice-9 regex)) (define unifont ;; GNU Unifont, . @@ -144,6 +145,19 @@ ("texinfo" ,texinfo) ("help2man" ,help2man) + ;; FIXME: When building GRUB 2.02 on 32-bit x86, we need a binutils + ;; capable of assembling 64-bit instructions. However, our default + ;; binutils on 32-bit x86 is not 64-bit capable. + ,@(if (string-match "^i[3456]86-" (%current-system)) + `(("binutils" + ,(package/inherit + binutils + (arguments + (substitute-keyword-arguments (package-arguments binutils) + ((#:configure-flags flags ''()) + `(cons "--enable-64-bit-bfd" ,flags))))))) + '()) + ;; Dependencies for the test suite. The "real" QEMU is needed here, ;; because several targets are used. ("parted" ,parted) -- 2.17.1 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 15 10:52:30 2018 Received: (at 31380) by debbugs.gnu.org; 15 Jun 2018 14:52:30 +0000 Received: from localhost ([127.0.0.1]:50532 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fTq5U-0000oL-RO for submit@debbugs.gnu.org; Fri, 15 Jun 2018 10:52:30 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51379) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fTq5S-0000o9-T4 for 31380@debbugs.gnu.org; Fri, 15 Jun 2018 10:52:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fTq5M-00019A-A4 for 31380@debbugs.gnu.org; Fri, 15 Jun 2018 10:52:21 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47832) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTq5M-000196-5r; Fri, 15 Jun 2018 10:52:20 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=34628 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fTq5L-0004lI-Or; Fri, 15 Jun 2018 10:52:20 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Mark H Weaver Subject: Re: bug#31380: grub fails to build on i686-linux References: <87d0y7grsz.fsf@netris.org> <874li6rq21.fsf@netris.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 27 Prairial an 226 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Fri, 15 Jun 2018 16:52:17 +0200 In-Reply-To: <874li6rq21.fsf@netris.org> (Mark H. Weaver's message of "Wed, 13 Jun 2018 23:43:18 -0400") Message-ID: <87d0wst84e.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 31380 Cc: 31380@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Hello Mark, Mark H Weaver skribis: > retitle 31380 grub fails to build on i686-linux > severity 31380 serious > thanks > > Mark H Weaver writes: >> On the 'core-updates' branch, both 'grub' and 'grub-efi' fail to build >> on i686-linux. See below for the relevant excerpt from the build log >> of 'grub-efi', but the error is the same for both. > > core-updates has since been merged to master, so this is now a serious > problem for i686 users. It prevents building any system, and therefore > prevents i686 users from applying security updates. > >> gcc -DHAVE_CONFIG_H -I. -I.. -Wall -W -DGRUB_MACHINE_EFI=3D1 -DGRUB_MA= CHINE=3DI386_EFI -m32 -nostdinc -isystem /gnu/store/w55k6qc17s6nf7rv4agap9l= sas4hb50l-gcc-5.5.0-lib/lib/gcc/i686-unknown-linux-gnu/5.5.0/include -I../i= nclude -I../include -DGRUB_FILE=3D\"lib/i386/relocator.c\" -I. -I. -I.. -I.= . -I../include -I../include -I../grub-core/lib/libgcrypt-grub/src/ -D_FI= LE_OFFSET_BITS=3D64 -Os -Wall -W -Wshadow -Wpointer-arith -Wundef -Wchar-su= bscripts -Wcomment -Wdeprecated-declarations -Wdisabled-optimization -Wdiv-= by-zero -Wfloat-equal -Wformat-extra-args -Wformat-security -Wformat-y2k -W= implicit -Wimplicit-function-declaration -Wimplicit-int -Wmain -Wmissing-br= aces -Wmissing-format-attribute -Wmultichar -Wparentheses -Wreturn-type -Ws= equence-point -Wshadow -Wsign-compare -Wswitch -Wtrigraphs -Wunknown-pragma= s -Wunused -Wunused-function -Wunused-label -Wunused-parameter -Wunused-val= ue -Wunused-variable -Wwrite-strings -Wnested-externs -Wstrict-prototypes = -g -Wredundant-decls -Wmissing-prototypes -Wmissing-declarations -Wextra -= Wattributes -Wendif-labels -Winit-self -Wint-to-pointer-cast -Winvalid-pch = -Wmissing-field-initializers -Wnonnull -Woverflow -Wvla -Wpointer-to-int-ca= st -Wstrict-aliasing -Wvariadic-macros -Wvolatile-register-var -Wpointer-si= gn -Wmissing-include-dirs -Wmissing-prototypes -Wmissing-declarations -Wfor= mat=3D2 -march=3Di386 -m32 -falign-jumps=3D1 -falign-loops=3D1 -falign-func= tions=3D1 -freg-struct-return -mno-mmx -mno-sse -mno-sse2 -mno-sse3 -mno-3d= now -msoft-float -fno-dwarf2-cfi-asm -mno-stack-arg-probe -fno-asynchronous= -unwind-tables -fno-unwind-tables -Qn -fno-stack-protector -Wtrampolines -W= error -ffreestanding -MT lib/i386/relocator_module-relocator.o -MD -MP = -MF lib/i386/.deps-core/relocator_module-relocator.Tpo -c -o lib/i386/reloc= ator_module-relocator.o `test -f 'lib/i386/relocator.c' || echo './'`lib/i3= 86/relocator.c >> lib/i386/relocator64.S: Assembler messages: >> lib/i386/relocator64.S:66: Error: unknown pseudo-op: `.code64' >> lib/i386/relocator64.S:74: Error: bad register name `%rax' >> lib/i386/relocator64.S:88: Error: bad register name `%rsp' >> lib/i386/relocator64.S:98: Error: bad register name `%rax' >> lib/i386/relocator64.S:132: Error: bad register name `%rip)' > > I looked into this, and the problem is that our 'binutils' package on > i686-linux is not configured to support 64-bit instructions. > > Here's a proposed patch that I hope will fix the problem, although I'm > unable to easily test it because I no longer use binary substitutes, and > I have not yet built the core packages for i686-linux. > > However, I've applied this patch to my x86_64 system, and verified that > it does not cause any problems there. > > Would someone be willing to test it and report back? I tried it and it initially failed to build with: --8<---------------cut here---------------start------------->8--- gcc -o build-grub-mkfont -I./include -DGRUB_FILE=3D\"util/grub-mkfont.c\" = -I. -I. -I. -I. -I./include -I./include -I./grub-core/lib/libgcrypt-grub/sr= c/ -DGRUB_MKFONT=3D1 -DGRUB_BUILD=3D1 -DGRUB_UTIL=3D1 -DGRUB_BUILD_PROGRAM_NAME=3D\"build-grub-mkfont\" util/grub-mkfont.c grub-= core/unidata.c grub-core/kern/emu/misc.c util/misc.c -I/gnu/store/gi5gzdblb= yrjjrjlknhxnrkc0h6zig2q-freetype-2.9/include/freetype2 -I/gnu/store/hsq4n17= f58510q0l0syw3jdb24fb6d8k-libpng-1.6.34/include/libpng16 -L/gnu/store/gi5gz= dblbyrjjrjlknhxnrkc0h6zig2q-freetype-2.9/lib -lfreetype [=E2=80=A6] config.status: creating grub-fs-tester chmod a+x grub-fs-tester ./build-grub-mkfont -o unicode.pf2 ./unifont.bdf || (rm -f unicode.pf2; exi= t 1) ./build-grub-mkfont: error while loading shared libraries: libfreetype.so.6= : cannot open shared object file: No such file or directory make[2]: *** [Makefile:12719: unicode.pf2] Error 1 make[2]: *** Waiting for unfinished jobs.... --8<---------------cut here---------------end--------------->8--- That=E2=80=99s because ld-wrapper was shadowed by the new binutils input. I fixed this and pushed as a7c8716928a240ba2c36d360e4ffeb447671fa6b. I wanted to try =E2=80=98guix system vm-image -s i686-linux=E2=80=99 on my = x86_64 laptop to make sure GRUB runs fine. Unfortunately, I stumbled upon another issue, which is that qemu-system-i386 built for i686-linux segfaults at startup: --8<---------------cut here---------------start------------->8--- Core was generated by `/gnu/store/wm9cimv1mxak3zp7lddj9n992yy27y3n-qemu-min= imal-2.12.0/bin/qemu-system'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x566eb1aa in ?? () [Current thread is 1 (Thread 0xf57ffb40 (LWP 19004))] (gdb) bt #0 0x566eb1aa in ?? () #1 0x566eb303 in ?? () #2 0x566c10c7 in ?? () #3 0xf78e035b in start_thread () from /gnu/store/4aka3nwppxf3z072l6vr8cxvw= j3x5h9s-glibc-2.27/lib/libpthread.so.0 #4 0xf77f75d6 in clone () from /gnu/store/4aka3nwppxf3z072l6vr8cxvwj3x5h9s= -glibc-2.27/lib/libc.so.6 (gdb) thread apply all bt Thread 5 (Thread 0xf6d89b40 (LWP 19000)): #0 0xf7f0b059 in __kernel_vsyscall () #1 0xf78e93ea in do_futex_wait () from /gnu/store/4aka3nwppxf3z072l6vr8cxv= wj3x5h9s-glibc-2.27/lib/libpthread.so.0 #2 0xf78e95a1 in __new_sem_wait_slow () from /gnu/store/4aka3nwppxf3z072l6= vr8cxvwj3x5h9s-glibc-2.27/lib/libpthread.so.0 #3 0x56ab11c6 in ?? () #4 0x56aab8e0 in ?? () #5 0xf78e035b in start_thread () from /gnu/store/4aka3nwppxf3z072l6vr8cxvw= j3x5h9s-glibc-2.27/lib/libpthread.so.0 #6 0xf77f75d6 in clone () from /gnu/store/4aka3nwppxf3z072l6vr8cxvwj3x5h9s= -glibc-2.27/lib/libc.so.6 Thread 4 (Thread 0xf768bb40 (LWP 18999)): #0 0xf7f0b059 in __kernel_vsyscall () #1 0xf78eaa0b in nanosleep () from /gnu/store/4aka3nwppxf3z072l6vr8cxvwj3x= 5h9s-glibc-2.27/lib/libpthread.so.0 #2 0xf7c04fe3 in g_usleep () from /gnu/store/1k808cq1dwlcjlfqmd4p5rxjpz2vc= kra-glib-2.56.0/lib/libglib-2.0.so.0 #3 0x56ac337e in ?? () #4 0xf78e035b in start_thread () from /gnu/store/4aka3nwppxf3z072l6vr8cxvw= j3x5h9s-glibc-2.27/lib/libpthread.so.0 #5 0xf77f75d6 in clone () from /gnu/store/4aka3nwppxf3z072l6vr8cxvwj3x5h9s= -glibc-2.27/lib/libc.so.6 Thread 3 (Thread 0xf768cbc0 (LWP 18998)): #0 0xf7f0b059 in __kernel_vsyscall () #1 0xf77ed5e4 in ppoll () from /gnu/store/4aka3nwppxf3z072l6vr8cxvwj3x5h9s= -glibc-2.27/lib/libc.so.6 #2 0x56aac405 in ?? () #3 0x56aad608 in ?? () #4 0x56666c2a in ?? () #5 0xf771df75 in __libc_start_main () from /gnu/store/4aka3nwppxf3z072l6vr= 8cxvwj3x5h9s-glibc-2.27/lib/libc.so.6 #6 0x5666deb3 in ?? () Thread 2 (Thread 0xf61fcb40 (LWP 19003)): #0 0xf7f0b059 in __kernel_vsyscall () #1 0xf77ed5e4 in ppoll () from /gnu/store/4aka3nwppxf3z072l6vr8cxvwj3x5h9s= -glibc-2.27/lib/libc.so.6 #2 0x56aac42e in ?? () #3 0x56aae57e in ?? () #4 0x567d041d in ?? () #5 0xf78e035b in start_thread () from /gnu/store/4aka3nwppxf3z072l6vr8cxvw= j3x5h9s-glibc-2.27/lib/libpthread.so.0 #6 0xf77f75d6 in clone () from /gnu/store/4aka3nwppxf3z072l6vr8cxvwj3x5h9s= -glibc-2.27/lib/libc.so.6 Thread 1 (Thread 0xf57ffb40 (LWP 19004)): #0 0x566eb1aa in ?? () #1 0x566eb303 in ?? () #2 0x566c10c7 in ?? () #3 0xf78e035b in start_thread () from /gnu/store/4aka3nwppxf3z072l6vr8cxvw= j3x5h9s-glibc-2.27/lib/libpthread.so.0 #4 0xf77f75d6 in clone () from /gnu/store/4aka3nwppxf3z072l6vr8cxvwj3x5h9s= -glibc-2.27/lib/libc.so.6 --8<---------------cut here---------------end--------------->8--- Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 15 12:45:29 2018 Received: (at 31380) by debbugs.gnu.org; 15 Jun 2018 16:45:29 +0000 Received: from localhost ([127.0.0.1]:50585 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fTrqq-0005MV-Sy for submit@debbugs.gnu.org; Fri, 15 Jun 2018 12:45:29 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54505) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fTrqm-0005MD-QW for 31380@debbugs.gnu.org; Fri, 15 Jun 2018 12:45:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fTrqg-0004QX-KV for 31380@debbugs.gnu.org; Fri, 15 Jun 2018 12:45:19 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50487) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTrqg-0004QS-E2; Fri, 15 Jun 2018 12:45:18 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=35526 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fTrqg-0001EZ-0e; Fri, 15 Jun 2018 12:45:18 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Mark H Weaver Subject: Re: bug#31380: grub fails to build on i686-linux References: <87d0y7grsz.fsf@netris.org> <874li6rq21.fsf@netris.org> <87d0wst84e.fsf@gnu.org> Date: Fri, 15 Jun 2018 18:45:16 +0200 In-Reply-To: <87d0wst84e.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Fri, 15 Jun 2018 16:52:17 +0200") Message-ID: <87in6krobn.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 31380 Cc: 31380@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable ludo@gnu.org (Ludovic Court=C3=A8s) skribis: > I wanted to try =E2=80=98guix system vm-image -s i686-linux=E2=80=99 on m= y x86_64 laptop > to make sure GRUB runs fine. Unfortunately, I stumbled upon another > issue, which is that qemu-system-i386 built for i686-linux segfaults at > startup: I was able to work around it by disabling KVM: --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/build/vm.scm b/gnu/build/vm.scm index 73d0191de..a675111d4 100644 --- a/gnu/build/vm.scm +++ b/gnu/build/vm.scm @@ -104,7 +104,8 @@ the #:references-graphs parameter of 'derivation'." ;; hardware virtualization to still use these commands. KVM support is ;; still buggy on some ARM32 boards. Do not use it even if available. ,@(if (and (file-exists? "/dev/kvm") - (not target-arm32?)) + (not target-arm32?) + (not (string-suffix? "-i386" qemu))) '("-enable-kvm") '()) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable I suspect a KVM bug in Linux 4.17 though, because running the same =E2=80=98qemu-system-i386=E2=80=99 binary under strace works=E2=80=A6 Perh= aps worth applying the patch above in the meantime, WDYT? Anyway, with this patch I successfully run: guix system vm-image gnu/system/examples/bare-bones.tmpl -s i686-linux and confirmed that the resulting image would boot through GRUB. Ludo=E2=80=99. --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 16 04:24:00 2018 Received: (at 31380-done) by debbugs.gnu.org; 16 Jun 2018 08:24:00 +0000 Received: from localhost ([127.0.0.1]:50950 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fU6V6-0005Vh-Bu for submit@debbugs.gnu.org; Sat, 16 Jun 2018 04:24:00 -0400 Received: from world.peace.net ([64.112.178.59]:57268) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fU6V4-0005VS-My for 31380-done@debbugs.gnu.org; Sat, 16 Jun 2018 04:23:59 -0400 Received: from mhw by world.peace.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1fU6Uy-00026w-Px; Sat, 16 Jun 2018 04:23:52 -0400 From: Mark H Weaver To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: bug#31380: grub fails to build on i686-linux References: <87d0y7grsz.fsf@netris.org> <874li6rq21.fsf@netris.org> <87d0wst84e.fsf@gnu.org> Date: Sat, 16 Jun 2018 04:22:35 -0400 In-Reply-To: <87d0wst84e.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Fri, 15 Jun 2018 16:52:17 +0200") Message-ID: <871sd75ees.fsf@netris.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 31380-done Cc: 31380-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Ludovic, ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Mark H Weaver skribis: > >> Here's a proposed patch that I hope will fix the problem, although I'm >> unable to easily test it because I no longer use binary substitutes, and >> I have not yet built the core packages for i686-linux. >> >> However, I've applied this patch to my x86_64 system, and verified that >> it does not cause any problems there. >> >> Would someone be willing to test it and report back? > > I tried it and it initially failed to build with: [...] > I fixed this and pushed as a7c8716928a240ba2c36d360e4ffeb447671fa6b. Thanks very much! Hydra has now successfully built GRUB on i686-linux, so I'm closing this bug. > I wanted to try =E2=80=98guix system vm-image -s i686-linux=E2=80=99 on m= y x86_64 laptop > to make sure GRUB runs fine. Unfortunately, I stumbled upon another > issue, which is that qemu-system-i386 built for i686-linux segfaults at > startup: [...] > I was able to work around it by disabling KVM: >=20 > diff --git a/gnu/build/vm.scm b/gnu/build/vm.scm > index 73d0191de..a675111d4 100644 > --- a/gnu/build/vm.scm > +++ b/gnu/build/vm.scm > @@ -104,7 +104,8 @@ the #:references-graphs parameter of 'derivation'." > ;; hardware virtualization to still use these commands. KVM suppo= rt is > ;; still buggy on some ARM32 boards. Do not use it even if availab= le. > ,@(if (and (file-exists? "/dev/kvm") > - (not target-arm32?)) > + (not target-arm32?) > + (not (string-suffix? "-i386" qemu))) > '("-enable-kvm") > '()) >=20=20 > I suspect a KVM bug in Linux 4.17 though, because running the same > =E2=80=98qemu-system-i386=E2=80=99 binary under strace works=E2=80=A6 Pe= rhaps worth applying > the patch above in the meantime, WDYT? It would be better to auto-detect the presence of KVM support at run time, but that's a wishlist item that deserves its own ticket. This is good enough for now. > Anyway, with this patch I successfully run: > > guix system vm-image gnu/system/examples/bare-bones.tmpl -s i686-linux > > and confirmed that the resulting image would boot through GRUB. Sounds great, thanks again! Mark From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 04 09:25:31 2018 Received: (at 31380) by debbugs.gnu.org; 4 Jul 2018 13:25:31 +0000 Received: from localhost ([127.0.0.1]:46019 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fahmk-0005XD-TA for submit@debbugs.gnu.org; Wed, 04 Jul 2018 09:25:31 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36116) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fahmj-0005X0-L9 for 31380@debbugs.gnu.org; Wed, 04 Jul 2018 09:25:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fahmZ-0003ss-IR for 31380@debbugs.gnu.org; Wed, 04 Jul 2018 09:25:24 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37570) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fahmZ-0003sl-Ep; Wed, 04 Jul 2018 09:25:19 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=36284 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fahmZ-0001xi-1v; Wed, 04 Jul 2018 09:25:19 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Mark H Weaver Subject: Re: bug#31380: grub fails to build on i686-linux References: <87d0y7grsz.fsf@netris.org> <874li6rq21.fsf@netris.org> <87d0wst84e.fsf@gnu.org> <87in6krobn.fsf@gnu.org> Date: Wed, 04 Jul 2018 15:25:17 +0200 In-Reply-To: <87in6krobn.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Fri, 15 Jun 2018 18:45:16 +0200") Message-ID: <87h8lfcev6.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 31380 Cc: 31380@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) ludo@gnu.org (Ludovic Court=C3=A8s) skribis: > ludo@gnu.org (Ludovic Court=C3=A8s) skribis: > >> I wanted to try =E2=80=98guix system vm-image -s i686-linux=E2=80=99 on = my x86_64 laptop >> to make sure GRUB runs fine. Unfortunately, I stumbled upon another >> issue, which is that qemu-system-i386 built for i686-linux segfaults at >> startup: > > I was able to work around it by disabling KVM: I reported the issue upstream: https://lists.gnu.org/archive/html/qemu-devel/2018-07/msg01166.html Ludo=E2=80=99. From unknown Sun Aug 17 22:03:33 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 02 Aug 2018 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator