[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: grub/head build with pre-release GCC10 ; fail @ "grub-core/disk/mdra
From: |
PGNet Dev |
Subject: |
Re: grub/head build with pre-release GCC10 ; fail @ "grub-core/disk/mdraid1x_linux.c:181:15: error: ..." |
Date: |
Tue, 24 Mar 2020 10:04:50 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 |
my bad re: patch. pebkac (looking UP might help :-/ )
with
diff -ur grub.ORIG/grub-core/disk/mdraid1x_linux.c
grub/grub-core/disk/mdraid1x_linux.c
--- grub.ORIG/grub-core/disk/mdraid1x_linux.c 2020-03-24
09:24:08.656640265 -0700
+++ grub/grub-core/disk/mdraid1x_linux.c 2020-03-24
09:58:27.638619782 -0700
@@ -179,7 +179,8 @@
if (grub_disk_read (disk, sector,
(char *) &sb.dev_roles[grub_le_to_cpu32
(sb.dev_number)]
- - (char *) &sb,
+ ((char *) &sb.dev_roles - (char *) sb)
+ + grub_le_to_cpu32 (sb.dev_number) *
sizeof(grub_uint16_t),
sizeof (role), &role))
return NULL;
gcc10 build returns,
...
make
...
grub-core/disk/mdraid1x_linux.c: In function
‘grub_mdraid_detect’:
grub-core/disk/mdraid1x_linux.c:182:6: error: cannot convert to
a pointer type
182 | ((char *) &sb.dev_roles - (char *) sb)
| ^
grub-core/disk/mdraid1x_linux.c:181:16: error: called object is
not a function or function pointer
181 | (char *) &sb.dev_roles[grub_le_to_cpu32
(sb.dev_number)]
| ^~
make[2]: *** [Makefile:7059:
grub-core/disk/libgrubmods_a-mdraid1x_linux.o] Error 1
make[2]: Leaving directory '/usr/local/src/grub'
make[1]: *** [Makefile:11920: all-recursive] Error 1
make[1]: Leaving directory '/usr/local/src/grub'
make: *** [Makefile:3772: all] Error 2
- grub/head build with pre-release GCC10 ; fail @ "grub-core/disk/mdraid1x_linux.c:181:15: error: ...", PGNet Dev, 2020/03/24
- Re: grub/head build with pre-release GCC10 ; fail @ "grub-core/disk/mdraid1x_linux.c:181:15: error: ...", Paul Menzel, 2020/03/24
- Re: grub/head build with pre-release GCC10 ; fail @ "grub-core/disk/mdraid1x_linux.c:181:15: error: ...", PGNet Dev, 2020/03/24
- Re: disk/mdraid1x_linux.c:181:15: warning: array subscript ..., PGNet Dev, 2020/03/25
- Re: disk/mdraid1x_linux.c:181:15: warning: array subscript ..., Paul Menzel, 2020/03/25
- Re: disk/mdraid1x_linux.c:181:15: warning: array subscript ..., PGNet Dev, 2020/03/25
- Re: disk/mdraid1x_linux.c:181:15: warning: array subscript ..., Paul Menzel, 2020/03/25
- Re: disk/mdraid1x_linux.c:181:15: warning: array subscript ..., Michael Chang, 2020/03/25
- Re: disk/mdraid1x_linux.c:181:15: warning: array subscript ..., PGNet Dev, 2020/03/26