From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1U3GtE-0001rP-Ue for mharc-grub-devel@gnu.org; Wed, 06 Feb 2013 21:07:04 -0500 Received: from eggs.gnu.org ([208.118.235.92]:58594) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3Gt9-0001qu-Jy for grub-devel@gnu.org; Wed, 06 Feb 2013 21:07:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U3Gt5-0000a5-UA for grub-devel@gnu.org; Wed, 06 Feb 2013 21:06:59 -0500 Received: from smtpout3.laposte.net ([193.253.67.228]:29069 helo=smtpout.laposte.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3Gt5-0000Zl-GS for grub-devel@gnu.org; Wed, 06 Feb 2013 21:06:55 -0500 Received: from [192.168.1.133] ([82.237.83.42]) by mwinf8506-out with ME id xE6r1k0020uni1u03E6sYR; Thu, 07 Feb 2013 03:06:53 +0100 Message-ID: <51130C3A.3070003@laposte.net> Date: Thu, 07 Feb 2013 03:06:50 +0100 From: Cyrille Lefevre Organization: ACME 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 MIME-Version: 1.0 To: The development of GNU GRUB Subject: does grub-emu is supposed to build right ? (was Re: grub2-rc1-emu under cygwin) References: <510AEE21.20104@laposte.net> In-Reply-To: <510AEE21.20104@laposte.net> Content-Type: multipart/mixed; boundary="------------080900090801060309040309" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 193.253.67.228 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Feb 2013 02:07:04 -0000 This is a multi-part message in MIME format. --------------080900090801060309040309 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Le 31/01/2013 23:20, Cyrille Lefevre a =E9crit : > 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 =3D> 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=3Dgcc-4 ./configure --with-platform=3Demu --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) > __imp__CloseHandle@4 in emunet is not defined > __imp__CreateEventA@16 in emunet is not defined > __imp__CreateFileA@28 in emunet is not defined > __imp__DeviceIoControl@32 in emunet is not defined > __imp__GetLastError@0 in emunet is not defined > __imp__GetOverlappedResult@16 in emunet is not defined > __imp__ReadFile@20 in emunet is not defined > __imp__RegCloseKey@4 in emunet is not defined > __imp__RegEnumKeyExA@32 in emunet is not defined > __imp__RegOpenKeyExA@20 in emunet is not defined > __imp__RegQueryValueExA@24 in emunet is not defined > __imp__ResetEvent@4 in emunet is not defined > __imp__WaitForSingleObject@8 in emunet is not defined > __imp__WriteFile@20 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=20 in the one attached. now, I'm stuck with the following error, so, the question is, does=20 grub-emu is supposed to build right ? gcc-4 -DHAVE_CONFIG_H -I. -I.. -Wall -W -I../include -I../include=20 -DGRUB_MACHINE_EMU=3D1 -DGRUB_MACHINE=3DI386_EMU -DGRUB_TARGET_CPU_I386=3D= 1=20 -m32 -DGRUB_FILE=3D\"symlist.c\" -I. -I. -I.. -I.. -I../include=20 -I../include -Os -Wall -W -Wshadow -Wold-style-definition=20 -Wpointer-arith -Wundef -Wextra -Waddress -Wattributes -Wcast-align=20 -Wchar-subscripts -Wcomment -Wdeprecated-declarations=20 -Wdisabled-optimization -Wdiv-by-zero -Wempty-body -Wendif-labels=20 -Wfloat-equal -Wformat-extra-args -Wformat-security -Wformat-y2k=20 -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Winit-self=20 -Wint-to-pointer-cast -Winvalid-pch -Wmain -Wmissing-braces=20 -Wmissing-field-initializers -Wmissing-format-attribute=20 -Wmissing-noreturn -Wmultichar -Wnonnull -Woverflow -Wparentheses=20 -Wpointer-arith -Wpointer-to-int-cast -Wreturn-type -Wsequence-point=20 -Wshadow -Wsign-compare -Wstrict-aliasing -Wswitch -Wtrigraphs -Wundef=20 -Wunknown-pragmas -Wunused -Wunused-function -Wunused-label=20 -Wunused-parameter -Wunused-value -Wunused-variable -Wvariadic-macros=20 -Wvolatile-register-var -Wwrite-strings -Wnested-externs=20 -Wstrict-prototypes -Wpointer-sign -g -Wredundant-decls=20 -Wmissing-prototypes -Wmissing-declarations -falign-jumps=3D1=20 -falign-loops=3D1 -falign-functions=3D1 -mno-mmx -mno-sse -mno-sse2=20 -mno-3dnow -fno-dwarf2-cfi-asm -fno-asynchronous-unwind-tables -m32=20 -fno-stack-protector -mno-stack-arg-probe -MT=20 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=20 this function) symlist.c:72:31: note: each undeclared identifier is reported only once=20 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=20 this function) symlist.c:149:25: error: 'grub_pit_wait' undeclared (first use in this=20 function) symlist.c:154:25: error: 'grub_pxe_call' undeclared (first use in this=20 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 --=20 mailto:Cyrille.Lefevre-lists@laposte.net --------------080900090801060309040309 Content-Type: text/x-diff; name="Makefile.diff" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="Makefile.diff" --- Makefile.bak 2013-02-07 03:00:13.999999900 +0100 +++ Makefile 2013-02-07 02:28:55.999999900 +0100 @@ -28900,8 +28900,8 @@ nodist_grub_emu_OBJECTS =3D \ grub_emu-grub_emu_init.$(OBJEXT) grub_emu_OBJECTS =3D $(am_grub_emu_OBJECTS) $(nodist_grub_emu_OBJECTS) -am__DEPENDENCIES_1 =3D -grub_emu_DEPENDENCIES =3D kernel.img$(EXEEXT) \ +am__DEPENDENCIES_1 =3D gnulib/libgnu.a +grub_emu_DEPENDENCIES =3D kernel.exec$(EXEEXT) \ $(MODULE_FILES) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ @@ -28916,7 +28916,7 @@ grub_emu_lite-symlist.$(OBJEXT) grub_emu_lite_OBJECTS =3D $(am_grub_emu_lite_OBJECTS) \ $(nodist_grub_emu_lite_OBJECTS) -grub_emu_lite_DEPENDENCIES =3D kernel.img$(EXEEXT) \ +grub_emu_lite_DEPENDENCIES =3D kernel.exec$(EXEEXT) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ @@ -34170,7 +34170,7 @@ HELP2MAN =3D=20 HOST_CC =3D gcc-4 HOST_CCASFLAGS =3D=20 -HOST_CFLAGS =3D -Wall -W -Wshadow -Wold-style-definition -Wpointer-arit= h -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-se= curity -Wformat-y2k -Wimplicit -Wimplicit-function-declaration -Wimplicit= -int -Winit-self -Wint-to-pointer-cast -Winvalid-pch -Wmain -Wmissing-bra= ces -Wmissing-field-initializers -Wmissing-format-attribute -Wmissing-nor= eturn -Wmultichar -Wnonnull -Woverflow -Wparentheses -Wpointer-arith -Wpo= inter-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 -Wun= used-variable -Wvariadic-macros -Wvolatile-register-var -Wwrite-strings -= Wnested-externs -Wstrict-prototypes -Wpointer-sign -Werror +HOST_CFLAGS =3D -Wall -W -Wshadow -Wold-style-definition -Wpointer-arit= h -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-se= curity -Wformat-y2k -Wimplicit -Wimplicit-function-declaration -Wimplicit= -int -Winit-self -Wint-to-pointer-cast -Winvalid-pch -Wmain -Wmissing-bra= ces -Wmissing-field-initializers -Wmissing-format-attribute -Wmissing-nor= eturn -Wmultichar -Wnonnull -Woverflow -Wparentheses -Wpointer-arith -Wpo= inter-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 -Wun= used-variable -Wvariadic-macros -Wvolatile-register-var -Wwrite-strings -= Wnested-externs -Wstrict-prototypes -Wpointer-sign HOST_CPPFLAGS =3D -Wall -W -I$(top_builddir)/include -DGRUB_UTIL=3D1 -D= GRUB_LIBDIR=3D\"$(pkglibdir)\" -DLOCALEDIR=3D\"$(localedir)\" HOST_LDFLAGS =3D=20 INCLUDE_NEXT =3D include_next @@ -34368,14 +34368,14 @@ TARGET_CC =3D gcc-4 TARGET_CCAS =3D gcc-4 TARGET_CCASFLAGS =3D -g -m32 -TARGET_CFLAGS =3D -Os -Wall -W -Wshadow -Wold-style-definition -Wpointe= r-arith -Wundef -Wextra -Waddress -Wattributes -Wcast-align -Wchar-subscr= ipts -Wcomment -Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by= -zero -Wempty-body -Wendif-labels -Wfloat-equal -Wformat-extra-args -Wfor= mat-security -Wformat-y2k -Wimplicit -Wimplicit-function-declaration -Wim= plicit-int -Winit-self -Wint-to-pointer-cast -Winvalid-pch -Wmain -Wmissi= ng-braces -Wmissing-field-initializers -Wmissing-format-attribute -Wmissi= ng-noreturn -Wmultichar -Wnonnull -Woverflow -Wparentheses -Wpointer-arit= h -Wpointer-to-int-cast -Wreturn-type -Wsequence-point -Wshadow -Wsign-co= mpare -Wstrict-aliasing -Wswitch -Wtrigraphs -Wundef -Wunknown-pragmas -W= unused -Wunused-function -Wunused-label -Wunused-parameter -Wunused-value= -Wunused-variable -Wvariadic-macros -Wvolatile-register-var -Wwrite-str= ings -Wnested-externs -Wstrict-prototypes -Wpointer-sign -g -Wredundant-d= ecls -Wmissing-prototypes -Wmissing-declarations -falign-jumps=3D1 -falig= n-loops=3D1 -falign-functions=3D1 -mno-mmx -mno-sse -mno-sse2 -mno-3dnow = -fno-dwarf2-cfi-asm -fno-asynchronous-unwind-tables -m32 -fno-stack-prote= ctor -mno-stack-arg-probe -Werror $(am__append_9) +TARGET_CFLAGS =3D -Os -Wall -W -Wshadow -Wold-style-definition -Wpointe= r-arith -Wundef -Wextra -Waddress -Wattributes -Wcast-align -Wchar-subscr= ipts -Wcomment -Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by= -zero -Wempty-body -Wendif-labels -Wfloat-equal -Wformat-extra-args -Wfor= mat-security -Wformat-y2k -Wimplicit -Wimplicit-function-declaration -Wim= plicit-int -Winit-self -Wint-to-pointer-cast -Winvalid-pch -Wmain -Wmissi= ng-braces -Wmissing-field-initializers -Wmissing-format-attribute -Wmissi= ng-noreturn -Wmultichar -Wnonnull -Woverflow -Wparentheses -Wpointer-arit= h -Wpointer-to-int-cast -Wreturn-type -Wsequence-point -Wshadow -Wsign-co= mpare -Wstrict-aliasing -Wswitch -Wtrigraphs -Wundef -Wunknown-pragmas -W= unused -Wunused-function -Wunused-label -Wunused-parameter -Wunused-value= -Wunused-variable -Wvariadic-macros -Wvolatile-register-var -Wwrite-str= ings -Wnested-externs -Wstrict-prototypes -Wpointer-sign -g -Wredundant-d= ecls -Wmissing-prototypes -Wmissing-declarations -falign-jumps=3D1 -falig= n-loops=3D1 -falign-functions=3D1 -mno-mmx -mno-sse -mno-sse2 -mno-3dnow = -fno-dwarf2-cfi-asm -fno-asynchronous-unwind-tables -m32 -fno-stack-prote= ctor -mno-stack-arg-probe $(am__append_9) TARGET_CPP =3D gcc-4 -E TARGET_CPPFLAGS =3D -Wall -W -I$(top_srcdir)/include -I$(top_builddir)/= include -DGRUB_MACHINE_EMU=3D1 -DGRUB_MACHINE=3DI386_EMU -DGRUB_TARGET_C= PU_I386=3D1 -m32 TARGET_IMG_BASE_LDOPT =3D -Wl,-Ttext TARGET_IMG_CFLAGS =3D=20 TARGET_IMG_LDFLAGS =3D -Wl,-N TARGET_IMG_LDSCRIPT =3D=20 -TARGET_LDFLAGS =3D -m32 +TARGET_LDFLAGS =3D -m32 -static-libgcc TARGET_LDFLAGS_OLDMAGIC =3D -Wl,-N TARGET_MODULE_FORMAT =3D elf32 TARGET_OBJ2ELF =3D $(top_builddir)/grub-pe2elf @@ -58385,14 +58385,14 @@ $(am__append_18216) $(am__append_18225) $(am__append_18234) grub_emu_SOURCES =3D kern/emu/full.c=20 nodist_grub_emu_SOURCES =3D grub_emu_init.c=20 -grub_emu_LDADD =3D kernel.img$(EXEEXT) $(MODULE_FILES) $(LIBUTIL) $(LIBC= URSES) $(LIBSDL) $(LIBUSB) $(LIBPCIACCESS) $(LIBDEVMAPPER) $(LIBZFS) $(LI= BNVPAIR) $(LIBGEOM)=20 +grub_emu_LDADD =3D kernel.exec$(EXEEXT) gnulib/libgnu.a $(MODULE_FILES) = $(LIBUTIL) $(LIBCURSES) $(LIBSDL) $(LIBUSB) $(LIBINTL) $(LIBPCIACCESS) $(= LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM) grub_emu_CFLAGS =3D $(AM_CFLAGS) $(CFLAGS_PROGRAM)=20 grub_emu_LDFLAGS =3D $(AM_LDFLAGS) $(LDFLAGS_PROGRAM)=20 grub_emu_CPPFLAGS =3D $(AM_CPPFLAGS) $(CPPFLAGS_PROGRAM)=20 grub_emu_CCASFLAGS =3D $(AM_CCASFLAGS) $(CCASFLAGS_PROGRAM)=20 grub_emu_lite_SOURCES =3D kern/emu/lite.c=20 nodist_grub_emu_lite_SOURCES =3D symlist.c=20 -grub_emu_lite_LDADD =3D kernel.img$(EXEEXT) $(LIBUTIL) $(LIBCURSES) $(LI= BSDL) $(LIBUSB) $(LIBPCIACCESS) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(= LIBGEOM)=20 +grub_emu_lite_LDADD =3D kernel.exec$(EXEEXT) $(LIBUTIL) $(LIBCURSES) $(L= IBSDL) $(LIBUSB) $(LIBPCIACCESS) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $= (LIBGEOM)=20 grub_emu_lite_CFLAGS =3D $(AM_CFLAGS) $(CFLAGS_PROGRAM)=20 grub_emu_lite_LDFLAGS =3D $(AM_LDFLAGS) $(LDFLAGS_PROGRAM)=20 grub_emu_lite_CPPFLAGS =3D $(AM_CPPFLAGS) $(CPPFLAGS_PROGRAM)=20 @@ -81301,8 +81301,12 @@ crypto.lst: $(srcdir)/lib/libgcrypt-grub/cipher/crypto.lst cp $^ $@ =20 -syminfo.lst: gensyminfo.sh kernel_syms.lst $(MODULE_FILES) +cygwin.lst: /usr/bin/cygwin1.dll + nm -u net/drivers/emu/emunet_module-emunet.o | awk '!/grub/{print "defi= ned cygwin", $$NF}' > cygwin.lst + +syminfo.lst: gensyminfo.sh kernel_syms.lst $(MODULE_FILES) cygwin.lst cat kernel_syms.lst > $@.new + cat cygwin.lst >> $@.new for m in $(MODULE_FILES); do \ sh $< $$m >> $@.new || exit 1; \ done --------------080900090801060309040309--