Re: Error in kernel compilation

From: Kasper Dupont (abuse_at_wfbtxutyalwrmianeanaimlqcc.skrammel.yaboo.dk)
Date: 07/02/04


Date: Fri, 02 Jul 2004 23:38:19 +0200

Vineet Joglekar wrote:
>
> Hi all,
>
> I downloaded kernel 2.4.20 in my home directory. switched to root.

You shouldn't. (Not that it is related to the problem). Don't
do more as root than necesarry. You can compile the kernel as
nonpriveleged user and switch to root just for installing.

> I
> did 'make xconfig'. Din't do any changes, saved and exit. on command
> prompt I typed 'make dep' which was successful and then 'make'. The
> result of make was as follows: (these are the last few lines of the
> output)
>
> make[3]: Entering directory `/home/vineet/linux-2.4.20/drivers/ide'
> ld -m elf_i386 -r -o ide-mod.o ide.o ide-features.o ide-taskfile.o
> cmd640.o ide-adma.o ide-dma.o ide-pci.o piix.o rz1000.o ide-proc.o
> ld -m elf_i386 -r -o ide-probe-mod.o ide-probe.o ide-geometry.o
> gcc -D__KERNEL__ -I/home/vineet/linux-2.4.20/include -Wall
> -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing
> -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2
> -march=i686 -nostdinc -iwithprefix include -DKBUILD_BASENAME=ide_cd
> -c -o ide-cd.o ide-cd.c
> In file included from ide-cd.c:318:
> ide-cd.h:440: error: long, short, signed or unsigned used invalidly
> for `slot_tablelen'
> make[3]: *** [ide-cd.o] Error 1
> make[3]: Leaving directory `/home/vineet/linux-2.4.20/drivers/ide'
> make[2]: *** [first_rule] Error 2
> make[2]: Leaving directory `/home/vineet/linux-2.4.20/drivers/ide'
> make[1]: *** [_subdir_ide] Error 2
> make[1]: Leaving directory `/home/vineet/linux-2.4.20/drivers'
> make: *** [_dir_drivers] Error 2
> [root@localhost linux-2.4.20]#
>
> Can someone please help me regarding this?

Since it is very unlikely that the kernel would be released
without testing a build with the default options, the
problem is most likely to be somehow related to the version
of the programs in your toolchain. Which gcc version are
you using? Check what the documentation says about the
requirements, and that your toolchain satisfy it.

-- 
Kasper Dupont -- der bruger for meget tid paa usenet.
For sending spam use kasperd@kd.lir.dk and abuse@kd.lir.dk
I'd rather be a hammer than a nail.


Relevant Pages

  • Stock 2.4.16 kernel, initrd and ext3
    ... I've been wanting to switch from ext2 to ext3 on this machine, ... the root filesystem. ... Now, my understanding is that this kernel uses initrd, and thus it'll be ...
    (Debian-User)
  • Re: Etch on USB-HD wont boot - race condition?
    ... notebook but the kernel cannot find the root filesystem. ... I had an initial problem that I think I got solved: On boot, ... Begin: Mounting root file system... ... SCSI device sda: 78140159 512-byte hdwr sectors ...
    (Debian-User)
  • Re: Flaws in recent Linux kernels
    ... Many distributions include other programs which may be ... suitable for exploiting the kernel vulnerability. ... possible to install third-party SUID root programs which may be used. ... A new revision of the Openwall Linux kernel patch, 2.2.19-ow3, is now ...
    (Bugtraq)
  • Re: Beige PowerMac G3/266 trouble
    ... I downloaded the minimal "netinst" install CD image from ... The kernel initially seemed to load OK, and told me that it had found the ... At this point it threw up an error saying it couldn't open the root device ... request_module: runaway loop modprobe binfmt-0000 ...
    (comp.os.linux.powerpc)
  • Re: 2.6.9-rc2-mm1
    ... Fails to boot on my Altix. ... diff between 2.6.9-rc1-mm4 and 2.6.9-rc2 indicates some kind of PCI, ... Mounted root readonly. ... -doneshowconsole: Warning: the ioctl TIOCGDEV is not known by the kernel ...
    (Linux-Kernel)