[linux] Fout bij compileren kernl 2.6.8
Bram Mertens
m8ram op linux.be
Wo Jun 15 22:35:06 CEST 2005
Hey
Gisteren heb ik voor het eerst een eigen kernel gecompileerd op basis
van de config van m'n huidige kernel. Ik moet de kernel zelf nog
installeren (heb make-kpkg gebruikt om een deb te bouwen) maar eerst wil
ik een vraag stellen of m'n eerste poging.
Voor m'n eerste poging heb ik eerst de config van m'n huidige kernel uit
/boot/ naar /usr/src/kernel-source-2.6.8/.config gekopieerd. Daarna heb
ik make oldconfig gevolgd door make menuconfig gebruikt om een aantal
zaken uit de kernel te smijten.
Blijkbaar ben ik daar als "newbie" net iets te drastisch in geweest want
fakeroot make-kpkg --append-to-version=.050614
gaf vrij snel volgende fout:
CC arch/i386/kernel/cpu/intel.o
In file included from arch/i386/kernel/cpu/intel.c:19:
include/asm-i386/mach-visws/mach_apic.h: In function
`cpu_present_to_apicid':
include/asm-i386/mach-visws/mach_apic.h:66: error: `BAD_APICID'
undeclared (first use in this function)
include/asm-i386/mach-visws/mach_apic.h:66: error: (Each undeclared
identifier is reported only once
include/asm-i386/mach-visws/mach_apic.h:66: error: for each function it
appears in.)
make[3]: *** [arch/i386/kernel/cpu/intel.o] Error 1
make[2]: *** [arch/i386/kernel/cpu] Error 2
make[1]: *** [arch/i386/kernel] Error 2
make[1]: Leaving directory `/usr/src/kernel-source-2.6.8'
make: *** [stamp-build] Error 2
De build (met enkel make oldconfig) die wel gelukt is gaf wel enkele
meldingen zoals:
CC drivers/char/tty_ioctl.o
drivers/char/tty_ioctl.c: In function `n_tty_ioctl':
drivers/char/tty_ioctl.c:397: warning: unused variable `flags'
...
CC net/ipv4/fib_hash.o
net/ipv4/fib_hash.c: In function `fib_get_idx':
net/ipv4/fib_hash.c:978: warning: initialization from incompatible
pointer type
net/ipv4/fib_hash.c:981: warning: assignment from incompatible pointer type
...
CC [M] fs/asfs/file.o
fs/asfs/file.c: In function `asfs_get_block':
fs/asfs/file.c:44: warning: long int format, different type arg (arg 2)
fs/asfs/file.c:47: warning: long int format, different type arg (arg 2)
...
CC [M] fs/smbfs/inode.o
fs/smbfs/inode.c: In function `smb_fill_super':
fs/smbfs/inode.c:563: warning: comparison is always false due to limited
range of data type
fs/smbfs/inode.c:564: warning: comparison is always false due to limited
range of data type
...
CC [M] drivers/atm/ambassador.o
drivers/atm/ambassador.c: In function `do_pci_device':
drivers/atm/ambassador.c:2294: warning: unused variable `membase'
drivers/atm/ambassador.c:2295: warning: unused variable `iobase'
...
CC [M] drivers/atm/fore200e.o
objcopy -Iihex drivers/atm/pca200e.data -Obinary drivers/atm/pca200e.bin.gz
gzip -df drivers/atm/pca200e.bin.gz
HOSTCC drivers/atm/fore200e_mkfirm
drivers/atm/fore200e_mkfirm -k -b _fore200e_pca_fw \
-i drivers/atm/pca200e.bin -o drivers/atm/fore200e_pca_fw.c
...
CC [M] drivers/cdrom/sbpcd.o
drivers/cdrom/sbpcd.c: In function `__sbpcd_init':
drivers/cdrom/sbpcd.c:5680: warning: `check_region' is deprecated
(declared at include/linux/ioport.h:121
)
...
CC [M] drivers/char/epca.o
drivers/char/epca.c: In function `do_softint':
drivers/char/epca.c:3301: warning: `MOD_DEC_USE_COUNT' is deprecated
(declared at include/linux/module.h:
567)
...
CC [M] drivers/char/ip2main.o
drivers/char/ip2main.c: In function `ip2_tiocmget':
drivers/char/ip2main.c:1996: warning: unused variable `wait'
drivers/char/ip2/i2lib.c: At top level:
drivers/char/ip2/i2cmd.c:142: warning: `ct89' defined but not used
drivers/char/ip2main.c:205: warning: `set_modem_info' declared `static'
but never defined
...
CC [M] drivers/char/rio/rio_linux.o
drivers/char/rio/rio_linux.c: In function `rio_init':
drivers/char/rio/rio_linux.c:1142: warning: use of cast expressions as
lvalues is deprecated
drivers/char/rio/rio_linux.c:1200: warning: use of cast expressions as
lvalues is deprecated
drivers/char/rio/rio_linux.c:1246: warning: use of cast expressions as
lvalues is deprecated
...
CC [M] drivers/char/rio/riotable.o
drivers/char/rio/riotable.c: In function `RIOApel':
drivers/char/rio/riotable.c:448: warning: comparison of distinct pointer
types lacks a cast
drivers/char/rio/riotable.c:482: warning: comparison of distinct pointer
types lacks a cast
CC [M] drivers/char/rio/riotty.o
drivers/char/rio/riotty.c: In function `riotclose':
drivers/char/rio/riotty.c:668: warning: comparison of distinct pointer
types lacks a cast
...
CC [M] drivers/isdn/capi/capidrv.o
drivers/isdn/capi/capidrv.c:2109:10: warning: #warning FIXME: maybe a
race condition the card should be r
emoved here from global list /kkeil
...
CC [M] drivers/isdn/hardware/avm/b1pcmcia.o
drivers/isdn/hardware/avm/b1pcmcia.c: In function `b1pcmcia_init':
drivers/isdn/hardware/avm/b1pcmcia.c:203: warning: unused variable `err'
...
CC [M] drivers/isdn/i4l/isdn_v110.o
drivers/isdn/i4l/isdn_v110.c: In function `isdn_v110_stat_callback':
drivers/isdn/i4l/isdn_v110.c:523: warning: `ret' might be used
uninitialized in this function
...
CC [M] drivers/isdn/icn/icn.o
drivers/isdn/icn/icn.c:719:18: warning: #warning TODO test headroom or
use skb->nb to flag ACK
...
CC [M] drivers/media/dvb/frontends/alps_tdlb7.o
drivers/media/dvb/frontends/alps_tdlb7.c:58: warning: `errno' defined
but not used
(dit komt nog enkele malen voor in andere modules)
...
CC [M] drivers/mtd/nftlmount.o
drivers/mtd/nftlmount.c: In function `find_boot_record':
drivers/mtd/nftlmount.c:44: warning: unused variable `oob'
...
CC [M] drivers/net/via-rhine.o
drivers/net/via-rhine.c: In function `rhine_init_one':
drivers/net/via-rhine.c:755: warning: `return' with no value, in
function returning non-void
...
CC [M] drivers/net/at1700.o
In file included from drivers/net/at1700.c:46:
include/linux/mca-legacy.h:12:2: warning: #warning "MCA legacy - please
move your driver to the new sysfs
api"
(dit komt nog een keer voor)
...
CC [M] drivers/parport/parport_pc.o
drivers/parport/parport_pc.c: In function `sio_via_probe':
drivers/parport/parport_pc.c:2497: warning: `ppcontrol' might be used
uninitialized in this function
...
CC [M] drivers/pcmcia/i82365.o
drivers/pcmcia/i82365.c: In function `is_alive':
drivers/pcmcia/i82365.c:672: warning: `check_region' is deprecated
(declared at include/linux/ioport.h:12
1)
(komt nog voor)
...
drivers/pcmcia/i82365.c: In function `i365_set_io_map':
drivers/pcmcia/i82365.c:1134: warning: comparison is always false due to
limited range of data type
(komt meermaals voor)
...
CC [M] drivers/scsi/psi240i.o
drivers/scsi/psi240i.c:713: warning: initialization from incompatible
pointer type
drivers/scsi/psi240i.c:714: warning: initialization from incompatible
pointer type
...
CC [M] drivers/scsi/ch.o
In file included from drivers/scsi/ch.c:42:
drivers/scsi/hosts.h:1:2: warning: #warning "This file is obsolete,
please use <scsi/scsi_host.h> instead
"
drivers/scsi/ch.c:49: warning: `check_busy' defined but not used
Zoals gezegd moet ik de kernel zelf nog testen maar het compileren lijkt
verder zonder problemen verlopen.
Moet ik dergelijke fouten/waarschuwingen ergens melden? Of is dit
normaal gedrag?
Alvast bedankt
Bram
More information about the Linux
mailing list