ubuntu下搭建rtems交叉编译环境所遇到的问题
2011-07-26 15:17
429 查看
error1:
第一遍编译binutils,一下是错误信息。
WARNING: `makeinfo' is missing on your system. You should only need it if
you modified a `.texi' or `.texinfo' file, or any other file
indirectly affecting the aspect of the manual. The spurious
call might also be the consequence of using a buggy `make' (AIX,
DU, IRIX). You might want to install the `Texinfo' package or
the `GNU make' package. Grab either from any GNU archive site.
解决方法:
configure.ac里2405行:
修改为egrep 'texinfo[^0-9]*(4\.([4-9] | [1-9]) | [5-9] | 4\.[1-9] [0-9])'
configure的6131行也有写错,但是不必修改;
原因
代码中的版本号匹配写法有误。
error2:
../../binutils-2.18/bfd/elf32-arm.c error :ignoring return value of 'asprintf', decleared with attribute warn_unused_result
解决方法:
在源代码中将asprintf的返回值赋值给一个变量
同类错误解决方法一致:
gas/read.c
gas/stabs.c
error3:
error : format not a string literal and no format arguments
../../binutiles-2.18/binutils/cxxfilt.c error: format not a string literal and no format arguments
解决方法
将源码中的printf函数注释掉。或者将printf函数写成规范的printf("%s", str1);
as_bad()函数格式有误,解决方法类似,as_bad(_(%s), str2);
3454,3468,3586,3601,3706
error4:
tc_arm.c: error: 'firsttype' may be used uninitialized in this function
解决方法:
将其结构体成员变量defined初始化为0,index初始化为1;
error5:
在环境变量修改之后,记得使用source启用环境变量
且环境变量要注意写正确。
第一遍编译binutils,一下是错误信息。
WARNING: `makeinfo' is missing on your system. You should only need it if
you modified a `.texi' or `.texinfo' file, or any other file
indirectly affecting the aspect of the manual. The spurious
call might also be the consequence of using a buggy `make' (AIX,
DU, IRIX). You might want to install the `Texinfo' package or
the `GNU make' package. Grab either from any GNU archive site.
解决方法:
configure.ac里2405行:
if ${MAKEINFO} --version " | egrep 'texinfo[^0-9]*(4\.([4-9] | [1-9]) | [5-9] | [1-9] [0-9])' |
configure的6131行也有写错,但是不必修改;
原因
代码中的版本号匹配写法有误。
error2:
../../binutils-2.18/bfd/elf32-arm.c error :ignoring return value of 'asprintf', decleared with attribute warn_unused_result
解决方法:
在源代码中将asprintf的返回值赋值给一个变量
同类错误解决方法一致:
gas/read.c
gas/stabs.c
error3:
error : format not a string literal and no format arguments
../../binutiles-2.18/binutils/cxxfilt.c error: format not a string literal and no format arguments
解决方法
将源码中的printf函数注释掉。或者将printf函数写成规范的printf("%s", str1);
as_bad()函数格式有误,解决方法类似,as_bad(_(%s), str2);
3454,3468,3586,3601,3706
error4:
tc_arm.c: error: 'firsttype' may be used uninitialized in this function
解决方法:
将其结构体成员变量defined初始化为0,index初始化为1;
error5:
在环境变量修改之后,记得使用source启用环境变量
且环境变量要注意写正确。
相关文章推荐
- Ubuntu 16.04搭建交叉编译环境arm-linux-gcc遇到的问题
- 【环境搭建005】UBUNTU13.04 android4.08 源码编译实践中遇到的问题
- 在Ubuntu下安装imx6linux系统的交叉编译环境遇到的问题总结
- ubuntu 12.04(64位 server)下搭建 android2.3/android4.0开发环境及遇到的编译问题
- 【环境搭建003】UBUNTU + ECLIPS + ANDROID 嵌入式系统编译环境搭建遇到的稀奇古怪的问题集合
- 在Ubuntu下安装imx6linux系统的交叉编译环境遇到的问题总结
- ubuntu 12.04.5 LTS搭建海思android SDK编译环境遇到的问题总结
- Ubuntu-ARM FL2440 交叉编译及dnw下载环境搭建成功
- Ubuntu 12.04嵌入式交叉编译环境arm-linux-gcc搭建过程图解
- ubuntu下交叉编译环境的搭建
- redhat下搭建交叉编译环境一个问题
- ubuntu 12.04建立环境编译过程中遇到的问题
- Ubuntu 上 hi3531 交叉编译环境 arm-hisiv100nptl-linux 搭建过程
- SEED-DVS6467_SDK的交叉编译环境搭建问题
- 交叉编译环境搭建时的问题
- ubuntu 下交叉编译环境的搭建
- Windows 7和Ubuntu 14.04下分别搭建Android开发环境过程和遇到的问题
- zynq学习笔记一:搭建linux交叉编译环境(ubuntu 17.04)
- ubuntu下搭建arm交叉编译环境