grub-devel
[Top][All Lists]
Advanced

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

does grub-emu is supposed to build right ? (was Re: grub2-rc1-emu under


From: Cyrille Lefevre
Subject: does grub-emu is supposed to build right ? (was Re: grub2-rc1-emu under cygwin)
Date: Thu, 07 Feb 2013 03:06:50 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.3) Gecko/20070326 Thunderbird/2.0.0.0 Mnenhy/0.7.5.666

Le 31/01/2013 23:20, Cyrille Lefevre a écrit :
Hi,

I'm attempting to build grub2-rc1 -emu under cygwin w/o success.
I've made a fast and dirty patch about the missing stuff (emunet tap),
see attachment,
but I don't known how to say to the build machine these symbols came
from cygwin
and should be resolved at last ? see bellow... everything else seems to
be ok.

thanks in advance.

build environment => cygwin2 up-to-date w/ gcc4

$ uname -a
CYGWIN_NT-6.0 pcvista 1.7.17(0.262/5/3) 2012-10-19 14:39 i686 Cygwin

the configure command I use :

CC=gcc-4 ./configure --with-platform=emu --enable-grub-emu-usb
--enable-grub-emu-sdl

and the make command :

make -j 1 -k

-j 1 is to avoid fork failures.

what's wrong is :

cat syminfo.lst | sort | awk -f ./genmoddep.awk > moddep.lst || (rm -f
moddep.lst; exit 1)
address@hidden in emunet is not defined
address@hidden in emunet is not defined
address@hidden in emunet is not defined
address@hidden in emunet is not defined
address@hidden in emunet is not defined
address@hidden in emunet is not defined
address@hidden in emunet is not defined
address@hidden in emunet is not defined
address@hidden in emunet is not defined
address@hidden in emunet is not defined
address@hidden in emunet is not defined
address@hidden in emunet is not defined
address@hidden in emunet is not defined
address@hidden in emunet is not defined
_cygwin_attach_handle_to_fd in emunet is not defined
_get_osfhandle in emunet is not defined
Makefile:81312: recipe for target `moddep.lst' failed

Hi,

well, I've resolve the above issue by manually editing the Makefile as in the one attached.

now, I'm stuck with the following error, so, the question is, does grub-emu is supposed to build right ?

gcc-4 -DHAVE_CONFIG_H -I. -I.. -Wall -W -I../include -I../include -DGRUB_MACHINE_EMU=1 -DGRUB_MACHINE=I386_EMU -DGRUB_TARGET_CPU_I386=1 -m32 -DGRUB_FILE=\"symlist.c\" -I. -I. -I.. -I.. -I../include -I../include -Os -Wall -W -Wshadow -Wold-style-definition -Wpointer-arith -Wundef -Wextra -Waddress -Wattributes -Wcast-align -Wchar-subscripts -Wcomment -Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by-zero -Wempty-body -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 -Wmissing-noreturn -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 -g -Wredundant-decls -Wmissing-prototypes -Wmissing-declarations -falign-jumps=1 -falign-loops=1 -falign-functions=1 -mno-mmx -mno-sse -mno-sse2 -mno-3dnow -fno-dwarf2-cfi-asm -fno-asynchronous-unwind-tables -m32 -fno-stack-protector -mno-stack-arg-probe -MT grub_emu_lite-symlist.o -MD -MP -MF .deps-core/grub_emu_lite-symlist.Tpo -c -o grub_emu_lite-symlist.o `test -f 'symlist.c' || echo './'`symlist.c
symlist.c: In function 'grub_register_exported_symbols':
symlist.c:72:31: error: 'grub_bios_interrupt' undeclared (first use in this function) symlist.c:72:31: note: each undeclared identifier is reported only once for each function it appears in symlist.c:73:29: error: 'grub_boot_device' undeclared (first use in this function) symlist.c:148:31: error: 'grub_pc_net_config' undeclared (first use in this function) symlist.c:149:25: error: 'grub_pit_wait' undeclared (first use in this function) symlist.c:154:25: error: 'grub_pxe_call' undeclared (first use in this function)
symlist.c:216:3: error: duplicate case value
symlist.c:216:3: error: previously used here
Makefile:64893: recipe for target `grub_emu_lite-symlist.o' failed
make[1]: *** [grub_emu_lite-symlist.o] Error 1

thanks in advance...

Regards,

Cyrille Lefevre
--
mailto:address@hidden

Attachment: Makefile.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]