grub2 boot root-on-zfs errors

2013-10-31 Thread Beeblebrox
I did not have time to play around with trunk/grub for a while so was
not able to follow-up on the discussion. Continuing from last month's
topic:

> Flex version 2.5.4 is less than 2.3.35.
2.5 is > 2.3
The problem was answered by the port maintainer for me:
"FreeBSD includes an older version of Flex in the base system. You
will need that the compilation should use the version installed in
/usr/local/bin instead. Either by putting this directory in your $PATH
earlier than /usr/bin or by specifying the location on the command
line."
Was solved by editing $PATH to look in /usr/local/bin first.

The new problem is that after autogen and configure complete without
errors, gmake fails (gcc version is 4.6):
gcc -DHAVE_CONFIG_H -I.   -Wall -W -I./include -DGRUB_UTIL=1
-DGRUB_LIBDIR=\"/usr/local/lib/grub\"
-DLOCALEDIR=\"/usr/local/share/locale\"
-DGRUB_FILE=\"grub_script.yy.c\" -I. -I. -I. -I. -I./include
-I./include -I./grub-core/lib/libgcrypt-grub/include
-I./grub-core/lib/libgcrypt-grub/src/  -I./grub-core/lib/minilzo
-I./grub-core/lib/xzembed -DMINILZO_HAVE_CONFIG_H
-I/usr/local/include  -Wall -W -Wshadow -Wold-style-definition
-Wpointer-arith -Wundef -Wextra -Wattributes -Wcast-align
-Wchar-subscripts -Wcomment -Wdeprecated-declarations
-Wdisabled-optimization -Wdiv-by-zero -Wendif-labels -Wfloat-equal
-Wformat-extra-args -Wformat-security -Wformat-y2k -Wimplicit
-Wimplicit-function-declaration -Wimplicit-int -Winit-self
-Wint-to-pointer-cast -Winvalid-pch -Wmain -Wmissing-braces
-Wmissing-field-initializers -Wmissing-format-attribute -Wmultichar
-Wnonnull -Woverflow -Wparentheses -Wpointer-arith
-Wpointer-to-int-cast -Wreturn-type -Wsequence-point -Wshadow
-Wsign-compare -Wstrict-aliasing -Wswitch -Wtrigraphs -Wundef
-Wunknown-pragmas -Wunused -Wunused-function -Wunused-label
-Wunused-parameter -Wunused-value  -Wunused-variable -Wvariadic-macros
-Wvolatile-register-var -Wwrite-strings -Wnested-externs
-Wstrict-prototypes -Wpointer-sign -Werror  -fno-builtin -Wno-undef
 -MT libgrubmods_a-grub_script.yy.o -MD -MP -MF
.deps-util/libgrubmods_a-grub_script.yy.Tpo -c -o
libgrubmods_a-grub_script.yy.o `test -f 'grub_script.yy.c' || echo
'./'`grub_script.yy.c
cc1: warnings being treated as errors
grub_script.yy.c: In function 'yy_scan_bytes':
grub_script.yy.c:2298: warning: comparison between signed and unsigned
gmake[2]: *** [libgrubmods_a-grub_script.yy.o] Error 1
gmake[2]: Leaving directory `/asp/git/grub'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/asp/git/grub'
gmake: *** [all] Error 2

Any ideas how to move forward? I assume I'm on the right branch:
bzr info -v .
Standalone tree (format: 2a)
Related branches:   parent branch:
http://bzr.savannah.gnu.org/r/grub/trunk/grub/
Branch history:   5210 revisions   1946 days old
   first revision: Wed 2008-07-02 19:22:35 +
  latest revision: Sat 2013-09-28 03:06:04 +0200
Repository:7726 revisions

___
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel


Re: grub2 boot root-on-zfs errors

2013-10-31 Thread Beeblebrox
switched local repo to git (git://git.savannah.gnu.org/grub.git)

Compile error persists as advised in previous mail

___
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel


Re: [Xen-devel] Grant table version

2013-10-31 Thread Ian Campbell
On Wed, 2013-10-30 at 13:26 +0100, Vladimir 'φ-coder/phcoder' Serbinenko
wrote:

> > From this point of view, the safe course of action is to use whichever
> > type of grants you want, then tear down all the front/back pairs, and
> > reset the version to v1 before handing off.
> > 
> Thank you, that's what I did now.

FWIW I don't think there is any need for pvgrub to be using the sorts of
advanced features enabled by gnttab v2. Even Linux doesn't use most
(any?) of them ;-)

Ian.


___
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel


Re: grub2 boot root-on-zfs errors

2013-10-31 Thread Andrey Borzenkov
В Thu, 31 Oct 2013 12:37:41 +0200
Beeblebrox  пишет:

> I did not have time to play around with trunk/grub for a while so was
> not able to follow-up on the discussion. Continuing from last month's
> topic:
> 
> > Flex version 2.5.4 is less than 2.3.35.
> 2.5 is > 2.3
> The problem was answered by the port maintainer for me:
> "FreeBSD includes an older version of Flex in the base system. You
> will need that the compilation should use the version installed in
> /usr/local/bin instead. Either by putting this directory in your $PATH
> earlier than /usr/bin or by specifying the location on the command
> line."
> Was solved by editing $PATH to look in /usr/local/bin first.
> 
> The new problem is that after autogen and configure complete without
> errors, gmake fails (gcc version is 4.6):
> gcc -DHAVE_CONFIG_H -I.   -Wall -W -I./include -DGRUB_UTIL=1
> -DGRUB_LIBDIR=\"/usr/local/lib/grub\"
> -DLOCALEDIR=\"/usr/local/share/locale\"
> -DGRUB_FILE=\"grub_script.yy.c\" -I. -I. -I. -I. -I./include
> -I./include -I./grub-core/lib/libgcrypt-grub/include
> -I./grub-core/lib/libgcrypt-grub/src/  -I./grub-core/lib/minilzo
> -I./grub-core/lib/xzembed -DMINILZO_HAVE_CONFIG_H
> -I/usr/local/include  -Wall -W -Wshadow -Wold-style-definition
> -Wpointer-arith -Wundef -Wextra -Wattributes -Wcast-align
> -Wchar-subscripts -Wcomment -Wdeprecated-declarations
> -Wdisabled-optimization -Wdiv-by-zero -Wendif-labels -Wfloat-equal
> -Wformat-extra-args -Wformat-security -Wformat-y2k -Wimplicit
> -Wimplicit-function-declaration -Wimplicit-int -Winit-self
> -Wint-to-pointer-cast -Winvalid-pch -Wmain -Wmissing-braces
> -Wmissing-field-initializers -Wmissing-format-attribute -Wmultichar
> -Wnonnull -Woverflow -Wparentheses -Wpointer-arith
> -Wpointer-to-int-cast -Wreturn-type -Wsequence-point -Wshadow
> -Wsign-compare -Wstrict-aliasing -Wswitch -Wtrigraphs -Wundef
> -Wunknown-pragmas -Wunused -Wunused-function -Wunused-label
> -Wunused-parameter -Wunused-value  -Wunused-variable -Wvariadic-macros
> -Wvolatile-register-var -Wwrite-strings -Wnested-externs
> -Wstrict-prototypes -Wpointer-sign -Werror  -fno-builtin -Wno-undef
>  -MT libgrubmods_a-grub_script.yy.o -MD -MP -MF
> .deps-util/libgrubmods_a-grub_script.yy.Tpo -c -o
> libgrubmods_a-grub_script.yy.o `test -f 'grub_script.yy.c' || echo
> './'`grub_script.yy.c
> cc1: warnings being treated as errors
> grub_script.yy.c: In function 'yy_scan_bytes':
> grub_script.yy.c:2298: warning: comparison between signed and unsigned

What are sizes of size_t and int on your platform?

> gmake[2]: *** [libgrubmods_a-grub_script.yy.o] Error 1
> gmake[2]: Leaving directory `/asp/git/grub'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory `/asp/git/grub'
> gmake: *** [all] Error 2
> 
> Any ideas how to move forward? I assume I'm on the right branch:
> bzr info -v .
> Standalone tree (format: 2a)
> Related branches:   parent branch:
> http://bzr.savannah.gnu.org/r/grub/trunk/grub/
> Branch history:   5210 revisions   1946 days old
>first revision: Wed 2008-07-02 19:22:35 +
>   latest revision: Sat 2013-09-28 03:06:04 +0200
> Repository:7726 revisions
> 
> ___
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel


___
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel


Re: grub2 boot root-on-zfs errors

2013-10-31 Thread Beeblebrox
> What are sizes of size_t and int on your platform?

My system is amd4 running FreeBSD-9.2
If you require more information please instruct code to run from CLI for that.

___
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel


Re: grub2 boot root-on-zfs errors

2013-10-31 Thread Andrey Borzenkov
В Thu, 31 Oct 2013 12:37:41 +0200
Beeblebrox  пишет:

> I did not have time to play around with trunk/grub for a while so was
> not able to follow-up on the discussion. Continuing from last month's
> topic:
> 
> > Flex version 2.5.4 is less than 2.3.35.
> 2.5 is > 2.3

Yes, my apologies.

> cc1: warnings being treated as errors
> grub_script.yy.c: In function 'yy_scan_bytes':
> grub_script.yy.c:2298: warning: comparison between signed and unsigned


It is a flex bug which is hidden on platforms where sizeof(size_t) >
sizeof(int).

http://sourceforge.net/p/flex/bugs/140/

___
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel


Re: grub2 boot root-on-zfs errors

2013-10-31 Thread Beeblebrox
>> cc1: warnings being treated as errors
>> grub_script.yy.c: In function 'yy_scan_bytes':
>> grub_script.yy.c:2298: warning: comparison between signed and unsigned
>
> It is a flex bug which is hidden on platforms where sizeof(size_t) >
> sizeof(int).

Nothing I can do about flex, so then I just wait for the fix? Then
grub-on-zfs-amd64 also waits for upstream. Whatever you suggest...

___
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel


Re: grub2 boot root-on-zfs errors

2013-10-31 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 31.10.2013 11:37, Beeblebrox wrote:
> cc1: warnings being treated as errors
> grub_script.yy.c: In function 'yy_scan_bytes':
> grub_script.yy.c:2298: warning: comparison between signed and unsigned
> gmake[2]: *** [libgrubmods_a-grub_script.yy.o] Error 1
Buggy flex needs --disable-werror.



signature.asc
Description: OpenPGP digital signature
___
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel