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

Re: Compilation module - kernel 2.6.5 / sid



Le dim 16/05/2004 à 13:18, JusTiCe8 a écrit :
> >>As tu installer les sources du noyau ? (paquet kernel-source-2.5.6-1 
> >>surement)
> >
> >Heu...
> >Je veux bien, mais j'utilise un noyau debian.
> >
> Oui ? où est le pb ?

C'est fait.

> >>Si ce n'est pas le cas, fait le et créér un lien du repéretoire de src 
> >>vers /usr/src/linux et compile d'abord le noyau (car les modules sont 
> >>intimement lié à la version du noyau qui est en cours d'utilisation, et 
> >>je pense qu'il faille utiliser des modules uniquement avec le noyau avec 
> >>lequel ils sont liés) et pour le config : cp /boot/config-2.xxx 
> >>/usr/src/linux/.config .
> >
> >Haaa, c'était donc ça.
> >Merci bcp ;)
> >Mais il faut que je compile quand même le noyau ??
> >  
> oui je pense

C'est fait.
Cool, je peux recompiler mon noyo (je tenterais l'aventure quand
j'aurais le temps ;)
En passant, quel serait l'intérêt de compiler mon propre noyau / à
utiliser un tout fait ? (je ne veux rien mettre en dur dedans, tout en
modules)

> make-kpkg --revision nom.rev kernel_image modules_images
> cela donnera des paquets dans /usr/src du type 
> kernel-image-2.xxx-nom.rev_i386.deb et module-version_nom.rev_i386.deb

C'est fait (enfin, j'ai pas installé le deb, mais recréé exactement le
même avec --append-to-version -1-686-smp --revision 2.6.5-4).

Par contre, pendant la compilation de plex86-kernel, j'ai toujours les
mêmes erreurs.
Une idée ?

/usr/bin/make -C emulation clean
make[3]: Entering directory `/usr/src/modules/plex86/kernel/emulation'
/bin/rm -f *.o *.so *.s
make[3]: Leaving directory `/usr/src/modules/plex86/kernel/emulation'
/usr/bin/make -C iodev clean
make[3]: Entering directory `/usr/src/modules/plex86/kernel/iodev'
/bin/rm -f *.o *.so *.s
make[3]: Leaving directory `/usr/src/modules/plex86/kernel/iodev'
/usr/bin/make -C dt clean
make[3]: Entering directory `/usr/src/modules/plex86/kernel/dt'
/bin/rm -f *.o *.so *.s
make[3]: Leaving directory `/usr/src/modules/plex86/kernel/dt'
/bin/rm -f *.o *.s plex86.o
/usr/bin/make -C emulation dist-clean
make[3]: Entering directory `/usr/src/modules/plex86/kernel/emulation'
/bin/rm -f *.o *.so *.s
/bin/rm -f Makefile
make[3]: Leaving directory `/usr/src/modules/plex86/kernel/emulation'
/usr/bin/make -C iodev dist-clean
make[3]: Entering directory `/usr/src/modules/plex86/kernel/iodev'
/bin/rm -f *.o *.so *.s
/bin/rm -f Makefile
make[3]: Leaving directory `/usr/src/modules/plex86/kernel/iodev'
/usr/bin/make -C dt dist-clean
make[3]: Entering directory `/usr/src/modules/plex86/kernel/dt'
/bin/rm -f *.o *.so *.s
/bin/rm -f Makefile
make[3]: Leaving directory `/usr/src/modules/plex86/kernel/dt'
/bin/rm -f Makefile
make[2]: Leaving directory `/usr/src/modules/plex86/kernel'
/bin/rm -f config.status config.cache config.log
/bin/rm -f Makefile config.h
sed 's/#KVERS#/2.6.5-1-686-smp/g' debian/control.template > debian/control
cp debian/dirs.template debian/dirs
echo lib/modules/2.6.5-1-686-smp/misc >> debian/dirs
dh_testdir
dh_testroot
./configure \
        --host=i386-linux \
        --build=i386-linux \
        --with-linux-source=/usr/src/linux
checking for i386-linux-gcc... i386-linux-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i386-linux-gcc accepts -g... yes
checking for i386-linux-gcc option to accept ANSI C... none needed
checking for i386-linux-g++... i386-linux-g++
checking whether we are using the GNU C++ compiler... yes
checking whether i386-linux-g++ accepts -g... yes
checking whether make sets $(MAKE)... yes
checking for i386-linux-ranlib... no
checking for ranlib... ranlib
checking how to run the C preprocessor... i386-linux-gcc -E
checking for X... no
checking for inline... inline
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for unsigned char... yes
checking size of unsigned char... 1
checking for unsigned short... yes
checking size of unsigned short... 2
checking for unsigned int... yes
checking size of unsigned int... 4
checking for unsigned long... yes
checking size of unsigned long... 4
checking for unsigned long long... yes
checking size of unsigned long long... 8
checking for select... yes
checking for dlopen in -ldl... yes
checking for instrumentation support... yes
checking for CDROM support... yes
checking for Sound Blaster 16 support... no
checking for split hard disk image support... yes
checking for NE2000 support... no
checking for i440FX PCI support... no
checking for VBE support... yes
configure: creating ./config.status
config.status: creating kernel/Makefile
config.status: creating kernel/emulation/Makefile
config.status: creating kernel/dt/Makefile
config.status: creating kernel/iodev/Makefile
config.status: creating config.h
touch configure-stamp
dh_testdir
dh_testroot
/usr/bin/make -C kernel
make[2]: Entering directory `/usr/src/modules/plex86/kernel'
i386-linux-gcc -c -g -O2 -Wall -Wstrict-prototypes -fno-strength-reduce -fomit-frame-pointer -malign-loops=2 -malign-jumps=2 -malign-functions=2 -D__KERNEL__ -I/usr/src/linux/include -DCPU=586 -DMODULE -I./include -I./.. host-linux.c
cc1: warning: -malign-loops is obsolete, use -falign-loops
cc1: warning: -malign-jumps is obsolete, use -falign-jumps
cc1: warning: -malign-functions is obsolete, use -falign-functions
host-linux.c:27:31: linux/modversions.h: No such file or directory
In file included from /usr/src/linux/include/asm/processor.h:18,
                 from /usr/src/linux/include/asm/thread_info.h:13,
                 from /usr/src/linux/include/linux/thread_info.h:21,
                 from /usr/src/linux/include/linux/spinlock.h:12,
                 from /usr/src/linux/include/linux/capability.h:45,
                 from /usr/src/linux/include/linux/sched.h:7,
                 from /usr/src/linux/include/linux/module.h:10,
                 from host-linux.c:28:
/usr/src/linux/include/asm/system.h: In function `__set_64bit_var':
/usr/src/linux/include/asm/system.h:193: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/linux/include/asm/system.h:193: warning: dereferencing type-punned pointer will break strict-aliasing rules
In file included from /usr/src/linux/include/asm/smp.h:18,
                 from /usr/src/linux/include/linux/smp.h:17,
                 from /usr/src/linux/include/linux/sched.h:23,
                 from /usr/src/linux/include/linux/module.h:10,
                 from host-linux.c:28:
/usr/src/linux/include/asm/mpspec.h:6:25: mach_mpspec.h: No such file or directory
In file included from /usr/src/linux/include/asm/smp.h:18,
                 from /usr/src/linux/include/linux/smp.h:17,
                 from /usr/src/linux/include/linux/sched.h:23,
                 from /usr/src/linux/include/linux/module.h:10,
                 from host-linux.c:28:
/usr/src/linux/include/asm/mpspec.h: At top level:
/usr/src/linux/include/asm/mpspec.h:8: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux/include/asm/mpspec.h:9: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux/include/asm/mpspec.h:10: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux/include/asm/mpspec.h:12: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux/include/asm/mpspec.h:19: error: `MAX_APICS' undeclared here (not in a function)
/usr/src/linux/include/asm/mpspec.h:20: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux/include/asm/mpspec.h:20: error: conflicting types for `mp_bus_id_to_type'
/usr/src/linux/include/asm/mpspec.h:8: error: previous declaration of `mp_bus_id_to_type'
/usr/src/linux/include/asm/mpspec.h:22: error: `MAX_IRQ_SOURCES' undeclared here (not in a function)
/usr/src/linux/include/asm/mpspec.h:24: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux/include/asm/mpspec.h:24: error: conflicting types for `mp_bus_id_to_pci_bus'
/usr/src/linux/include/asm/mpspec.h:12: error: previous declaration of `mp_bus_id_to_pci_bus'
/usr/src/linux/include/asm/mpspec.h:43: error: `MAX_APICS' undeclared here (not in a function)
In file included from /usr/src/linux/include/asm/smp.h:20,
                 from /usr/src/linux/include/linux/smp.h:17,
                 from /usr/src/linux/include/linux/sched.h:23,
                 from /usr/src/linux/include/linux/module.h:10,
                 from host-linux.c:28:
/usr/src/linux/include/asm/io_apic.h:160: error: `MAX_IRQ_SOURCES' undeclared here (not in a function)
/usr/src/linux/include/asm/io_apic.h:160: error: conflicting types for `mp_irqs'
/usr/src/linux/include/asm/mpspec.h:22: error: previous declaration of `mp_irqs'
In file included from /usr/src/linux/include/linux/smp.h:17,
                 from /usr/src/linux/include/linux/sched.h:23,
                 from /usr/src/linux/include/linux/module.h:10,
                 from host-linux.c:28:
/usr/src/linux/include/asm/smp.h:71:26: mach_apicdef.h: No such file or directory
In file included from /usr/src/linux/include/linux/smp.h:17,
                 from /usr/src/linux/include/linux/sched.h:23,
                 from /usr/src/linux/include/linux/module.h:10,
                 from host-linux.c:28:
/usr/src/linux/include/asm/smp.h: In function `hard_smp_processor_id':
/usr/src/linux/include/asm/smp.h:75: warning: implicit declaration of function `GET_APIC_ID'
host-linux.c:34:27: linux/wrapper.h: No such file or directory
In file included from host-linux.c:36:
/usr/src/linux/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory
host-linux.c: At top level:
host-linux.c:168: error: parse error before "my_devfs_entry"
host-linux.c:168: warning: type defaults to `int' in declaration of `my_devfs_entry'
host-linux.c:168: warning: data definition has no type or storage class
host-linux.c: In function `init_module':
host-linux.c:227: warning: implicit declaration of function `devfs_register'
host-linux.c:228: error: `DEVFS_FL_DEFAULT' undeclared (first use in this function)
host-linux.c:228: error: (Each undeclared identifier is reported only once
host-linux.c:228: error: for each function it appears in.)
host-linux.c:251: warning: implicit declaration of function `register_symtab'
host-linux.c: In function `cleanup_module':
host-linux.c:286: warning: implicit declaration of function `devfs_unregister'
host-linux.c: In function `plex86_ioctl':
host-linux.c:427: error: invalid operands to binary !=
host-linux.c:757:2: warning: #warning "fix this kludge"
host-linux.c: In function `plex86_mmap':
host-linux.c:763: warning: passing arg 1 of `remap_page_range' makes pointer from integer without a cast
host-linux.c:763: error: incompatible type for argument 4 of `remap_page_range'
host-linux.c:763: error: too few arguments to function `remap_page_range'
host-linux.c:791: warning: passing arg 1 of `remap_page_range' makes pointer from integer without a cast
host-linux.c:791: error: incompatible type for argument 4 of `remap_page_range'
host-linux.c:791: error: too few arguments to function `remap_page_range'
host-linux.c: In function `retrieve_monitor_pages':
host-linux.c:908: error: structure has no member named `size'
host-linux.c: In function `host_idle':
host-linux.c:1044: error: structure has no member named `need_resched'
host-linux.c: In function `host_alloc_page':
host-linux.c:1106: warning: implicit declaration of function `get_free_page'
make[2]: *** [host-linux.o] Error 1
make[2]: Leaving directory `/usr/src/modules/plex86/kernel'
make[1]: *** [build-stamp] Error 2
make[1]: Leaving directory `/usr/src/modules/plex86'
Module /usr/src/modules/plex86 failed.
Hit return to Continue?




Reply to: