From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1ligR0-0007J6-QO for mharc-grub-devel@gnu.org; Mon, 17 May 2021 12:49:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39626) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ligQx-0007EL-So for grub-devel@gnu.org; Mon, 17 May 2021 12:49:35 -0400 Received: from dibed.net-space.pl ([84.10.22.86]:44010) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_3DES_EDE_CBC_SHA1:192) (Exim 4.90_1) (envelope-from ) id 1ligQu-0004iG-G1; Mon, 17 May 2021 12:49:35 -0400 Received: from router-fw.i.net-space.pl ([192.168.52.1]:51200 "EHLO tomti.i.net-space.pl") by router-fw-old.i.net-space.pl with ESMTP id S2100187AbhEQQt1 convert rfc822-to-8bit (ORCPT + 1 other); Mon, 17 May 2021 18:49:27 +0200 X-Comment: RFC 2476 MSA function at dibed.net-space.pl logged sender identity as: dkiper Date: Mon, 17 May 2021 18:49:23 +0200 From: Daniel Kiper To: Jan Nieuwenhuizen Cc: "Mikhail B. WproxyM" , grub-devel@gnu.org Subject: Re: boot/grub2: grub-core-build-fixes-for-i386 (grub-2.04 + binutils-2.35.2 + pseudo-op .code64) Message-ID: <20210517164923.6vhjpgp4o5g3offq@tomti.i.net-space.pl> References: <20210505163302.hkkti2ewr3iebht6@tomti.i.net-space.pl> <87eeeaor9u.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 8BIT In-Reply-To: <87eeeaor9u.fsf@gnu.org> User-Agent: NeoMutt/20170113 (1.7.2) Received-SPF: pass client-ip=84.10.22.86; envelope-from=dkiper@net-space.pl; helo=dibed.net-space.pl X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 May 2021 16:49:36 -0000 Hi Jan, On Thu, May 13, 2021 at 12:35:25PM +0200, Jan Nieuwenhuizen wrote: > Daniel Kiper writes: > > Hello Daniel, > > > May I ask you to try latest GRUB master git branch [1]? The GRUB 2.04 > > release is a few years old. We are going to release 2.06 soon. > > Sure. The bug is still there (see attached patch to reproduce using > Guix): > > --8<---------------cut here---------------start------------->8--- > $ ./pre-inst-env guix build --system=i686-linux --target=i586-pc-gnu grub > starting phase `unpack' > grub-2.06~rc1/ > [..] > starting phase `configure' > source directory: "/tmp/guix-build-grub-2.06-rc1.drv-0/grub-2.06~rc1" (relative from build: ".") > build directory: "/tmp/guix-build-grub-2.06-rc1.drv-0/grub-2.06~rc1" > configure flags: ("CC_FOR_BUILD=gcc" "CONFIG_SHELL=/gnu/store/v1g7f3p4f0851mywrla8qmr9hb8jgfjr-bash-minimal-5.0.16/bin/bash" "SHELL=/gnu/store/v1g7f3p4f0851mywrla8qmr9hb8jgfjr-bash-minimal-5.0.16/bin/bash" "--prefix=/gnu/store/753q8z0xa9ijap3p3phpsvns7287c7sn-grub-2.06-rc1" "--enable-fast-install" "--build=i686-unknown-linux-gnu" "--host=i586-pc-gnu" "PYTHON=true") > [..] > starting phase `build' > [..] > i586-pc-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -Wall -W -DGRUB_MACHINE_PCBIOS=1 -DGRUB_MACHINE=I386_PC -m32 -nostdinc -isystem /gnu/store/q8af3pvwsknn132pl1nzrb5281i4pgij-gcc-cross-i586-pc-gnu-7.5.0-lib/lib/gcc/i586-pc-gnu/7.5.0/include -I../include -I../include -DGRUB_FILE=\"lib/i386/relocator.c\" -I. -I. -I.. -I.. -I../include -I../include -I../grub-core/lib/libgcrypt-grub/src/ -D_FILE_OFFSET_BITS=64 -std=gnu99 -Os -m32 -Wall -W -Wshadow -Wpointer-arith -Wundef -Wchar-subscripts -Wcomment -Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by-zero -Wfloat-equal -Wformat-extra-args -Wformat-security -Wformat-y2k -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Wmain -Wmissing-braces -Wmissing-format-attribute -Wmultichar -Wparentheses -Wreturn-type -Wsequence-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 -Wattributes -Wendif-labels -Winit-self -Wint-to-pointer-cast -Winvalid-pch -Wmissing-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=2 -march=i386 -mrtd -mregparm=3 -falign-jumps=1 -falign-loops=1 -falign-functions=1 -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-unwind-tables -fno-unwind-tables -fno-ident -fno-stack-protector -Wtrampolines -Werror -ffreestanding -MT lib/i386/relocator_module-relocator.o -MD -MP -MF lib/i386/.deps-core/relocator_module-relocator.Tpo -c -o lib/i386/relocator_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:98: Error: bad register name `%rax' > lib/i386/relocator64.S:132: Error: bad register name `%rip)' > --8<---------------cut here---------------end--------------->8--- [...] > > A patch should be prepared on top of latest GRUB master git branch [1]. > > Sure, but well.. > > https://lists.gnu.org/archive/html/bug-grub/2020-06/msg00013.html > > it was when I sent the report ;) Sorry, I missed it... > Luckily it still applied cleanly to current master. Great! > > And please use "git-send-email" to send the patch as Adrian said... > > Sure, sent separately to bug-grub. I cannot find your updated patch. May I ask you to send it using "git-send-email" to grub-devel@gnu.org? Daniel