[Mplayer-matrox] Re: mga_vid, 2.6, SMP

Mark Hurenkamp mark.hurenkamp at xs4all.nl
Mon Nov 8 13:45:52 CET 2004


Hi,


I tried again to build mga_vid, this time using latest CVS (previously 
1.0-pre5), with the patch mentioned in my earlier mail (still on 2.6.6).
Still I seem to have SMP related problems, see the output at the end of 
the message.
The (first) offending line seems to be this one:
     include/asm/mpspec.h:6:25: mach_mpspec.h: No such file or directory

So lets see where it lives:
nine linux-2.6.6-mh11 # find . -name mach_mpspec.h -print
./include/asm-i386/mach-generic/mach_mpspec.h
./include/asm-i386/mach-default/mach_mpspec.h
./include/asm-i386/mach-bigsmp/mach_mpspec.h
./include/asm-i386/mach-es7000/mach_mpspec.h
./include/asm-i386/mach-numaq/mach_mpspec.h
./include/asm-i386/mach-summit/mach_mpspec.h
nine linux-2.6.6-mh11 #

Ok, there seem to be plenty versions available, why can't it find
any of them (preferably the right one, which would be ??? )?


Next I'll give 2.6.9 a try.


Warm regards,
Mark.



nine drivers # make
make mga_vid.ko mga_vid_test
make[1]: Entering directory `/usr/src/mplayer/main/drivers'
make -C /lib/modules/`uname -r`/build 
SUBDIRS=/usr/src/mplayer/main/drivers modu
les
make[2]: Entering directory `/usr/src/linux-2.6.6-mh11'
   CC [M]  /usr/src/mplayer/main/drivers/mga_vid.o
In file included from include/asm/processor.h:18,
                  from include/asm/thread_info.h:16,
                  from include/linux/thread_info.h:21,
                  from include/linux/spinlock.h:12,
                  from include/linux/capability.h:45,
                  from include/linux/sched.h:7,
                  from include/linux/module.h:10,
                  from /usr/src/mplayer/main/drivers/mga_vid.c:45:
include/asm/system.h: In function `__set_64bit_var':
include/asm/system.h:193: warning: dereferencing type-punned pointer 
will break
strict-aliasing rules
include/asm/system.h:193: warning: dereferencing type-punned pointer 
will break
strict-aliasing rules
In file included from include/asm/smp.h:18,
                  from include/linux/smp.h:17,
                  from include/linux/sched.h:23,
                  from include/linux/module.h:10,
                  from /usr/src/mplayer/main/drivers/mga_vid.c:45:
include/asm/mpspec.h:6:25: mach_mpspec.h: No such file or directory
In file included from include/asm/smp.h:18,
                  from include/linux/smp.h:17,
                  from include/linux/sched.h:23,
                  from include/linux/module.h:10,
                  from /usr/src/mplayer/main/drivers/mga_vid.c:45:
include/asm/mpspec.h: At top level:
include/asm/mpspec.h:8: error: `MAX_MP_BUSSES' undeclared here (not in a 
functio
n)
include/asm/mpspec.h:9: error: `MAX_MP_BUSSES' undeclared here (not in a 
functio
n)
include/asm/mpspec.h:10: error: `MAX_MP_BUSSES' undeclared here (not in 
a functi
on)
include/asm/mpspec.h:12: error: `MAX_MP_BUSSES' undeclared here (not in 
a functi
on)
include/asm/mpspec.h:19: error: `MAX_APICS' undeclared here (not in a 
function)
include/asm/mpspec.h:20: error: `MAX_MP_BUSSES' undeclared here (not in 
a functi
on)
include/asm/mpspec.h:20: error: conflicting types for `mp_bus_id_to_type'
include/asm/mpspec.h:8: error: previous declaration of `mp_bus_id_to_type'
include/asm/mpspec.h:22: error: `MAX_IRQ_SOURCES' undeclared here (not 
in a func
tion)
include/asm/mpspec.h:24: error: `MAX_MP_BUSSES' undeclared here (not in 
a functi
on)
include/asm/mpspec.h:24: error: conflicting types for `mp_bus_id_to_pci_bus'
include/asm/mpspec.h:12: error: previous declaration of 
`mp_bus_id_to_pci_bus'
include/asm/mpspec.h:43: error: `MAX_APICS' undeclared here (not in a 
function)
In file included from include/asm/smp.h:20,
                  from include/linux/smp.h:17,
                  from include/linux/sched.h:23,
                  from include/linux/module.h:10,
                  from /usr/src/mplayer/main/drivers/mga_vid.c:45:
include/asm/io_apic.h:160: error: `MAX_IRQ_SOURCES' undeclared here (not 
in a fu
nction)
include/asm/io_apic.h:160: error: conflicting types for `mp_irqs'
include/asm/mpspec.h:22: error: previous declaration of `mp_irqs'
In file included from include/linux/smp.h:17,
                  from include/linux/sched.h:23,
                  from include/linux/module.h:10,
                  from /usr/src/mplayer/main/drivers/mga_vid.c:45:
include/asm/smp.h:71:26: mach_apicdef.h: No such file or directory
In file included from include/linux/smp.h:17,
                  from include/linux/sched.h:23,
                  from include/linux/module.h:10,
                  from /usr/src/mplayer/main/drivers/mga_vid.c:45:
include/asm/smp.h: In function `hard_smp_processor_id':
include/asm/smp.h:75: warning: implicit declaration of function 
`GET_APIC_ID'
In file included from /usr/src/mplayer/main/drivers/mga_vid.c:50:
include/linux/cdev.h: At top level:
include/linux/cdev.h:26: warning: `struct inode' declared inside 
parameter list
include/linux/cdev.h:26: warning: its scope is only this definition or 
declarati
on, which is probably not what you want
make[3]: *** [/usr/src/mplayer/main/drivers/mga_vid.o] Error 1
make[2]: *** [/usr/src/mplayer/main/drivers] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.6-mh11'
make[1]: *** [mga_vid.ko] Error 2
make[1]: Leaving directory `/usr/src/mplayer/main/drivers'
make: *** [all] Error 2




More information about the MPlayer-matrox mailing list