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
- 9.1K All Categories
- 15 LFX Mentorship
- 68 LFX Mentorship: Linux Kernel
- 373 Linux Foundation Boot Camps
- 233 Cloud Engineer Boot Camp
- 72 Advanced Cloud Engineer Boot Camp
- 28 DevOps Engineer Boot Camp
- 7 Cloud Native Developer Boot Camp
- 962 Training Courses
- 15 LFC110 Class Forum
- 16 LFD102 Class Forum
- 105 LFD103 Class Forum
- 5 LFD121 Class Forum
- 56 LFD201 Class Forum
- 1 LFD213 Class Forum - Discontinued
- 128 LFD232 Class Forum
- 19 LFD254 Class Forum
- 449 LFD259 Class Forum
- 90 LFD272 Class Forum
- 1 LFD272-JP クラス フォーラム
- 16 LFS200 Class Forum
- 708 LFS201 Class Forum
- LFS201-JP クラス フォーラム
- 282 LFS211 Class Forum
- 50 LFS216 Class Forum
- 27 LFS241 Class Forum
- 28 LFS242 Class Forum
- 19 LFS243 Class Forum
- 6 LFS244 Class Forum
- 12 LFS250 Class Forum
- LFS250-JP クラス フォーラム
- 113 LFS253 Class Forum
- 808 LFS258 Class Forum
- 8 LFS258-JP クラス フォーラム
- 54 LFS260 Class Forum
- 81 LFS261 Class Forum
- 18 LFS262 Class Forum
- 76 LFS263 Class Forum
- 14 LFS264 Class Forum
- 10 LFS266 Class Forum
- 10 LFS267 Class Forum
- 9 LFS268 Class Forum
- 6 LFS269 Class Forum
- 182 LFS272 Class Forum
- 1 LFS272-JP クラス フォーラム
- 191 LFW211 Class Forum
- 113 LFW212 Class Forum
- 880 Hardware
- 207 Drivers
- 74 I/O Devices
- 44 Monitors
- 115 Multimedia
- 205 Networking
- 98 Printers & Scanners
- 82 Storage
- 730 Linux Distributions
- 85 Debian
- 64 Fedora
- 12 Linux Mint
- 13 Mageia
- 22 openSUSE
- 127 Red Hat Enterprise
- 33 Slackware
- 13 SUSE Enterprise
- 349 Ubuntu
- 450 Linux System Administration
- 33 Cloud Computing
- 64 Command Line/Scripting
- Github systems admin projects
- 89 Linux Security
- 76 Network Management
- 105 System Management
- 45 Web Management
- 51 Mobile Computing
- 19 Android
- 19 Development
- 1.2K New to Linux
- 1.1K Getting Started with Linux
- 501 Off Topic
- 121 Introductions
- 193 Small Talk
- 19 Study Material
- 752 Programming and Development
- 243 Kernel Development
- 475 Software Development
- 903 Software
- 247 Applications
- 178 Command Line
- 2 Compiling/Installing
- 73 Games
- 314 Installation
- 25 All In Program
- 25 All In 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)