LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-01-2004, 05:34 PM   #1
kpachopoulos
Member
 
Registered: Feb 2004
Location: Athens, Greece
Distribution: Gentoo,FreeBSD, Debian
Posts: 705

Rep: Reputation: 30
understanding kernel compilation errors


I'm trying the past few days to compile my kernel. However errors keep on appearing. Is there a documentation about these errors? So i would be able to understand them and choose the right options in "menuconfig". I haven't found yet what i am asking for. The ideal of course would be a database, where somebody would right the errors or some key words and would find entries having to do with his problem and how to fix it, or choose the right options in "menuconfig".
 
Old 10-01-2004, 06:12 PM   #2
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
What kernel and what errors?

Incorrect config options don't usually cause errors, rather just mean problems later whn the kernel runs...

If you carefully select and read each config option you should really have no trouble...
 
Old 10-02-2004, 03:49 AM   #3
kpachopoulos
Member
 
Registered: Feb 2004
Location: Athens, Greece
Distribution: Gentoo,FreeBSD, Debian
Posts: 705

Original Poster
Rep: Reputation: 30
By "kernel errors", i mean things like that:
----------------------------------------------------------------------
make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
CHK include/asm-i386/asm_offsets.h
CHK include/linux/compile.h
GEN .version
CHK include/linux/compile.h
UPD include/linux/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
arch/i386/kernel/built-in.o(.text+0xd2b): In function `arch_align_stack':
: undefined reference to `exec_shield_randomize'

arch/i386/kernel/built-in.o(.text+0xea5): In function `randomize_range':
: undefined reference to `exec_shield_randomize'

fs/built-in.o(.text+0x1ef30): In function `load_elf_binary':
: undefined reference to `exec_shield'

fs/built-in.o(.text+0x1f094): In function `load_elf_binary':
: undefined reference to `exec_shield'
make: *** [.tmp_vmlinux1] Error 1
 
Old 10-02-2004, 04:42 AM   #4
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
what kernel are you trying to build? Is the build environment set up right - ie have you built a kernel before on this system - esp a clean generic kernel from kernel.org?

My first thing to try would be to check to see if exec_shield (X86_MCE) is selected in Processor type and features and see if it compiles okay with it on... seems to be some component looking for the exec_shield calls to me...

Sorry I don't know of any reference to cover all of this aside from reading errors like these and the kernel docs and so forth...
 
Old 10-02-2004, 05:36 AM   #5
Onimisi
LQ Newbie
 
Registered: Nov 2003
Location: Nigeria
Posts: 3

Rep: Reputation: 0
What kernel version?

Hello,
I have difficulties compiling the linux 2.4.25 kernel and I was able to resolve my problems.
My major problem was about understanding the cnfiguration options. One mistake, and I had to start all over again.
In one situation, the kernel compiled correctly, but it could not boot, because of an outdated grub bootloader.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Errors in Kernel Compilation btech_it Fedora 2 09-20-2005 04:27 AM
Kernel compilation errors! Please help! luiso_campeon Linux - Software 3 04-25-2005 11:49 AM
kernel compilation errors vinmoh Linux - General 6 04-14-2005 11:14 AM
kernel compilation errors vishamr2000 Red Hat 3 04-09-2005 11:33 PM
kernel compilation errors spork545 Red Hat 4 10-15-2003 09:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:16 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration