主题 : 内核编译错误 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 92246
精华: 0
发帖: 16
金钱: 80 两
威望: 16 点
综合积分: 32 分
注册时间: 2013-05-26
最后登录: 2015-04-27
楼主  发表于: 2014-05-15 21:38

 内核编译错误

各位大神,我在编译内核的时候遇到下面的问题,使用的是tiny210开发板提供的内核linux-3.0.8,配置文件用的是mini210_linux_defconfig,
不明白为什么提供的内核会出现这样的问题,求各位帮忙解答一下,谢谢!


drivers/gpu/pvr/sgx/mmu.c: In function 'MMU_Alloc':
drivers/gpu/pvr/sgx/mmu.c:1050:11: error: 'sDevPAddr.uiAddr' may be used uninitialized in this function [-Werror=maybe-uninitialized]
           | SGX_MMU_PDE_VALID;
           ^
drivers/gpu/pvr/sgx/mmu.c:991:20: note: 'sDevPAddr.uiAddr' was declared here
    IMG_DEV_PHYADDR sDevPAddr;
^很多问题的背后都是简单的原因......
级别: 荣誉会员
UID: 34780
精华: 0
发帖: 1219
金钱: 6230 两
威望: 1246 点
综合积分: 2438 分
注册时间: 2010-12-21
最后登录: 2017-09-18
1楼  发表于: 2014-05-16 10:01
你用的是从哪里获得的toolchain ?
级别: 新手上路
UID: 92246
精华: 0
发帖: 16
金钱: 80 两
威望: 16 点
综合积分: 32 分
注册时间: 2013-05-26
最后登录: 2015-04-27
2楼  发表于: 2014-06-01 00:29

 回 1楼(911gt3) 的帖子

自己编译的
下面是gcc的版本信息
Configured with: /home/torch/workplace/armtools/src/crosstool-ng-1.19.0/.build/src/gcc-4.8.0/configure --build=x86_64-build_unknown-linux-gnu --host=x86_64-build_unknown-linux-gnu --target=arm-cortex_a8-linux-gnueabi --prefix=/home/torch/workplace/armtools/toolschain/arm-cortex_a8-linux-gnueabi --with-sysroot=/home/torch/workplace/armtools/toolschain/arm-cortex_a8-linux-gnueabi/arm-cortex_a8-linux-gnueabi/sysroot --enable-languages=c,c++,java --with-arch=armv7-a --with-cpu=cortex-a8 --with-tune=cortex-a8 --with-float=soft --with-pkgversion='crosstool-NG 1.19.0' --enable-__cxa_atexit --disable-libmudflap --disable-libgomp --disable-libssp --disable-libquadmath --disable-libquadmath-support --with-gmp=/home/torch/workplace/armtools/src/crosstool-ng-1.19.0/.build/arm-cortex_a8-linux-gnueabi/buildtools --with-mpfr=/home/torch/workplace/armtools/src/crosstool-ng-1.19.0/.build/arm-cortex_a8-linux-gnueabi/buildtools --with-mpc=/home/torch/workplace/armtools/src/crosstool-ng-1.19.0/.build/arm-cortex_a8-linux-gnueabi/buildtools --with-isl=/home/torch/workplace/armtools/src/crosstool-ng-1.19.0/.build/arm-cortex_a8-linux-gnueabi/buildtools --with-cloog=/home/torch/workplace/armtools/src/crosstool-ng-1.19.0/.build/arm-cortex_a8-linux-gnueabi/buildtools --with-libelf=no --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++ -lm' --enable-threads=posix --enable-target-optspace --disable-nls --enable-multilib --with-local-prefix=/home/torch/workplace/armtools/toolschain/arm-cortex_a8-linux-gnueabi/arm-cortex_a8-linux-gnueabi/sysroot --enable-c99 --enable-long-long
Thread model: posix
gcc version 4.8.0 (crosstool-NG 1.19.0)

这个gcc用来编译应用程序可以在板子上跑,编译出来的Qt也是没有问题的。
级别: 新手上路
UID: 92246
精华: 0
发帖: 16
金钱: 80 两
威望: 16 点
综合积分: 32 分
注册时间: 2013-05-26
最后登录: 2015-04-27
3楼  发表于: 2014-06-01 00:33

 回 1楼(911gt3) 的帖子

现在有一个新的问题是我编译出来的zImage替换原来板子上的zImage烧到板子上就不能启动了,请问知道这是为什么吗?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
4楼  发表于: 2014-06-03 05:31

 回 3楼(torch) 的帖子

这种问题的原因有很多,建议你另外发一个帖子,把你的步骤和串口的调试信息贴出来。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."