For help, I just learned linux and got stuck on makezImage of the kernel.

Source: Internet
Author: User
For help, I just learned linux, and the kernel makezImage gets stuck-Linux general technology-Linux programming and kernel information. here is the details. I used the 2.4 kernel as an example. if I want to learn what I use now, I will compile the 2.6 kernel and follow the steps given by the textbook step by step. now there are two problems.
First, it is not very Fatal. after saving make menuconfig, run the make dep command to warn that make dep is unnecessary.
X @ x-laptop :~ Linux-2.6.30.2 $ make dep
* ** Warning: make dep is unnecessary now.
The second problem is fatal. make zImage has no rules.
Case-sensitivity errors can be ruled out. I guess the system Association is not good? Maybe the kernel configuration is not set properly? Let's take a look. I can't solve it anymore. hurry up!
X @ x-laptop :~ Linux-2.6.30.2 $ make zImage
HOSTCC scripts/basic/fixdep
Scripts/basic/fixdep. c: In function 'traps ':
Scripts/basic/fixdep. c: 377: warning: dereferencing type-punned pointer will break strict-aliasing rules
Scripts/basic/fixdep. c: 379: warning: dereferencing type-punned pointer will break strict-aliasing rules
HOSTCC scripts/basic/docproc
HOSTCC scripts/basic/hash
HOSTCC scripts/kconfig/conf. o
Scripts/kconfig/conf. c: In function 'conf _ askvalue ':
Scripts/kconfig/conf. c: 105: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result
Scripts/kconfig/conf. c: In function 'conf _ choice ':
Scripts/kconfig/conf. c: 307: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result
HOSTCC scripts/kconfig/kxgettext. o
HOSTCC scripts/kconfig/zconf. tab. o
HOSTLD scripts/kconfig/conf
Scripts/kconfig/conf-s arch/x86/Kconfig
Make: *** The Target "zImage" can be created without rules ". Stop.
Please help me to add the following: I used ubuntu10.04 to support the three-year update. all updates are updated. Is there a problem with the gcc version?
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.