LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 09-19-2005, 10:17 PM   #1
xjm
LQ Newbie
 
Registered: Nov 2004
Location: china
Posts: 1

Rep: Reputation: 0
Question KERNEL 2.6 compilation error message


The following is KERNEL 2.6.10 compilation error message while update KERNEL from 2.4.20-8 to KERNEL 2.6.10 under Red Hat 9.0.
[root@xjm module-init-tools-3.0]# depmod -V
module-init-tools 0.9.10
[root@xjm src]# cd /usr/src/linux-2.6.10/
[root@xjm linux-2.6.10]# make mrproper
[root@xjm linux-2.6.10]# cp arch/i386//defconfig ./.config
[root@xjm linux-2.6.10]# make menuconfig
[root@xjm linux-2.6.10]# make && make modules && make modeules_install && make install
CHK include/linux/version.h
UPD include/linux/version.h
... ...
CC fs/ioctl.o
CC fs/readdir.o
fs/readdir.c: In function `filldir64':
fs/readdir.c:260: internal error--unrecognizable insn:
(insn 184 183 451 (set (reg/v:SI 4 %esi)
(asm_operands/v ("1: movl %%eax,0(%2)
2: movl %%edx,4(%2)
3:
.section .fixup,"ax"
4: movl %3,%0
jmp 3b
.previous
.section __ex_table,"a"
.align 4
.long 1b,4b
.long 2b,4b
.previous") ("=r") 0[
(regI 1 %edx)
(reg:SI 0 %eax)
(const_int -14 [0xfffffff2])
(reg/v:SI 4 %esi)
]
[
(asm_inputI ("A"))
(asm_input:SI ("r"))
(asm_input:SI ("i"))
(asm_input:SI ("0"))
] ("fs/readdir.c") 242)) -1 (insn_list 181 (insn_list 183 (nil)))
(nil))
cpp: output pipe has been closed
make[1]: *** [fs/readdir.o] Error 1
make: *** [fs] Error 2
[root@xjm linux-2.6.10]#
 
Old 09-20-2005, 01:15 AM   #2
linux-rulz
Member
 
Registered: Dec 2004
Distribution: Windows XP Home, Ubuntu Hoary
Posts: 584

Rep: Reputation: 30
Have you thought about trying the latest kernel (2.6.13.2)?

Also, if you are going to start tearing the system apart, why not just upgrade to CentOS or Fedora Core?
 
Old 09-20-2005, 06:49 AM   #3
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Gentoo on headless; Arch on everything that requires a GUI
Posts: 6,941

Rep: Reputation: 137Reputation: 137
Re: KERNEL 2.6 compilation error message

Quote:
Originally posted by xjm
The following is KERNEL 2.6.10 compilation error message while update KERNEL from 2.4.20-8 to KERNEL 2.6.10 under Red Hat 9.0.
[root@xjm module-init-tools-3.0]# depmod -V
module-init-tools 0.9.10
[root@xjm src]# cd /usr/src/linux-2.6.10/
[root@xjm linux-2.6.10]# make mrproper
[root@xjm linux-2.6.10]# cp arch/i386//defconfig ./.config
[root@xjm linux-2.6.10]# make menuconfig
[root@xjm linux-2.6.10]# make && make modules && make modeules_install && make install
<snip, snip>
[root@xjm linux-2.6.10]#
This is what I see. You have some errors in your commands, and you are
using the wrong procedure to compile a Linux-2.6.x.y kernel. I don't know
RedHat, but I know "cp arch/i386//defconfig ./.config" has two slashes in
between i386 and defconfig. While I don't know why this command is used
at that point, I know that a directory structure only contains one slash.

And here "make && make modules && make modeules_install && make install"
you spelled modules incorrectly. Also, those steps for compiling are wrong.

I don't know which kernel guide you followed, but here are three sources
with the correct options for compiling a 2.6 series kernel:

First, Linus Torvald's instructions in ./linux-2.6.x.y/README
Second, Kwan Lowe's Kernel Build HOW-TO
(be sure to build your kernel under /home as Linus instructs)
Third, Jesper Juhl's Guide to building a 2.6 kernel
(the System.map "shell magic" is not necessary)

If you will compile your kernel under your /home directory somewhere as Linus
instructs, and follow the proper steps for a 2.6.x.y kernel, you might not get
those errors.
 
Old 09-20-2005, 07:21 AM   #4
linux-rulz
Member
 
Registered: Dec 2004
Distribution: Windows XP Home, Ubuntu Hoary
Posts: 584

Rep: Reputation: 30
To hijack the thread for one quick question, where do the headers go when you compile your own kernel? Can you delete the source later and still compile new kernel modules?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel compilation error: Error 15: File not found Niceman2005 Linux - General 9 10-04-2007 03:45 AM
compilation freeswan error message technik Linux - Software 0 02-14-2005 08:01 AM
kernel compilation error bond_7942 Linux - Newbie 2 02-02-2005 01:14 PM
kernel compilation error bond_7942 Linux - General 1 02-02-2005 04:35 AM
kernel compilation error bunty Linspire/Freespire 0 09-08-2004 09:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 11:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration