当前位置: 技术问答>linux和unix
救命啊!!!有哪位大虾用arm-elf-gcc编译过boa-0.94.13吗?
来源: 互联网 发布时间:2015-11-18
本文导语: 我从www.boa.org载了boa-0.94.13,解压后进入src目录 运行./configure,修改Makefile的g c c 为arm-elf-gcc,然后ma ke ,出现下面的错误.分不够,再加! /usr/local/bin/arm-elf-gcc -g -O2 -pipe -Wall -I. -c -o util.o util.c In file included from ...
我从www.boa.org载了boa-0.94.13,解压后进入src目录
运行./configure,修改Makefile的g c c 为arm-elf-gcc,然后ma ke ,出现下面的错误.分不够,再加!
/usr/local/bin/arm-elf-gcc -g -O2 -pipe -Wall -I. -c -o util.o util.c
In file included from /usr/local/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/include/bits/local_lim.h:36,
from /usr/local/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/include/bits/posix1_lim.h:126,
from /usr/local/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/include/dirent.h:209,
from compat.h:83,
from boa.h:50,
from util.c:26:
/usr/local/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/include/linux/limits.h:14: warning: `PATH_MAX' redefined
compat.h:52: warning: this is the location of the previous definition
util.c: In function `get_commonlog_time':
util.c:100: structure has no member named `tm_gmtoff'
util.c:96: warning: `time_offset' might be used uninitialized in this function
make: *** [util.o] 错误 1
运行./configure,修改Makefile的g c c 为arm-elf-gcc,然后ma ke ,出现下面的错误.分不够,再加!
/usr/local/bin/arm-elf-gcc -g -O2 -pipe -Wall -I. -c -o util.o util.c
In file included from /usr/local/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/include/bits/local_lim.h:36,
from /usr/local/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/include/bits/posix1_lim.h:126,
from /usr/local/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/include/dirent.h:209,
from compat.h:83,
from boa.h:50,
from util.c:26:
/usr/local/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/include/linux/limits.h:14: warning: `PATH_MAX' redefined
compat.h:52: warning: this is the location of the previous definition
util.c: In function `get_commonlog_time':
util.c:100: structure has no member named `tm_gmtoff'
util.c:96: warning: `time_offset' might be used uninitialized in this function
make: *** [util.o] 错误 1
|
每条警告和错误都很清楚,一一解决就可以了。
|
你试一下以下几种方法:
1.仔细阅读BOA的README,DOC文档,看是否需要特殊设置等操作
2.根据出错提示修改相应的源代码,看是否能通过
3.编译一个PC机版本,看是否能通过
4.换一个BOA的版本再进行交叉编译,看是否能通过
5.换一个GCC交叉编译工具链
不要什么都去找现成的,学到解决问题的方法才是最重要的,这样对你自己有莫大的好处
1.仔细阅读BOA的README,DOC文档,看是否需要特殊设置等操作
2.根据出错提示修改相应的源代码,看是否能通过
3.编译一个PC机版本,看是否能通过
4.换一个BOA的版本再进行交叉编译,看是否能通过
5.换一个GCC交叉编译工具链
不要什么都去找现成的,学到解决问题的方法才是最重要的,这样对你自己有莫大的好处