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

Can't compile from kernel-source-2.4.19



Hi,

I'm trying to compile Debian on AlphaServer 800 from kernel-source-2.4.19.

I got the following two errors.

1.

gcc -D__KERNEL__ -I/usr/src/kernel-source-2.4.19/include -Wall -Wstrict-prototypes -Wno-trigraphs -O 2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mno-fp-regs -ffixed-8 -mcpu=ev5 -Wa,- mev6 -nostdinc -I /usr/lib/gcc-lib/alpha-linux/2.95.4/include -DKBUILD_BASENAME=nvram -c -o nvram
.o nvram.c
nvram.c:49: #error Cannot build nvram driver for this machine configuration.
nvram.c:399: warning: initialization from incompatible pointer type
nvram.c: In function `nvram_init':
nvram.c:419: warning: implicit declaration of function `CHECK_DRIVER_INIT'
nvram.c: At top level:
nvram.c:119: warning: `mach_check_checksum' used but never defined
nvram.c:120: warning: `mach_set_checksum' used but never defined
nvram.c:123: warning: `mach_proc_infos' used but never defined
make[3]: *** [nvram.o] Error 1

2
Next, after removing nvram support from config file.

gcc -E -D__KERNEL__ -I/usr/src/kernel-source-2.4.19/include -xc -P arch/alpha/vmlinux.lds.in -o arch
/alpha/vmlinux.lds
ld -static -T arch/alpha/vmlinux.lds -N arch/alpha/kernel/head.o init/main.o init/version.o init/do
_mounts.o \
       --start-group \
arch/alpha/kernel/kernel.o arch/alpha/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o arch
/alpha/math-emu/math-emu.o \
drivers/char/char.o drivers/block/block.o drivers/misc/misc.o drivers/net/net.o drivers/med ia/media.o drivers/scsi/scsidrv.o drivers/cdrom/driver.o drivers/pci/driver.o drivers/video/video.o
drivers/md/mddev.o \
       net/network.o \
/usr/src/kernel-source-2.4.19/arch/alpha/lib/lib.a /usr/src/kernel-source-2.4.19/lib/lib.a /
usr/src/kernel-source-2.4.19/arch/alpha/lib/lib.a \
       --end-group \
       -o vmlinux
kernel/kernel.o: In function `kernel_thread':
kernel/kernel.o(.text+0x2ef8): undefined reference to `arch_kernel_thread'
kernel/kernel.o(.text+0x2efc): undefined reference to `arch_kernel_thread'
make: *** [vmlinux] Error 1

Many thanks in advance!!!
BR,
Dub

P.S.

BTW, I know that one should use 'make boot' instead of 'make bzImage' on alpha. Anyway, is it possible to make somehow compressed kernel? Generic ones are small and compressed.

_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail



Reply to: