LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 10-24-2015, 01:57 PM   #1
dave9862012
LQ Newbie
 
Registered: Oct 2015
Posts: 1

Rep: Reputation: Disabled
building first kernel


I'm having issues building a linux kernel. I downloaded the latest stable copy of the linux kernel from linux.org. I decompressed it successfully and then made a copy to work on. then when I went to configure the kernel, I'm getting a curious error. I've verified the ncurses is installed. I've tried using the root and it still doesn't work.

I use the code:
make menuconfig

I get the error:

HOSTCC scripts/basic/fixdep
/bin/sh: gcc: command not found
scripts/Makefile.host:91: recipe for target 'scripts/basic/fixdep' failed
make[1]: *** [scripts/basic/fixdep] Error 127
Makefile:439: recipe for target 'scripts_basic' failed
make: *** [scripts_basic] Error 2


I am using fedora and am still a relatively new linux user. If anyone can help me with this, I would appreciate it. Thank you.
 
Old 10-24-2015, 02:33 PM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
The kernel source is not free any more.
 
Old 10-24-2015, 02:42 PM   #3
Rinndalir
Member
 
Registered: Sep 2015
Posts: 733

Rep: Reputation: Disabled
Quote:
Originally Posted by dave9862012 View Post
I downloaded the latest stable copy of the linux kernel from linux.org.
Always best to get your kernel source from kernel.org

Quote:
/bin/sh: gcc: command not found
Install gcc.
 
Old 10-24-2015, 03:19 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
Quote:
Originally Posted by Keruskerfuerst View Post
The kernel source is not free any more.
Why would you take a thread from the Zero Reply List with such a nonsense answer? As a longtime LQ member you clearly should know better.

Anyways, as Rinndalir pointed out, the system is missing the gcc compiler. You could install it using Yum or DNF (depending on which version of Fedora you use), but might still be missing other tools. Easiest way to set up Fedora for development work is to install the "Development Tools" package group, for example on Fedora 22 with
Code:
dnf groups install "Development Tools"
After that your system should be set up to go on further with your kernel experiments. Keep in mind that it is strongly discouraged by the kernel developers to compile the kernel as root, do it as regular user.
 
1 members found this post helpful.
Old 10-25-2015, 12:08 AM   #5
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
You should know, that my answer depends on M.
 
Old 10-25-2015, 05:15 AM   #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
Quote:
Originally Posted by Keruskerfuerst View Post
You should know, that my answer depends on M.
No, I shouldn't, since I don't even know what you mean with M. Nonetheless, as a long time member you know the rules and have to abide to them. To not derail this thread, please contact me via PM or email if you want to discuss this any further.
 
Old 10-25-2015, 08:51 AM   #7
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
No.
 
  


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
A rather odd kernel build error while building a powerpc version of kernel 3.0.3 bloggins666 Linux - Kernel 2 01-29-2015 10:08 AM
Building an out-of-tree module without building the kernel source lijodevasia Linux - General 2 08-01-2013 12:45 AM
LXer: Building Your Own Linux Kernel: Tricky kernel options (part 3) LXer Syndicated Linux News 0 10-23-2009 02:50 AM
kernel panic after building custom kernel for macbook sparrott Linux - Laptop and Netbook 1 06-29-2007 05:06 PM
Building kernel module from multiple source file in 2.6 kernel yogeshwar_s Programming 1 12-20-2004 09:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 02:38 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