[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] Xen make grub error



Hi,

 

When we make grub with xen, we met below error, do you have any advice?

 

cd grub

./autogen.sh

./configure --target=amd64 --with-platform=xen --prefix=${PWD}/../pvgrub2

make

 

………

loader/i386/xen.c: In function ‘grub_cmd_xen’:

loader/i386/xen.c:650:10: error: too few arguments to function ‘grub_create_loader_cmdline’

          sizeof (xen_state.next_start.cmd_line) - 1);

          ^

In file included from loader/i386/xen.c:38:0:

../include/grub/lib/cmdline.h:29:12: note: declared here

grub_err_t grub_create_loader_cmdline (int argc, char *argv[], char *buf,

            ^

loader/i386/xen.c:651:3: error: pointer targets in passing argument 1 of ‘grub_verify_string’ differ in signedness [-Werror=pointer-sign]

   err = grub_verify_string (xen_state.next_start.cmd_line, GRUB_VERIFY_MODULE_CMDLINE);

   ^

In file included from ../include/grub/lib/cmdline.h:24:0,

                 from loader/i386/xen.c:38:

../include/grub/verify.h:81:1: note: expected ‘char *’ but argument is of type ‘int8_t *’

grub_verify_string (char *str, enum grub_verify_string_type type);

^

loader/i386/xen.c: In function ‘grub_cmd_module’:

loader/i386/xen.c:914:10: error: too few arguments to function ‘grub_create_loader_cmdline’

          get_virtual_current_address (ch), cmdline_len);

          ^

In file included from loader/i386/xen.c:38:0:

../include/grub/lib/cmdline.h:29:12: note: declared here

grub_err_t grub_create_loader_cmdline (int argc, char *argv[], char *buf,

            ^

cc1: all warnings being treated as errors

make[3]: *** [loader/i386/linux_module-xen.o] Error 1

make[3]: Leaving directory `/home/build/xen_build/nightly/xen_dom0/xen-master-20181120091929-6d8ffac1/grub/grub-core'

make[2]: *** [all] Error 2

make[2]: Leaving directory `/home/build/xen_build/nightly/xen_dom0/xen-master-20181120091929-6d8ffac1/grub/grub-core'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/home/build/xen_build/nightly/xen_dom0/xen-master-20181120091929-6d8ffac1/grub'

make: *** [all] Error 2

 

 

Thanks,

Fan

 

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.