gcc warnings, pvgrub
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
‘kill’ [-Wimplicit-function-declaration]
* ../grub-upstream/stage2/builtins.c:1728:3: warning: implicit declaration of function ‘do_exit’ [-Wimplicit-function-declaration]
* ../../../../../newlib-1.16.0/newlib/libc/reent/signalr.c:61:3:
warning: implicit declaration of function
‘kill’ [-Wimplicit-function-declaration]
* ../../../../../newlib-1.16.0/newlib/libc/reent/fstat64r.c:65:3:
warning: implicit declaration of function
‘_fstat64’ [-Wimplicit-function-declaration]
* ../../../../../newlib-1.16.0/newlib/libc/reent/lseek64r.c:61:3:
warning: implicit declaration of function
‘lseek64’ [-Wimplicit-function-declaration]
* ../../../../../newlib-1.16.0/newlib/libc/reent/open64r.c:62:3:
warning: implicit declaration of function
‘_open64’ [-Wimplicit-function-declaration]
* ../../../../newlib-1.16.0/libgloss/i386/cygmon-gmon.c:355:7:
warning: implicit declaration of function
‘profil’ [-Wimplicit-function-declaration]
* ../grub-upstream/stage2/builtins.c:1728:3: warning: implicit declaration of function ‘do_exit’ [-Wimplicit-function-declaration]
* 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.
Signature · 3 lines
kind regards Ian Delaney
# Patch Makefile to patch insource newlib, # Prevent internal downloading of external packages
Makefile +15 -14
@@ -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"
# Fix gcc-4.6
mini-os/minios.mk +1 -1
@@ -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
libxc/Makefile 2012-12-05 14:01:10.653260260 +0800 renamed from libxc/Makefile 2012-09-17 18:21:18.000000000 +0800 +1 -1
@@ -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
Config.mk +0 -1
@@ -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
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel