Kernel compilation error: Make: *** [. tmp_vmlinux1] Error 1

Source: Internet
Author: User
If the kernel is compiled as follows:

Warning: modpost: found 1 Section mismatch (es ).
To see full details build your kernel:
'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/desktops/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 :~ /Desk/linux-2.6.30.4 #

Solution:

__Gnu_mcount_nc_patch.patch.gz
Download the package and put it in the Linux root directory. decompress the file __gnu_mcount_nc_patch.patch.

Then, enter the linux root directory on the terminal and run the following statement to package: zcat _ gnu_mcount_nc_patch.patch | patch p1
(Note: "_" is a combination of two underscores, "p1" is followed by an Arabic number 1, but also pay attention to spaces)

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.