日期:2014-05-16  浏览次数:20760 次

linux编译出错
我在ubuntu11.10下编译linux内核出现问题,
gcc的版本是4.6.1,arm-linux-gcc是4.5.1;
make uImage ARCH=arm CROSS_COMPILE=arm-linux-
出现了下面的错误:
C/C++ code

  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



第一次接触嵌入式,请教一下,这是什么错误

------解决方案--------------------
探讨
我在ubuntu11.10下编译linux内核出现问题,
gcc的版本是4.6.1,arm-linux-gcc是4.5.1;
make uImage ARCH=arm CROSS_COMPILE=arm-linux-
出现了下面的错误:
C/C++ code

CHK include/linux/compile.h
GEN .version
CHK i……

------解决方案--------------------
先找到一个demo板的配置文件,然后再修改会好很多!

希望能够帮到你!
------解决方案--------------------
先make menuconfig配置好没?