From mboxrd@z Thu Jan 1 00:00:00 1970 From: IAN DELANEY Subject: gcc warnings, pvgrub Date: Thu, 24 Jan 2013 15:53:23 +0800 Message-ID: <20130124155323.7cbbe86d@archtester.homenetwork> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/Z0wFhmVjrq/veLfJkeBM3VP" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org --MP_/Z0wFhmVjrq/veLfJkeBM3VP Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline from gentoo, QA issues reported by portage which are merely copied gcc errors or warnings. on building pvgrub-4.2.0, the install finishes up with * QA Notice: Package triggers severe warnings which indicate that it * may exhibit random runtime failures. * ../../../../../newlib-1.16.0/newlib/libc/reent/signalr.c:61:3: warning: implicit declaration of function =E2=80=98kill=E2=80=99 [-Wimplicit-function-declaration] * ../grub-upstream/stage2/builtins.c:1728:3: warning: implicit declaration of function =E2=80=98do_exit=E2=80=99 [-Wimplicit-function-d= eclaration] * ../../../../../newlib-1.16.0/newlib/libc/reent/signalr.c:61:3: warning: implicit declaration of function =E2=80=98kill=E2=80=99 [-Wimplicit-function-declaration] * ../../../../../newlib-1.16.0/newlib/libc/reent/fstat64r.c:65:3: warning: implicit declaration of function =E2=80=98_fstat64=E2=80=99 [-Wimplicit-function-declaration] * ../../../../../newlib-1.16.0/newlib/libc/reent/lseek64r.c:61:3: warning: implicit declaration of function =E2=80=98lseek64=E2=80=99 [-Wimplicit-function-declaration] * ../../../../../newlib-1.16.0/newlib/libc/reent/open64r.c:62:3: warning: implicit declaration of function =E2=80=98_open64=E2=80=99 [-Wimplicit-function-declaration] * ../../../../newlib-1.16.0/libgloss/i386/cygmon-gmon.c:355:7: warning: implicit declaration of function =E2=80=98profil=E2=80=99 [-Wimplicit-function-declaration] * ../grub-upstream/stage2/builtins.c:1728:3: warning: implicit declaration of function =E2=80=98do_exit=E2=80=99 [-Wimplicit-function-d= eclaration] * Please do not file a Gentoo bug and instead report the above QA * issues directly to the upstream developers of this software. * Homepage: http://xen.org/ Now a xen style build clashes with gentoo preferences or policies with regard to the build. I have just supplied the patches used in the build of the xen-4.2 build so you're in the picture re its build, reason being that I have managed to clean up about 1/3 of these type of gcc error warnings, and these are the ones I couldn't. If you would find some value in a full build log, just say so and I'll send one. --=20 kind regards Ian Delaney --MP_/Z0wFhmVjrq/veLfJkeBM3VP Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=xen-4.2.0-externals.patch # Patch Makefile to patch insource newlib, # Prevent internal downloading of external packages diff -ur xen-4.2.0.orig/stubdom/Makefile xen-4.2.0/stubdom/Makefile --- stubdom/Makefile 2012-09-17 18:21:17.000000000 +0800 +++ stubdom/Makefile 2012-12-05 14:01:10.694260256 +0800 @@ -8,30 +8,30 @@ include $(XEN_ROOT)/Config.mk #ZLIB_URL?=http://www.zlib.net -ZLIB_URL=$(XEN_EXTFILES_URL) +ZLIB_URL=/mnt/gen2/TmpDir/portage/app-emulation/xen-pvgrub-4.2.0/distdir ZLIB_VERSION=1.2.3 #LIBPCI_URL?=http://www.kernel.org/pub/software/utils/pciutils -LIBPCI_URL?=$(XEN_EXTFILES_URL) +LIBPCI_URL?=/mnt/gen2/TmpDir/portage/app-emulation/xen-pvgrub-4.2.0/distdir LIBPCI_VERSION=2.2.9 #NEWLIB_URL?=ftp://sources.redhat.com/pub/newlib -NEWLIB_URL?=$(XEN_EXTFILES_URL) +NEWLIB_URL?=/mnt/gen2/TmpDir/portage/app-emulation/xen-pvgrub-4.2.0/distdir NEWLIB_VERSION=1.16.0 #LWIP_URL?=http://download.savannah.gnu.org/releases/lwip -LWIP_URL?=$(XEN_EXTFILES_URL) +LWIP_URL?=/mnt/gen2/TmpDir/portage/app-emulation/xen-pvgrub-4.2.0/distdir LWIP_VERSION=1.3.0 #GRUB_URL?=http://alpha.gnu.org/gnu/grub -GRUB_URL?=$(XEN_EXTFILES_URL) +GRUB_URL?=/mnt/gen2/TmpDir/portage/app-emulation/xen-pvgrub-4.2.0/distdir GRUB_VERSION=0.97 -#OCAML_URL?=$(XEN_EXTFILES_URL) +#OCAML_URL?=/mnt/gen2/TmpDir/portage/app-emulation/xen-pvgrub-4.2.0/distdir OCAML_URL?=http://caml.inria.fr/pub/distrib/ocaml-3.11 OCAML_VERSION=3.11.0 -WGET=wget -c +WGET=cp -t . GNU_TARGET_ARCH:=$(XEN_TARGET_ARCH) ifeq ($(XEN_TARGET_ARCH),x86_32) @@ -95,12 +95,13 @@ ############## newlib-$(NEWLIB_VERSION).tar.gz: - $(WGET) $(NEWLIB_URL)/$@ +# $(WGET) $(NEWLIB_URL)/$@ newlib-$(NEWLIB_VERSION): newlib-$(NEWLIB_VERSION).tar.gz tar xzf $< patch -d $@ -p0 < newlib.patch patch -d $@ -p0 < newlib-chk.patch + patch -d $@ -p0 < newlib-implicits.patch patch -d $@ -p1 < newlib-stdint-size_max-fix-from-1.17.0.patch find $@ -type f | xargs perl -i.bak \ -pe 's/\b_(tzname|daylight|timezone)\b/$$1/g' @@ -112,7 +113,7 @@ $(NEWLIB_STAMPFILE): mk-headers-$(XEN_TARGET_ARCH) newlib-$(NEWLIB_VERSION) mkdir -p newlib-$(XEN_TARGET_ARCH) ( cd newlib-$(XEN_TARGET_ARCH) && \ - CC_FOR_TARGET="$(CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(NEWLIB_CFLAGS)" AR_FOR_TARGET=$(AR) LD_FOR_TARGET=$(LD) RANLIB_FOR_TARGET=$(RANLIB) ../newlib-$(NEWLIB_VERSION)/configure --prefix=$(CROSS_PREFIX) --verbose --target=$(GNU_TARGET_ARCH)-xen-elf --enable-newlib-io-long-long --disable-multilib && \ + CC_FOR_TARGET="$(CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(NEWLIB_CFLAGS)" AR_FOR_TARGET=$(AR) LD_FOR_TARGET=$(LD) LDFLAGS= RANLIB_FOR_TARGET=$(RANLIB) ../newlib-$(NEWLIB_VERSION)/configure --prefix=$(CROSS_PREFIX) --verbose --target=$(GNU_TARGET_ARCH)-xen-elf --enable-newlib-io-long-long --disable-multilib && \ $(CROSS_MAKE) && \ $(CROSS_MAKE) install ) @@ -121,7 +122,7 @@ ############ zlib-$(ZLIB_VERSION).tar.gz: - $(WGET) $(ZLIB_URL)/$@ +# $(WGET) $(ZLIB_URL)/$@ zlib-$(XEN_TARGET_ARCH): zlib-$(ZLIB_VERSION).tar.gz tar xzf $< @@ -141,7 +142,7 @@ ############## pciutils-$(LIBPCI_VERSION).tar.bz2: - $(WGET) $(LIBPCI_URL)/$@ +# $(WGET) $(LIBPCI_URL)/$@ pciutils-$(XEN_TARGET_ARCH): pciutils-$(LIBPCI_VERSION).tar.bz2 tar xjf $< @@ -169,7 +170,7 @@ ###### lwip-$(LWIP_VERSION).tar.gz: - $(WGET) $(LWIP_URL)/$@ +# $(WGET) $(LWIP_URL)/$@ lwip-$(XEN_TARGET_ARCH): lwip-$(LWIP_VERSION).tar.gz tar xzf $< @@ -325,7 +326,7 @@ ###### grub-$(GRUB_VERSION).tar.gz: - $(WGET) $(GRUB_URL)/$@ +#$(WGET) $(GRUB_URL)/$@ grub-upstream: grub-$(GRUB_VERSION).tar.gz tar xzf $< @@ -392,7 +393,7 @@ $(INSTALL_DIR) "$(DESTDIR)$(XENFIRMWAREDIR)" $(INSTALL_DATA) mini-os-$(XEN_TARGET_ARCH)-ioemu/mini-os.gz "$(DESTDIR)$(XENFIRMWAREDIR)/ioemu-stubdom.gz" -install-grub: pv-grub +install-grub: $(INSTALL_DIR) "$(DESTDIR)$(XENFIRMWAREDIR)" $(INSTALL_DATA) mini-os-$(XEN_TARGET_ARCH)-grub/mini-os.gz "$(DESTDIR)$(XENFIRMWAREDIR)/pv-grub-$(XEN_TARGET_ARCH).gz" --MP_/Z0wFhmVjrq/veLfJkeBM3VP Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=xen-4-fix_dotconfig-gcc.patch # Fix gcc-4.6 diff -ur xen-4.2.0.orig/extras/mini-os/minios.mk xen-4.2.0/extras/mini-os/minios.mk --- extras/mini-os/minios.mk 2012-09-17 18:21:17.000000000 +0800 +++ extras/mini-os/minios.mk 2012-12-05 14:01:10.653260260 +0800 @@ -6,7 +6,7 @@ # Define some default flags. # NB. '-Wcast-qual' is nasty, so I omitted it. -DEF_CFLAGS += -fno-builtin -Wall -Werror -Wredundant-decls -Wno-format -Wno-redundant-decls +DEF_CFLAGS += -fno-builtin -Wall -Wredundant-decls -Wno-format -Wno-redundant-decls DEF_CFLAGS += $(call cc-option,$(CC),-fno-stack-protector,) DEF_CFLAGS += $(call cc-option,$(CC),-fgnu89-inline) DEF_CFLAGS += -Wstrict-prototypes -Wnested-externs -Wpointer-arith -Winline diff -ur xen-4.2.0.orig/tools/libxc/Makefile xen-4.2.0/tools/libxc/Makefile --- tools/libxc/Makefile 2012-09-17 18:21:18.000000000 +0800 +++ tools/libxc/Makefile 2012-12-05 14:01:10.653260260 +0800 @@ -73,7 +73,7 @@ -include $(XEN_TARGET_ARCH)/Makefile -CFLAGS += -Werror -Wmissing-prototypes +CFLAGS += -Wmissing-prototypes CFLAGS += -I. $(CFLAGS_xeninclude) # Needed for posix_fadvise64() in xc_linux.c # Drop .config diff -ur xen-4.2.0.orig/Config.mk xen-4.2.0/Config.mk --- Config.mk 2012-09-17 18:23:12.000000000 +0800 +++ Config.mk 2012-12-05 14:01:10.641260261 +0800 @@ -7,7 +7,6 @@ # fallback for older make realpath = $(wildcard $(foreach file,$(1),$(shell cd -P $(dir $(file)) && echo "$$PWD/$(notdir $(file))"))) --include $(XEN_ROOT)/.config # A debug build of Xen and tools? debug ?= n --MP_/Z0wFhmVjrq/veLfJkeBM3VP Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --MP_/Z0wFhmVjrq/veLfJkeBM3VP--