On Tue, May 03, 2011 at 11:48:47AM +0200, Robin Axelsson wrote: > On 2011-05-03 08:22, Pasi KÃrkkÃinen wrote: >> On Tue, May 03, 2011 at 02:06:24AM +0200, Robin Axelsson wrote: >>> Hi, >>> I'm trying to compile Jeremy's paravirt_ops kernel on Fedora 15 using >>> the following tutorial: >>> >>> http://wiki.xensource.com/xenwiki/Fedora13Xen4Tutorial >>> >>> but in the compilation process I get error messages that some .c and .h >>> files are missing. I couldn't locate the packages that would house these >>> files for Fedora 15 so I wonder how to compile it for F15. >>> >>> I want to use Jeremy's kernel because I need dom0 pciback drivers for >>> using VGAPassthrough and PCIpassthrough. >>> >> Hello, >> >> Please paste the actual build errors.. >> >> -- Pasi >> >> . >> > During compilation I see a lot of warnings: They are in pretty much > every .../.../xyz.h file, the warnings are about variables that are set > but not used. Perhaps this is normal. Then when things start to go > haywire it begins with a couple of LDs on drivers/video/fb.o > .../built-in.o and vmlinux.o followed by the command MODPOST that gives > a warning that it found 10 section mismatches. It suggested that I > should make with 'CONFIG_DEBUG_SECTION_MISMATCH=y' option/argument added. > > Then the final straw that breaks it all is when line 28 in > Documentation/video4linux/v4lgrab.c refers to linux/videodev.h that > doesn't exist which terminates the compilation. > > The cause of this seems to be that (according to an ubuntu bug report) > the V4L1 API was removed in one of the Linux 2.6.38 pre-releases since > v4l support has been dropped since kernel 2.6.35, and the > <linux/videodev.h> header doesn't exist. Perhaps it compiles > mediastreamer2/src/msv4l.c if either V4L1 or V4L2 is detected, and that > file unconditionally includes <linux/videodev.h>. > > Two suggestions: - Did you try my reference .config file? - Do you have enough free disk space to build the kernel? -- Pasi > > A more detailed version showing the last couple of lines follows: > include/linux/irq.h: In function Ãâ?alloc_desc_masksÃâ?: > include/linux/irq.h:441:8: warning: variable Ãâ?gfpÃâ? set but not used > [-Wunused-but-set-variable] > In file included from > /home/xen_repo/linux-2.6-xen/arch/x86/include/asm/smp.h:13:0, > from /home/xen_repo/linux-2.6-xen/arch/x86/include/asm/mmzone_64.h:12, > from /home/xen_repo/linux-2.6-xen/arch/x86/include/asm/mmzone.h:4, > from include/linux/mmzone.h:796, > from include/linux/gfp.h:4, > from include/linux/kmod.h:22, > from include/linux/module.h:13, > from drivers/video/vesafb.c:11: > /home/xen_repo/linux-2.6-xen/arch/x86/include/asm/apic.h: In function > Ãâ?native_apic_msr_readÃâ?: > /home/xen_repo/linux-2.6-xen/arch/x86/include/asm/apic.h:144:11: > warning: variable Ãâ?highÃâ? set but not used [-Wunused-but-set-variable] > /home/xen_repo/linux-2.6-xen/arch/x86/include/asm/apic.h: In function > Ãâ?x2apic_enabledÃâ?: > /home/xen_repo/linux-2.6-xen/arch/x86/include/asm/apic.h:184:11: > warning: variable Ãâ?msr2Ãâ? set but not used [-Wunused-but-set-variable] > In file included from > /home/xen_repo/linux-2.6-xen/arch/x86/include/asm/smp.h:13:0, > from /home/xen_repo/linux-2.6-xen/arch/x86/include/asm/mmzone_64.h:12, > from /home/xen_repo/linux-2.6-xen/arch/x86/include/asm/mmzone.h:4, > from include/linux/mmzone.h:796, > from include/linux/gfp.h:4, > from include/linux/kmod.h:22, > from include/linux/module.h:13, > from drivers/video/efifb.c:9: > /home/xen_repo/linux-2.6-xen/arch/x86/include/asm/apic.h: In function > Ãâ?native_apic_msr_readÃâ?: > /home/xen_repo/linux-2.6-xen/arch/x86/include/asm/apic.h:144:11: > warning: variable Ãâ?highÃâ? set but not used [-Wunused-but-set-variable] > /home/xen_repo/linux-2.6-xen/arch/x86/include/asm/apic.h: In function > Ãâ?x2apic_enabledÃâ?: > /home/xen_repo/linux-2.6-xen/arch/x86/include/asm/apic.h:184:11: > warning: variable Ãâ?msr2Ãâ? set but not used [-Wunused-but-set-variable] > LD drivers/video/fb.o > LD drivers/video/built-in.o > LD drivers/built-in.o > LD vmlinux.o > MODPOST vmlinux.o > WARNING: modpost: Found 10 section mismatch(es). > To see full details build your kernel with: > 'make CONFIG_DEBUG_SECTION_MISMATCH=y' > GEN .version > CHK include/linux/compile.h > UPD include/linux/compile.h > CC init/version.o > In file included from > /home/xen_repo/linux-2.6-xen/arch/x86/include/asm/smp.h:13:0, > from /home/xen_repo/linux-2.6-xen/arch/x86/include/asm/mmzone_64.h:12, > from /home/xen_repo/linux-2.6-xen/arch/x86/include/asm/mmzone.h:4, > from include/linux/mmzone.h:796, > from include/linux/gfp.h:4, > from include/linux/kmod.h:22, > from include/linux/module.h:13, > from init/version.c:10: > /home/xen_repo/linux-2.6-xen/arch/x86/include/asm/apic.h: In function > Ãâ?native_apic_msr_readÃâ?: > /home/xen_repo/linux-2.6-xen/arch/x86/include/asm/apic.h:144:11: > warning: variable Ãâ?highÃâ? set but not used [-Wunused-but-set-variable] > /home/xen_repo/linux-2.6-xen/arch/x86/include/asm/apic.h: In function > Ãâ?x2apic_enabledÃâ?: > /home/xen_repo/linux-2.6-xen/arch/x86/include/asm/apic.h:184:11: > warning: variable Ãâ?msr2Ãâ? set but not used [-Wunused-but-set-variable] > LD init/built-in.o > LD .tmp_vmlinux1 > KSYM .tmp_kallsyms1.S > AS .tmp_kallsyms1.o > LD .tmp_vmlinux2 > KSYM .tmp_kallsyms2.S > AS .tmp_kallsyms2.o > LD .tmp_vmlinux3 > KSYM .tmp_kallsyms3.S > AS .tmp_kallsyms3.o > CHK include/linux/version.h > HOSTCC scripts/unifdef > INSTALL include/drm (12 files) > INSTALL include/asm-generic (34 files) > INSTALL include/mtd (5 files) > INSTALL include/linux/byteorder (2 files) > INSTALL include/linux/can (4 files) > INSTALL include/linux/dvb (8 files) > INSTALL include/rdma (1 file) > INSTALL include/scsi (4 files) > INSTALL include/linux/isdn (1 file) > INSTALL include/sound (9 files) > INSTALL include/linux/hdlc (1 file) > INSTALL include/video (3 files) > INSTALL include/linux/netfilter (58 files) > INSTALL include/xen (2 files) > unifdef: /home/xen_repo/linux-2.6-xen/usr/include/xen/privcmd.h.tmp: 79: > Premature EOF (#if line 33 depth 1) > unifdef: output may be truncated > INSTALL include (0 file) > INSTALL include/linux/netfilter_arp (2 files) > INSTALL include/linux/netfilter_bridge (16 files) > INSTALL include/linux/netfilter_ipv4 (14 files) > INSTALL include/linux/netfilter_ipv6 (11 files) > INSTALL include/linux/nfsd (6 files) > INSTALL include/linux/raid (2 files) > INSTALL include/linux/spi (1 file) > INSTALL include/linux/sunrpc (1 file) > INSTALL include/linux/tc_act (6 files) > INSTALL include/linux/tc_ematch (4 files) > INSTALL include/linux/usb (8 files) > INSTALL include/linux (356 files) > INSTALL include/linux/wimax (1 file) > INSTALL include/asm (54 files) > CHECK include/drm (12 files) > CHECK include/asm-generic (34 files) > CHECK include/mtd (5 files) > CHECK include/linux/byteorder (2 files) > CHECK include/linux/can (4 files) > CHECK include/rdma (1 files) > CHECK include/scsi (4 files) > CHECK include/sound (9 files) > /home/xen_repo/linux-2.6-xen/usr/include/scsi/scsi.h:162: userspace > cannot call function or variable defined in the kernel > /home/xen_repo/linux-2.6-xen/usr/include/scsi/scsi.h:288: userspace > cannot call function or variable defined in the kernel > CHECK include/video (3 files) > CHECK include/linux/dvb (8 files) > CHECK include/xen (2 files) > CHECK include (0 files) > CHECK include/linux/hdlc (1 files) > CHECK include/linux/isdn (1 files) > CHECK include/linux/netfilter (58 files) > CHECK include/linux/netfilter_arp (2 files) > CHECK include/linux/netfilter_bridge (16 files) > CHECK include/linux/netfilter_ipv4 (14 files) > CHECK include/linux/netfilter_ipv6 (11 files) > CHECK include/linux/raid (2 files) > CHECK include/linux/nfsd (6 files) > CHECK include/linux/spi (1 files) > CHECK include/linux/sunrpc (1 files) > CHECK include/linux/tc_act (6 files) > CHECK include/linux/tc_ematch (4 files) > CHECK include/linux/usb (8 files) > CHECK include/linux/wimax (1 files) > CHECK include/linux (356 files) > CHECK include/asm (54 files) > LD Documentation/accounting/built-in.o > LD Documentation/connector/built-in.o > LD Documentation/auxdisplay/built-in.o > HOSTCC Documentation/auxdisplay/cfag12864b-example > HOSTCC Documentation/connector/ucon > HOSTCC Documentation/accounting/getdelays > LD Documentation/DocBook/built-in.o > LD Documentation/filesystems/configfs/built-in.o > LD Documentation/ia64/built-in.o > HOSTCC Documentation/ia64/aliasing-test > Documentation/accounting/getdelays.c: In function Ãâ?get_family_idÃâ?: > Documentation/accounting/getdelays.c:171:14: warning: variable Ãâ?rcÃâ? > set but not used [-Wunused-but-set-variable] > Documentation/accounting/getdelays.c: In function Ãâ?mainÃâ?: > Documentation/accounting/getdelays.c:402:7: warning: variable Ãâ?iÃâ? > set but not used [-Wunused-but-set-variable] > LD Documentation/networking/built-in.o > HOSTCC Documentation/networking/ifenslave > LD Documentation/pcmcia/built-in.o > HOSTCC Documentation/pcmcia/crc32hash > LD Documentation/spi/built-in.o > HOSTCC Documentation/spi/spidev_test > LD Documentation/video4linux/built-in.o > HOSTCC Documentation/video4linux/v4lgrab > Documentation/networking/ifenslave.c: In function Ãâ?if_getconfigÃâ?: > Documentation/networking/ifenslave.c:508:14: warning: variable Ãâ?mtuÃâ? > set but not used [-Wunused-but-set-variable] > Documentation/networking/ifenslave.c:508:6: warning: variable > Ãâ?metricÃâ? set but not used [-Wunused-but-set-variable] > LD Documentation/vm/built-in.o > Documentation/video4linux/v4lgrab.c:34:28: fatal error: > linux/videodev.h: No such file or directory > compilation terminated. > HOSTCC Documentation/vm/slabinfo > HOSTCC Documentation/spi/spidev_fdx > make[2]: *** [Documentation/video4linux/v4lgrab] Error 1 > make[1]: *** [Documentation/video4linux] Error 2 > make[1]: *** Waiting for unfinished jobs.... > HOSTCC Documentation/vm/page-types > make: *** [vmlinux] Error 2 > -- xen mailing list xen@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/xen