Error One:
LD. tmp_vmlinux1init/built-in.o:in function ' run_init_process ':/home/ox/tq2440/opt/embedsky/linux-2.6.30.4/init/ main.c:794:undefined reference to ' __GNU_MCOUNT_NC ' init/built-in.o:in function ' init_post ':/home/ox/tq2440/opt/ embedsky/linux-2.6.30.4/init/main.c:804:undefined reference to ' __GNU_MCOUNT_NC ' init/built-in.o:in function ' Do_one _initcall ':/home/ox/tq2440/opt/embedsky/linux-2.6.30.4/init/main.c:706:undefined reference to ' __GNU_MCOUNT_NC ' init/built-in.o:in function ' name_to_dev_t ':/home/ox/tq2440/opt/embedsky/linux-2.6.30.4/init/do_mounts.c:78: Undefined reference to ' __gnu_mcount_nc ' init/built-in.o:in function ' rest_init ':/home/ox/tq2440/opt/embedsky/ linux-2.6.30.4/init/main.c:453:undefined reference to ' __GNU_MCOUNT_NC ' init/built-in.o:/home/ox/tq2440/opt/ Embedsky/linux-2.6.30.4/init/calibrate.c:123:more undefined references to ' __GNU_MCOUNT_NC ' followmakefile:809: Recipe for target '. Tmp_vmlinux1 ' failedmake: * * * [. tmp_vmlinux1] Error 1
1. Solution Reference:http://blog.csdn.net/u010445505/article/details/39299855
2. After downloading the file __gnu_mcount_nc_patch.patch.gz, use the command:gzip-dc __gnu_mcount_nc_patch.patch.gz | patch-p1, compile again, get it done.
Error Two:
Can'defined (@array)' (maybe should just omit the defined ()?) at kernel/ timeconst.pl line 373.
1. Problem analysis: Defined not available
2. Problem-solving: By removing the defined of kernel/timeconst.pl line No. 373, replace the following:
2017-01-26--compiling the Linux kernel 2.6.30 version of the error resolution