Linux kernel Compile error: Make: * * * [. tmp_vmlinux1] Error 1

Source: Internet
Author: User
Tags root directory linux

If the compiler kernel appears as follows:

WARNING:modpost:Found 1 section mismatch (es).

To the full details builds your kernel with:

' Make config_debug_section_mismatch=y '

GEN. Version

CHK include/linux/compile.h

UPD include/linux/compile.h

CC INIT/VERSION.O

LD INIT/BUILT-IN.O

LD. tmp_vmlinux1

init/built-in.o:in function ' Do_one_initcall ':

/root/Desktop/linux-2.6.30.4/init/main.c:706:undefined Reference to ' __GNU_MCOUNT_NC '

init/built-in.o:in function ' Init_post ':

/root/Desktop/linux-2.6.30.4/init/main.c:804:undefined Reference to ' __GNU_MCOUNT_NC '

init/built-in.o:in function ' name_to_dev_t ':

/root/Desktop/linux-2.6.30.4/init/do_mounts.c:78:undefined Reference to ' __GNU_MCOUNT_NC '

init/built-in.o:in function ' Rest_init ':

/root/Desktop/linux-2.6.30.4/init/main.c:453:undefined Reference to ' __GNU_MCOUNT_NC '

init/built-in.o:in function ' Calibrate_delay ':

/root/Desktop/linux-2.6.30.4/init/calibrate.c:123:undefined Reference to ' __GNU_MCOUNT_NC '

arch/arm/kernel/built-in.o:/root/Desktop/linux-2.6.30.4/arch/arm/kernel/elf.c:8: More undefined references to ' __gnu_ Mcount_nc ' follow

Make: * * * [. tmp_vmlinux1] Error 1

root@czu:~/Desktop/linux-2.6.30.4#

Workaround:

Need Patch __gnu_mcount_nc_patch.patch.gz

After downloading the Linux root directory, and extract: __gnu_mcount_nc_patch.patch file.

Then, in the terminal into the Linux root directory, execute the following statement to package: Zcat __gnu_mcount_nc_patch.patch | Patch P1

(Note: "__" for two underscores are connected, "P1" after the Arabic numeral 1, but also pay attention to space)

More Wonderful content: http://www.bianceng.cnhttp://www.bianceng.cn/OS/Linux/

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.