All of lore.kernel.org
 help / color / mirror / Atom feed
* GRUB 2.04 RC01 does not build on Debian Jessie
@ 2019-04-12  5:37 adrian15
  2019-04-12  5:52 ` Christian Hesse
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: adrian15 @ 2019-04-12  5:37 UTC (permalink / raw)
  To: The development of GRUB 2; +Cc: Jesús Diéguez Fernández

  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/


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: GRUB 2.04 RC01 does not build on Debian Jessie
  2019-04-12  5:37 GRUB 2.04 RC01 does not build on Debian Jessie adrian15
@ 2019-04-12  5:52 ` Christian Hesse
  2019-04-12  6:35   ` adrian15
  2019-04-12  7:33 ` John Paul Adrian Glaubitz
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 6+ messages in thread
From: Christian Hesse @ 2019-04-12  5:52 UTC (permalink / raw)
  To: adrian15
  Cc: The development of GNU GRUB,
	Jesús Diéguez Fernández

[-- Attachment #1: Type: text/plain, Size: 397 bytes --]

adrian15 <adrian15sgd@gmail.com> on Fri, 2019/04/12 07:37:
>  --target="i386-pe" \

No idea if it make a difference, but I guess this should read "i386-pc"?
-- 
main(a){char*c=/*    Schoene Gruesse                         */"B?IJj;MEH"
"CX:;",b;for(a/*    Best regards             my address:    */=0;b=c[a++];)
putchar(b-1/(/*    Chris            cc -ox -xc - && ./x    */b/42*2-3)*42);}

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: GRUB 2.04 RC01 does not build on Debian Jessie
  2019-04-12  5:52 ` Christian Hesse
@ 2019-04-12  6:35   ` adrian15
  0 siblings, 0 replies; 6+ messages in thread
From: adrian15 @ 2019-04-12  6:35 UTC (permalink / raw)
  To: Christian Hesse
  Cc: The development of GNU GRUB,
	Jesús Diéguez Fernández

El 12/04/19 a las 07:52, Christian Hesse escribió:
> adrian15 <adrian15sgd@gmail.com> on Fri, 2019/04/12 07:37:
>>  --target="i386-pe" \
> 
> No idea if it make a difference, but I guess this should read "i386-pc"?
I am building like this since 2017 and I had no problem.
Is i386-pe no longer an accepted target when using 2.04rc1 ?

Here you can find the different target and platforms that I try to
build:
https://github.com/supergrub/supergrub/blob/grub2.04/grub-build-003-build-all#L83
.

I only reported here the "i386-pe target + pc platform" combination just
to keep things simple.

Everyone of my other target/platform combinations fail at the 'make'
stage too.


adrian15
-- 
Support free software. Donate to Super Grub Disk. Apoya el software
libre. Dona a Super Grub Disk. http://www.supergrubdisk.org/donate/


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: GRUB 2.04 RC01 does not build on Debian Jessie
  2019-04-12  5:37 GRUB 2.04 RC01 does not build on Debian Jessie adrian15
  2019-04-12  5:52 ` Christian Hesse
@ 2019-04-12  7:33 ` John Paul Adrian Glaubitz
  2019-04-12 10:41 ` Daniel Kiper
  2019-04-12 15:05 ` Jesús Diéguez Fernández
  3 siblings, 0 replies; 6+ messages in thread
From: John Paul Adrian Glaubitz @ 2019-04-12  7:33 UTC (permalink / raw)
  To: The development of GNU GRUB, adrian15
  Cc: Jesús Diéguez Fernández

On 4/12/19 7:37 AM, adrian15 wrote:
> ./configure \
>  --enable-grub-mkfont \
>  --with-platform="pc" \
>  --target="i386-pe" \
>  --prefix \
>  "/path/to/sg2d_grub_installations/hybrid/"
Try passing "--disable-werror" here.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz@debian.org
`. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: GRUB 2.04 RC01 does not build on Debian Jessie
  2019-04-12  5:37 GRUB 2.04 RC01 does not build on Debian Jessie adrian15
  2019-04-12  5:52 ` Christian Hesse
  2019-04-12  7:33 ` John Paul Adrian Glaubitz
@ 2019-04-12 10:41 ` Daniel Kiper
  2019-04-12 15:05 ` Jesús Diéguez Fernández
  3 siblings, 0 replies; 6+ messages in thread
From: Daniel Kiper @ 2019-04-12 10:41 UTC (permalink / raw)
  To: adrian15
  Cc: The development of GRUB 2, Jesús Diéguez Fernández

On Fri, Apr 12, 2019 at 07:37:47AM +0200, adrian15 wrote:
>   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.

This is know issue. I will post a fix for it today.

Thank you for report.

Daniel


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: GRUB 2.04 RC01 does not build on Debian Jessie
  2019-04-12  5:37 GRUB 2.04 RC01 does not build on Debian Jessie adrian15
                   ` (2 preceding siblings ...)
  2019-04-12 10:41 ` Daniel Kiper
@ 2019-04-12 15:05 ` Jesús Diéguez Fernández
  3 siblings, 0 replies; 6+ messages in thread
From: Jesús Diéguez Fernández @ 2019-04-12 15:05 UTC (permalink / raw)
  To: adrian15, The development of GRUB 2

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
> 


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-04-12 15:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-12  5:37 GRUB 2.04 RC01 does not build on Debian Jessie adrian15
2019-04-12  5:52 ` Christian Hesse
2019-04-12  6:35   ` adrian15
2019-04-12  7:33 ` John Paul Adrian Glaubitz
2019-04-12 10:41 ` Daniel Kiper
2019-04-12 15:05 ` Jesús Diéguez Fernández

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.