当前位置: 技术问答>linux和unix
linux编译出错
来源: 互联网 发布时间:2017-03-14
本文导语: 我在ubuntu11.10下编译linux内核出现问题, gcc的版本是4.6.1,arm-linux-gcc是4.5.1; make uImage ARCH=arm CROSS_COMPILE=arm-linux- 出现了下面的错误: CHK include/linux/compile.h GEN .version CHK include/linux/compile....
我在ubuntu11.10下编译linux内核出现问题,
gcc的版本是4.6.1,arm-linux-gcc是4.5.1;
make uImage ARCH=arm CROSS_COMPILE=arm-linux-
出现了下面的错误:
第一次接触嵌入式,请教一下,这是什么错误
gcc的版本是4.6.1,arm-linux-gcc是4.5.1;
make uImage ARCH=arm CROSS_COMPILE=arm-linux-
出现了下面的错误:
CHK include/linux/compile.h
GEN .version
CHK include/linux/compile.h
UPD include/linux/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
arm-linux-ld: no machine record defined
arm-linux-ld: no machine record defined
arm-linux-ld: no machine record defined
init/built-in.o: In function `run_init_process':
/home/xjruan/Enbedded_Linux/linux-2.6.29/init/main.c:781: undefined reference to `__gnu_mcount_nc'
init/built-in.o: In function `init_post':
/home/xjruan/Enbedded_Linux/linux-2.6.29/init/main.c:790: undefined reference to `__gnu_mcount_nc'
init/built-in.o: In function `do_one_initcall':
/home/xjruan/Enbedded_Linux/linux-2.6.29/init/main.c:694: undefined reference to `__gnu_mcount_nc'
init/built-in.o: In function `name_to_dev_t':
/home/xjruan/Enbedded_Linux/linux-2.6.29/init/do_mounts.c:77: undefined reference to `__gnu_mcount_nc'
init/built-in.o: In function `rest_init':
/home/xjruan/Enbedded_Linux/linux-2.6.29/init/main.c:452: undefined reference to `__gnu_mcount_nc'
init/built-in.o:/home/xjruan/Enbedded_Linux/linux-2.6.29/init/calibrate.c:123: more undefined references to `__gnu_mcount_nc' follow
make: *** [.tmp_vmlinux1] 错误 1
第一次接触嵌入式,请教一下,这是什么错误
|
先找到一个demo板的配置文件,然后再修改会好很多!
希望能够帮到你!
希望能够帮到你!
|
你先配置好,生成了.config文件,然后再执行你上述的命令。
|
先make menuconfig配置好没?