Received: from list by lists.gnu.org with archive (Exim 4.71) id 1hEost-0000BH-VJ for mharc-grub-devel@gnu.org; Fri, 12 Apr 2019 01:37:55 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42933) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hEosr-0000BA-ON for grub-devel@gnu.org; Fri, 12 Apr 2019 01:37:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hEosq-00087K-AA for grub-devel@gnu.org; Fri, 12 Apr 2019 01:37:53 -0400 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]:51258) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hEosq-00086e-12 for grub-devel@gnu.org; Fri, 12 Apr 2019 01:37:52 -0400 Received: by mail-wm1-x32c.google.com with SMTP id 4so9561664wmf.1 for ; Thu, 11 Apr 2019 22:37:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:cc:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=TziMPVJTCyki62sqp4SPUo1kJKJYP8lY91dBfQV+m6U=; b=NzynX4vSa4Pr5QlJAVnIKpzNfMcipp2tbTDvRV2cv6sWX7BZYhXb0Bi2rZHv1ong+k VcNIC+1P2t0vsicFvFjVRlIJ9StJQVmeE0HOOFSCPSuQtgtOi6BrcC7kozy7xbB9z788 O+WvVA0fHG3+x/5BZIBHx804CNS3H12kNuB+A02142wwE1I0D5ttacc+1YQzSB0shVH3 O5L8Q3hzxV92OuY+PeKNRZZmndL/bUw9qJvoBtjsF6cIDKbpzJi/XeoS52M5Q7Isu5ep Yaxn/MZuUnMyobdJSHv0k1Lh0akEQZMgpiX5gc/2eNfYe059eqrGQE6sehw+ZCYM5IZI 3eLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:cc:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=TziMPVJTCyki62sqp4SPUo1kJKJYP8lY91dBfQV+m6U=; b=jFvSx08ogxAZzavLaR2ZeOdZi+VPzMfLoZYvlMRlHYXXB1pdHQb5mh8a92Q9NWkB/7 7iPwhuJX+TiZ9C0eCanVczB3mEAtHz6IBy9MpfEfUFS/1qxFprnBWdOL1MS0oanguyIj B8D5GZhlXdx0x9QbxpipP5f5K3t30lvOi9e8m87XsweAjPz6ewTdz8/HU1NfmjlZHKXq sZBRV1K6wKNUcAuUy7ksxIRt7UypwnsVRsOEf+mD2Wh9b4XNat6Nejtjt+ZctZFm+itT cYrmzV0K4vuGwUzYx3WWZE7vFvOjIQogos6t3I/w7d0xzIp7e7ludmbwT1pcEuDXjtDd QolQ== X-Gm-Message-State: APjAAAXqGlAlJwqkCMGNPgw3FJbyXpKRKg/ffxldPt2NjyqeaDaRYRS4 cqOcaKfNqabMpMHyOqdfJYg= X-Google-Smtp-Source: APXvYqwrrkSSqfFplrpGdFr7GOGe0hh6i1+qLtj1JUWn3HOi3cUn8hytmoV+I+FF81FAWHPb9X2uvw== X-Received: by 2002:a1c:5459:: with SMTP id p25mr9126850wmi.20.1555047469847; Thu, 11 Apr 2019 22:37:49 -0700 (PDT) Received: from [192.168.1.131] ([82.213.221.79]) by smtp.gmail.com with ESMTPSA id y17sm7462366wma.8.2019.04.11.22.37.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Apr 2019 22:37:48 -0700 (PDT) To: The development of GRUB 2 From: adrian15 Subject: GRUB 2.04 RC01 does not build on Debian Jessie Cc: =?UTF-8?B?SmVzw7pzIERpw6lndWV6IEZlcm7DoW5kZXo=?= Message-ID: Date: Fri, 12 Apr 2019 07:37:47 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: es 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::32c 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 05:37:55 -0000 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 -- Support free software. Donate to Super Grub Disk. Apoya el software libre. Dona a Super Grub Disk. http://www.supergrubdisk.org/donate/