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

Re: Compiling a kernel: no success yet



On Thu, 14 Jan 1999, Stephane Bortzmeyer wrote:

> 1) 2.2.0-pre7, retrieved from a mirror of ftp.kernel.org, compiled "by hand" 
> (make menuconfig; make; make). The kernel compiles, starts booting, displays 
> the SCSI controller (a Qlogic) and hangs. Nothing after "scsi: 1 host".

I've heard of quite a few problems with the 2.2.0-pre series, fyi.  I
haven't tried them on the UDB yet because of this.

> 2) 2.1.125, from kernel-source-2.1.125, compiled with make-kpkg:
> 
> gcc -D__KERNEL__ -I/usr/local/src/kernel/kernel-source-2.1.125/include -Wall 
> -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -mno-fp-regs -ffixed-8 
> -Wa,-m21164a -DBWIO_ENABLED   -c -o dma.o dma.c
> dma.c:35: parse error before `dma_spin_lock'
> dma.c:35: warning: type defaults to `int' in declaration of `dma_spin_lock'
> dma.c:35: `SPIN_LOCK_UNLOCKED' undeclared here (not in a function)
> dma.c:35: warning: data definition has no type or storage class

Comment out the SMP=1 line in the main Makefile.  SMP is disabled by
default on the 2.0 kernels, but the 2.1's (with one or two exceptions)
have SMP enabled by default, which will bomb during compilation.

Plus, SMP is only supported on the Alpha with patches so far (nothing has
been incorporated into the kernel source yet).

> 3) 2.0.36, from kernel-source-2.0.36, compiled with make-kpkg, after Paul 
> Slootman's patches in arch/alpha/Makefile:
> 
> gcc -D__KERNEL__ -I/usr/local/src/kernel/kernel-source-2.0.36/include -Wall 
> -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce -pipe 
> -mno-fp-regs -Wa,-m21164a -DBWX_USABLE -DBWIO_ENABLED  -c -o tty_io.o tty_io.c
> selection.h: In function `scr_writew':
> In file included from tty_io.c:77:
> selection.h:113: `con_blitc' undeclared (first use in this function)
> selection.h:113: (Each undeclared identifier is reported only once
> selection.h:113: for each function it appears in.)
> selection.h:114: `con_blitc' used prior to declaration
> selection.h:114: warning: implicit declaration of function `con_blitc'
> selection.h: In function `memsetw':
> selection.h:114: `con_blitc' used prior to declaration
> selection.h: In function `memcpyw':
> selection.h:114: `con_blitc' used prior to declaration

This happened to me but I can't remember for the life of me how I fixed
it.  Play with the options in 'make config' relating to the framebuffer
support and console support.  I think in my case that it had to do with
the TGA, but you wouldn't have that problem (but it's probably similar).

> 4) Linux 2.1.132, retrieved from a mirror of ftp.kernel.org, compiled by hand:

2.1.132 wouldn't compile for me either....anywhere (LX and UDB).

C


Reply to: