Received: from list by lists.gnu.org with archive (Exim 4.71) id 1hExkA-0004dv-Jr for mharc-grub-devel@gnu.org; Fri, 12 Apr 2019 11:05:30 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57711) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hExk5-0004dh-MW for grub-devel@gnu.org; Fri, 12 Apr 2019 11:05:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hExk1-0006gd-Ha for grub-devel@gnu.org; Fri, 12 Apr 2019 11:05:25 -0400 Received: from mail-ed1-x542.google.com ([2a00:1450:4864:20::542]:39770) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hExk1-0006YP-3h for grub-devel@gnu.org; Fri, 12 Apr 2019 11:05:21 -0400 Received: by mail-ed1-x542.google.com with SMTP id k45so8620345edb.6 for ; Fri, 12 Apr 2019 08:05:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=aYjXiQ5QUpv5qptKVCnlaGDAGOQcCHwwNSmStQAYj0s=; b=VdCa+AJcpmpd5VPylFtTWHGsvULWfVxs3tjuDhqmPWlGCOJ9pskrmu3LZEHEpZ0Kl3 pUKBCOkk84nnJdDmDCKglmkKqZ4p383shKF+4OiOpSFikLBpPRXsGgZe470FgiSr3/fm uVxTjJ1+C30gpmoTluEa2gpRj4Sjd1hWU3SP45Pr1PIrwvRbEIkRFN562wadd61ymioG 56m1nT0Fs3hLlFf54uMzKashbL+KHJWlsdtekCXJuVOSY0elF6S9vx27x/IUsIfoLYKK 0Jj8cFhS/FBLaNEq90AyzMET12HG3UQ4PMDEPYtZJuPHyU1Lk3vFj51dCZ4TVc4SGz09 3f8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=aYjXiQ5QUpv5qptKVCnlaGDAGOQcCHwwNSmStQAYj0s=; b=OPiv8CuZG9+Pzc3m8mxN9ZpvGc/CRpBQlkCvL33Gz4InlwAj/LocYmXV1+PBj6I7M2 SeuVJnHOSJIo9BJM6IZ1pF4fDkjEOrdOLCjIs/0YXcIDu6lwuZx55WYHuggh1rpILJCW q6q72XzbcHpjdsQyDhiwU0pCtlrfF+9nFWG79RxloBoxpc1faznCYp+c7ZEkf0YVd3SZ pByh5I9yOPbZbqTuQMLv/Pm8jeW4Kfpgw+0NcTzISiLi9M3va8xPbytcN8fiMzUJT2jH 1+ofcPbmjGqHsJ7Mz8Nyww9Cmqr/TTkPvnZs/ndMRwW0m8sKFiIQUZqE5HzaA7fNImdE 0TEA== X-Gm-Message-State: APjAAAVYkY1vZrgfEYEdW4daaupwtAwXxJbE2DCRiiSTYRfB2uh5ZT+2 l/IwkuWtmPyWVbqViTeWfnG0J87D X-Google-Smtp-Source: APXvYqxYiphY8qnKROOeyoNfEYBxKVOwd+UPLiqSymZbNHn5FP5O+v1pzWBbKwkbUuhND8Jyj90xLA== X-Received: by 2002:a17:906:1146:: with SMTP id i6mr31945864eja.21.1555081510811; Fri, 12 Apr 2019 08:05:10 -0700 (PDT) Received: from [192.168.1.11] (112.red-81-47-147.staticip.rima-tde.net. [81.47.147.112]) by smtp.googlemail.com with ESMTPSA id y12sm7618284eju.43.2019.04.12.08.05.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Apr 2019 08:05:09 -0700 (PDT) Subject: Re: GRUB 2.04 RC01 does not build on Debian Jessie To: adrian15 , The development of GRUB 2 References: From: =?UTF-8?B?SmVzw7pzIERpw6lndWV6IEZlcm7DoW5kZXo=?= Openpgp: id=25B5907521F72F0D2A85805AF2B86990C97D83AE; url=http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xF2B86990C97D83AE Autocrypt: addr=jesusdf@gmail.com; prefer-encrypt=mutual; keydata= mQENBE0EQN4BCADJd9SXqsXllmTx1IIMLUTnSoMAjNzD3JTakEwkDRO2mena5MQMYosSS/lv XFtlY+16IxPOP4rTIIvInqE9D7mwWvXsuqlR8GBUH7y0wssdCmm1STAQicVSfa8hW2Gi4vrk zH3aAWdguLZeuQwtITvpGHcZOcfOsmu5KesH4nHpgUmfrSY+5ZrKLeHIwOxH0K4vAX9Cu5+B RO/2PBMvuB50cCXKMrUtOrn7UitZ8UIlgVWFolRnMoZwoMTsaDR/59nYwCUZcR5U5EwcLTrx nGT23g8kAt+keCkQLyz23LpXoBLFv4umB0+ZUki18Nv5kdBxfAOiDUBSM/jj/8P8jViPABEB AAG0Lkplc8O6cyBEacOpZ3VleiBGZXJuw6FuZGV6IDxqZXN1c2RmQGdtYWlsLmNvbT6JATgE EwECACIFAk0EQN4CGwMGCwkIBwMCBhUIAgkKCwQWAgMBAh4BAheAAAoJEPK4aZDJfYOuAucI ALN5iJnjNvRUsRLmCghisiLPbM8C2X0ctqr+fKYmN6tSZ7YKIe4dmuqnVS6PGPm2wAaW+X9E 3C/cg/ShSe9s55+v018Fq1UUXKPd6MM1CRohr5BR8YtA2uRC5hY0DpANdDop1hAM0DOb1M46 I1c/9P5NLA/mQinFikdPglzID1p2UgzoXeCNaYQuUBcOY8nXsfZM2IMtZPzXj6QT7Hpqh1qe Jw/ujucayQ5uo2ZQH2BfLhDCDG7S9YhKiy9S8CcSmgXb4a+V7r5U4kJIeu16ioKr7wMy1bjE bmN6YAEJcsddaQgH3qLi42tS2c7oIxrCPM22aqkuuOYEWjT4UPHQ3f+5AQ0ETQRA3gEIAMm6 gXWdJN8oQvYB5qxQdzXb+ph5JTzL+URMVuGJyePHIoxpy+saYlx05pPxtWmVtqTzHhahqgDw E5c8XpaY/LjJ/q3LHkUofwF1DhxbkuHYKTbIiVTXKQRiVS596N+CTECjF1WDBAtfO+AGOp98 tpPtHa5oeBuhS8X7va3qOhTIz7NXp9cM9gfZAH1y9gspxZxikVOgOHQQK3t9F34mdmfIQZj0 D3rWwCQW6kJzy0YSsB2w/ewYb1d3fS5QMZsfoVCrcN/Q3CcTR8dRtc41zDUv5zyherrCCWSk c3ghUWt6QEF4gCNJvOf22gBQBYJI/BCrLaVZuhczU2w9qAZnwdkAEQEAAYkBHwQYAQIACQUC TQRA3gIbDAAKCRDyuGmQyX2DrjRzB/0RTqLR6P+J+znCWrG+zTx/voXgUfenB1JF/lt8wDHw 9eSgmh+bvS+I6cGF0FLz9j+zpRggDGSKWuVrDZ8FsfsrMy0V6HfRJlkNtR1DpuRvM8mnTK8o or7yrwkGeGJ7IhhYMPCEPGOrWbQwiSuHUoO1B0GKMT0gqkFoCEnjp9RKwbORMdw3ya6l6SMK xKromJkKLYfwlt0Ju77k0n1CEv6b+VSHjPlctZLqu1eUyDKsewXb/K7/VyAePzg8elWCt6qK RtOfPf+43ULVI5r5uKOxDcH/nmSMJW86Jqtn6Vlyt1/YnKQQHGeed6io8XuLpl864dzTpReX 8XRRy5VFKUa8 Message-ID: Date: Fri, 12 Apr 2019 17:05:08 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::542 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Apr 2019 15:05:29 -0000 Hi Adrian, you are correct, a patch fixing this issue was pending revision: https://lists.gnu.org/archive/html/grub-devel/2019-03/msg00113.html https://lists.gnu.org/archive/html/grub-devel/2019-03/msg00154.html Daniel sent today a patch that fixes this. Sorry for the inconveniences, Jesus El 12/4/19 a las 7:37, adrian15 escribió: > I was able to build 2.02 back in the day in my Debian Jessie chroot. > Now I am unable to build 2.04 RC01. > > So basically what I do is: > > git clone git://git.savannah.gnu.org/grub.git mydir > cd mydir > > git reset --hard > git clean -f -d > git clean -f -x -d > # Checkout master so that we can pull last version > git checkout master > # Pull last version just in case we are requesting a new commit > # not found or our local copy of git > git pull > # Finally checkout the requested commit > git checkout "grub-2.04-rc1" > # prepare the locales > > ./linguas.sh > > ./bootstrap > > ./configure \ > --enable-grub-mkfont \ > --with-platform="pc" \ > --target="i386-pe" \ > --prefix \ > "/path/to/sg2d_grub_installations/hybrid/" > > > make > > > make is the step that fails with this error: > > > gcc -Os -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 -m32 > -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-stack-protector > -Wtrampolines -Werror -ffreestanding -m32 -Wl,-melf_i386 > -Wl,--build-id=none -nostdlib -Wl,-N -Wl,-r,-d -o file.module > commands/file_module-file.o commands/file_module-file32.o > commands/file_module-file64.o loader/i386/file_module-xen_file.o > loader/i386/file_module-xen_file32.o loader/i386/file_module-xen_file64.o > gcc -DHAVE_CONFIG_H -I. -I.. -Wall -W -DGRUB_MACHINE_PCBIOS=1 > -DGRUB_MACHINE=I386_PC -m32 -nostdinc -isystem > /usr/lib/gcc/i586-linux-gnu/4.9/include -I../include -I../include > -DGRUB_FILE=\"commands/i386/rdmsr.c\" -I. -I. -I.. -I.. -I../include > -I../include -I../grub-core/lib/libgcrypt-grub/src/ > -D_FILE_OFFSET_BITS=64 -Os -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 -m32 > -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-stack-protector > -Wtrampolines -Werror -ffreestanding -MT > commands/i386/rdmsr_module-rdmsr.o -MD -MP -MF > commands/i386/.deps-core/rdmsr_module-rdmsr.Tpo -c -o > commands/i386/rdmsr_module-rdmsr.o `test -f 'commands/i386/rdmsr.c' || > echo './'`commands/i386/rdmsr.c > In file included from commands/i386/rdmsr.c:29:0: > ../include/grub/i386/rdmsr.h:27:29: error: no previous declaration for > ‘grub_msr_read’ [-Werror=missing-declarations] > extern inline grub_uint64_t grub_msr_read (grub_uint32_t msr_id) > ^ > cc1: all warnings being treated as errors > Makefile:39757: recipe for target 'commands/i386/rdmsr_module-rdmsr.o' > failed > make[3]: *** [commands/i386/rdmsr_module-rdmsr.o] Error 1 > make[3]: Leaving directory > '/home/rescatuxs/gnu/sgd/git/supergrub2/sg2d_grub_builds/hybrid_i386_pc/grub-core' > Makefile:26391: recipe for target 'all' failed > make[2]: *** [all] Error 2 > make[2]: Leaving directory > '/home/rescatuxs/gnu/sgd/git/supergrub2/sg2d_grub_builds/hybrid_i386_pc/grub-core' > Makefile:11293: recipe for target 'all-recursive' failed > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory > '/home/rescatuxs/gnu/sgd/git/supergrub2/sg2d_grub_builds/hybrid_i386_pc' > Makefile:3332: recipe for target 'all' failed > make: *** [all] Error 2 > > > Any help or tip is appreciated. > I suspect I might be missing some dependencies that were not needed for > 2.02 but now are needed for 2.04 but I'm not sure. > So, thank you again. > > > Note: I know I should probably need to use a more recent distribution > suchs as Debian 9 (stretch) but I think it's better to report the > hipothetic bug here, you know, just in case. > > Note: A quick search finds Jesús Diéguez as the one who added those msr > modules on February/March 2019 which their build seems to fail. I CC him > too. > > adrian15 >