Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-25-2007, 10:42 AM   #1
LQ Newbie
Registered: Nov 2007
Posts: 2

Rep: Reputation: 0
Kernel make error

i am using the source, fedora 7, trying to compile a custom kernel..

[root@75-106-169-140 linux-]# make
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf -s arch/i386/Kconfig
CHK include/linux/version.h
CHK include/linux/utsrelease.h
CC arch/i386/kernel/asm-offsets.s
GEN include/asm-i386/asm-offsets.h
CALL scripts/
HOSTCC scripts/genksyms/genksyms.o
HOSTCC scripts/genksyms/lex.o
HOSTCC scripts/genksyms/parse.o
HOSTLD scripts/genksyms/genksyms
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
HOSTCC scripts/kallsyms
HOSTCC scripts/pnmtologo
HOSTCC scripts/conmakehash
HOSTCC scripts/bin2c
CC init/main.o
CHK include/linux/compile.h
UPD include/linux/compile.h
CC init/version.o
CC init/do_mounts.o
CC init/do_mounts_rd.o
CC init/do_mounts_initrd.o
CC init/do_mounts_md.o
LD init/mounts.o
CC init/initramfs.o
CC init/calibrate.o
LD init/built-in.o
HOSTCC usr/gen_init_cpio
GEN usr/initramfs_data.cpio.gz
AS usr/initramfs_data.o
LD usr/built-in.o
CC arch/i386/kernel/process.o
CC arch/i386/kernel/signal.o
AS arch/i386/kernel/entry.o
CC arch/i386/kernel/traps.o
CC arch/i386/kernel/irq.o
CC arch/i386/kernel/ptrace.o
CC arch/i386/kernel/time.o
CC arch/i386/kernel/ioport.o
CC arch/i386/kernel/ldt.o
CC arch/i386/kernel/setup.o
arch/i386/kernel/setup.c: In function ‘setup_arch’:
arch/i386/kernel/setup.c:665: error: ‘c’ undeclared (first use in this function)
arch/i386/kernel/setup.c:665: error: (Each undeclared identifier is reported only once
arch/i386/kernel/setup.c:665: error: for each function it appears in.)
arch/i386/kernel/setup.c:501:1: error: unterminated #ifndef
make[1]: *** [arch/i386/kernel/setup.o] Error 1
make: *** [arch/i386/kernel] Error 2

i cannot narrow down what this error means, any help would be great!
Old 11-25-2007, 12:18 PM   #2
Senior Member
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 57
You should read The Linux kernel in a nutshell, here is a direct link to a compressed version;

One need to create a configuration for the kernel, you seem to have missed this step. For the Red Hat family the steps in order are;

make mrproper
make oldconfig
make menuconfig
make modules_install
make install

The make oldconfig will create a configuration based on your hardware. The make menuconfig step is where one can check and make additional tweaks and/or changes before building.

After one is done and are happy with the new kernel then one can go back and run make rpm. One can then install this kernel rpm package only to the rpm database if desired. No need to install what is already installed.

rpm -ivh --justdb kernel*.rpm

Old 11-25-2007, 03:38 PM   #3
LQ Newbie
Registered: Nov 2007
Posts: 2

Original Poster
Rep: Reputation: 0
thanks man i will give that a shot!


custom, error, kernel

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 make error ravi.xolve Linux - General 1 11-11-2006 12:17 AM
Kernel make error. njbrain Linux - Software 2 04-13-2006 05:38 PM
kernel make error edgjerp Linux - Software 0 03-15-2006 11:49 AM
make bzImage - error with kernel 2.4.26 2mk-master Linux - Newbie 2 03-02-2005 04:28 PM
kernel 2.6.1 make error _mu_ Slackware 3 02-03-2004 11:33 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:12 AM.

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