error occurred when making linux kernel 3.12
I want to make the latest kernel release.
and when i run the "make config" command,
an error occurred, following is the gcc log:
In file included from /usr/include/x86_64-linux-gnu/bits/posix1_lim.h:157:0,
from /usr/include/limits.h:145,
from /usr/lib/gcc/x86_64-linux-gnu/4.7/include-fixed/limits.h:169,
from /usr/lib/gcc/x86_64-linux-gnu/4.7/include-fixed/syslimits.h:7,
from /usr/lib/gcc/x86_64-linux-gnu/4.7/include-fixed/limits.h:34,
from scripts/basic/fixdep.c:114:
/usr/include/x86_64-linux-gnu/bits/local_lim.h:39:26: 致命错误: linux/limits.h:没有那个文件或目录
编译中断。
make[1]: *** [scripts/basic/fixdep] 错误 1
make: *** [scripts_basic] 错误 2
the log contains Chinese characters, because my local language is zh_cn, the infomation is can't find linux/limits.h, i just want to know what causes this error.
anyone can give me some help, i would appreciate that
my distribution is:
Ubuntu 12.10
my kernel info:
Linux zgy-vm 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:31:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
my gcc info:
gcc (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2
Comments
-
Do you want to compile for a specific reason? It would be easier to use the .deb http://linuxg.net/how-to-install-kernel-3-12-on-ubuntu-linux-mint-pear-os-elementary-os-debian-wheezy-and-kwheezy/0
-
thanks very much, but my purpose is to create a boot disk that only contains linux kernel without any software.
can you give me some advise? thanks again0 -
Are you aware that the Kernel alone is pretty useless? If you boot just the Kernel it will look for "init", which is not there and just sit there doing nothing.
For want of a better explanation the Kernel is the "core" and it is the surrounding apps that do things. That is why it is often referred to as GNU/Linux. It is the GNU part that does stuff.
You might care to look at "Linux from Scratch" http://www.linuxfromscratch.org/0 -
oh, i didn't recognize that.thanks to remind me.
but i really don't care.
i just want to research kernel, and want to know how kernel runs.
i have used a couple of linux distributions, but i still have little knowledge of kernel.
so i want to compile a kernel, and run it on my virtual box, to get more knowledge about kernel.0 -
If you want to learn the kernel you should download the kernel source and build it from scratch.
Also see if this series of articles may be of help in understanding the kernel:
http://www.linux.org/threads/the-linux-kernel-introduction.4203/
It is mentioned in the above articles but you can download the kernel source code here:
https://www.kernel.org/
Incidently, the kernel at its simplest is just an interface between the hardware and the software- basically useless on its own.0 -
thanks for your kindness, it's very helpful.0
Categories
- All Categories
- 175 LFX Mentorship
- 175 LFX Mentorship: Linux Kernel
- 745 Linux Foundation IT Professional Programs
- 372 Cloud Engineer IT Professional Program
- 168 Advanced Cloud Engineer IT Professional Program
- 73 DevOps IT Professional Program - Discontinued
- 3 DevOps & GitOps IT Professional Program
- 98 Cloud Native Developer IT Professional Program
- 7.6K Training Courses & Learning Paths
- AI & ML Training
- Blockchain & Decentralized Identity Training
- 1 Cloud & Containers Training
- Cybersecurity Training
- DevOps & Site-Reliability Training
- Linux Kernel Development Training
- Networking Training
- Open Source Best Practice Training
- System Administration Training
- System Engineering Training
- Web & Application Development Training
- 2 LFD103-JP クラス フォーラム
- 4 LFD210-CN Class Forum
- 764 LFD259 Class Forum
- 681 LFS101 Class Forum
- 2 LFS158-JP クラス フォーラム
- 162 LFS207 Class Forum
- 3 LFS207-DE-Klassenforum
- 4 LFS207-JP クラス フォーラム
- 61 LFS241 Class Forum
- 52 LFS242 Class Forum
- 42 LFS243 Class Forum
- 19 LFS244 Class Forum
- 4 LFS250-JP クラス フォーラム
- 166 LFS253 Class Forum
- 1.4K LFS258 Class Forum
- 792 Hardware
- 202 Drivers
- 68 I/O Devices
- 37 Monitors
- 95 Multimedia
- 173 Networking
- 91 Printers & Scanners
- 87 Storage
- 768 Linux Distributions
- 81 Debian
- 67 Fedora
- 22 Linux Mint
- 13 Mageia
- 24 openSUSE
- 150 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 356 Ubuntu
- 465 Linux System Administration
- 31 Cloud Computing
- 73 Command Line/Scripting
- Github systems admin projects
- 98 Linux Security
- 78 Network Management
- 101 System Management
- 46 Web Management
- 106 Mobile Computing
- 18 Android
- 73 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 392 Off Topic
- 121 Introductions
- 181 Small Talk
- 29 Study Material
- 945 Programming and Development
- 310 Kernel Development
- 617 Software Development
- 978 Software
- 370 Applications
- 182 Command Line
- 5 Compiling/Installing
- 68 Games
- 317 Installation
- Archived
- 2 LFD140 Class Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)