Current-Users archive

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

netbsd-7 kernel build failure



A netbsd-7 kernel build from today's sources with -Os errors out with

#   compile  P3B-F/drmfb_pci.o
/u/netbsd-builds/7/i386/tools/bin/i486--netbsdelf-gcc -msoft-float -mno-mmx -mno-sse -mno-avx -ffreestanding -fno-zero-initialized-in-bss -pipe -Os -march=pentium3 -fstack-protector -Wstack-protector --param ssp-buffer-size=1 -fno-strict-aliasing -fno-common -std=gnu99 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wold-style-definition -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-unreachable-code -Wno-pointer-sign -Wno-attributes -Wextra -Wno-unused-parameter -Wold-style-definition -Wno-sign-compare --sysroot=/u/netbsd-builds/7/i386/destdir -Di386 -I. -I/public/netbsd-7/sys/../common/include -I/public/netbsd-7/sys/arch -I/public/netbsd-7/sys -nostdinc -DP1003_1B_SEMAPHORE -DMAXUSERS=64 -D_KERNEL -D_KERNEL_OPT -std=gnu99 -I/public/netbsd-7/sys/lib/libkern/../../../common/lib/libc/quad -I/public/netbsd-7/sys/lib/libkern/../../../common/lib/libc/string -I/public/netbsd-7/sys/lib/libkern/../../../common/lib/libc/arch/i386/string -D_FORTIFY_SOURCE=2 -I/public/netbsd-7/sys/external/bsd/drm2/include -I/public/netbsd-7/sys/external/bsd/common/include -I/public/netbsd-7/sys/external/bsd/drm2/include -I/public/netbsd-7/sys/external/bsd/drm2/include/drm -I/public/netbsd-7/sys/external/bsd/drm2/dist -I/public/netbsd-7/sys/external/bsd/drm2/dist/include -I/public/netbsd-7/sys/external/bsd/drm2/dist/include/drm -I/public/netbsd-7/sys/external/bsd/drm2/dist/uapi -I/public/netbsd-7/sys/external/bsd/common/include -D__KERNEL__ -I/public/netbsd-7/sys/../common/include -DCONFIG_AGP -I/public/netbsd-7/sys/external/bsd/drm2/dist/drm/i915 -I/public/netbsd-7/sys/external/bsd/drm2/i915drm -DCONFIG_DRM_I915_FBDEV -I/public/netbsd-7/sys/external/bsd/drm2/dist/drm/radeon -I/public/netbsd-7/sys/external/bsd/drm2/include/radeon -I/public/netbsd-7/sys/external/bsd/drm2/radeon -I/public/netbsd-7/sys/external/bsd/acpica/dist/include -c /public/netbsd-7/sys/external/bsd/drm2/pci/drmfb_pci.c
--- drm_scatter.o ---
/public/netbsd-7/sys/external/bsd/drm2/drm/drm_scatter.c: In function 'drm_sg_alloc': /public/netbsd-7/sys/external/bsd/drm2/drm/drm_scatter.c:83:10: error: 'sg' may be used uninitialized in this function [-Werror=maybe-uninitialized]
  dev->sg = sg;
          ^
cc1: all warnings being treated as errors
*** [drm_scatter.o] Error code 1

nbmake: stopped in /var/obj/netbsd-builds/7/i386/sys/arch/i386/compile/P3B-F
1 error

drm_sg_alloc_mem() sets up sg, but the compiler cannot know, I guess.

hauke

--
     The ASCII Ribbon Campaign                    Hauke Fath
()     No HTML/RTF in email	        Institut für Nachrichtentechnik
/\     No Word docs in email                     TU Darmstadt
     Respect for open standards              Ruf +49-6151-16-3281


Home | Main Index | Thread Index | Old Index