LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-29-2011, 07:52 PM   #1
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,267

Rep: Reputation: 32
trouble when compiling and installing a new kernel


i downloaded the latest stable release of the linux kernel
2.6.39
and i did the following

ran the command
Code:
make xconfig
and there were no errors so far so good

then i ran
Code:
make
in the mix of all the command line and characters one of the lines said
Code:
stack protector enabled but no compiler support
because of this the rest of the installation process is not going well i am unable to install the new linux kernel successfully. the kernel shows up on the grub boot menu but goes into a kernel panic when i try to boot it. how do i compile the new kernel in debian squeeze
 
Old 05-29-2011, 07:57 PM   #2
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Did you install the build-essential package? (I think you did, but just in case) Go back to make xconfig and find out what setting requires the compiler support (hint: it's probably in the error message itself)
 
Old 05-29-2011, 08:04 PM   #3
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,267

Original Poster
Rep: Reputation: 32
build-essential is installed or else the make command wouldn't have worked as for the other part of your suggestion, i have no idea what settings require the compiler support all i saw was that it said the stack protector was enabled. does this mean i have to disable it in the configuration step
 
Old 05-29-2011, 08:07 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Do you have created an initrd for that kernel? This is necessary if you compile a driver that is necessary for the boot process, like the driver for your disk controller or the filesystem you use, as a module instead built-in.
 
Old 05-29-2011, 08:14 PM   #5
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,267

Original Poster
Rep: Reputation: 32
i don't think creating the initrd image for the kernel is possible when i stop at the make step, something needs to be installed or disabled
 
Old 05-29-2011, 08:25 PM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
You said that you could install the new kernel and choose it in grub. How is that possible if the compiling aborts?

Any ways, it would help if you post the error-messages you get, otherwise we can only guess what is going wrong. "is not going well" is not a sufficient error description.
 
Old 05-29-2011, 08:33 PM   #7
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Over the years I found that using the Debianised sources (eg linux-source-2.6.39) and make-kpkg saves me much frustration. Any reason you are not using this approach?

Evo2.
 
Old 05-29-2011, 08:40 PM   #8
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,267

Original Poster
Rep: Reputation: 32
i've never upgraded kernel in debian before but i hear doing it from source makes it more customizable for the user, unless your method saves both time and frustration is it customizable like it would be when you install from source

i unchecked this option in the xconfig menu
Code:
Enable -fstack-protector buffer overflow detection (EXPERIMENTAL)
 
Old 05-30-2011, 05:24 AM   #9
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Rep: Reputation: Disabled
Quote:
Originally Posted by evo2 View Post
Over the years I found that using the Debianised sources (eg linux-source-2.6.39) and make-kpkg saves me much frustration. Any reason you are not using this approach?

Evo2.
same here. And its so good, that i did never check any other method.

http://forums.debian.net/viewtopic.php?t=36525
and here is a short version:
http://forums.debian.net/viewtopic.php?p=212790#p212790
You, baronbeefdip, might also want to look into "make localmodconfig" (with the same method, but additionally).
`lspci -k` will tell you the kernel-drivers you actually use (but if you follow the how-tos, and cp the actual config or create it with localmodconfig, it will not be of need. If you run into trouble it might help).

I think you misunderstood evo2. He didn't say to install a deb-package of a kernel (which would be an upgrade), he said to use the debianized sources and compile them. Do "apt-cache search linux-source | less" and you will see. After install it will be at /usr/src. Then follow the how-to.

Last edited by j1alu; 05-30-2011 at 05:31 AM.
 
Old 05-30-2011, 06:15 AM   #10
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
It is installing from source, except packages are made and certain checks/tasks are performed (eg making sure that your bootloader is configured correctly). Install kernel-package and have a read of /usr/share/doc/kernel-package/README.gz

Evo2.
 
  


Reply



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
trouble compiling kernel sancho1980 Debian 14 09-30-2006 04:44 PM
Trouble compiling Kernel 2.6.10 AJones Debian 8 02-13-2005 03:28 AM
having trouble while compiling kernel.. The_eXXe Mandriva 12 09-02-2004 01:53 PM
Having trouble compiling 2.6.3 kernel s1lv1a9999 Linux - Software 2 03-03-2004 01:14 AM
Trouble when compiling the 2.6.2 kernel Menestrel Linux - Software 1 02-14-2004 07:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:48 AM.

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