|
|
我在RedHat 9.0上进行交叉编译,目标系统是arm9的开发板。
我使用的编译器是开发板配套光盘中给的。
armv4l-unknown-linux-gcc
我要实现对一个程序叫做pure-ftpd的ftp服务器的移植。
由于这个程序configure后会生成好多个Makefile,一个个改太烦,所以,我想修改configue的CC参数,我这么写:
./configure --host=/opt/host/armv4l/bin/armv4l-unknown-linux CC=/opt/host/armv4l/bin/armv4l-unknown-linux-gcc
然后,configure在执行中给出这样的报错信息:
……
checking whether snprintf is C99 conformant ...
configure: error: can not run test
See 'config.log' for more details.
然后在config.log中的相关信息如下
configure:18813: result: no
configure:18824: checking whether statvfs64() is defined
configure:18858: /opt/host/armv4l/bin/armv4l-unknown-linux-gcc -c -g -O2 -D_GNU_SOURCE=1 -I/usr/kerberos/include conftest.c >&5
configure:18864: $? = 0
configure:18868: test -z
||test ! -s conftest.err
configure:18871: $? = 0
configure:18874: test -s conftest.o
configure:18877: $? = 0
configure:18880: result: yes
configure:18899: checking whether snprintf is C99 conformant
configure:18903: error: cannot run test program while cross compiling
See `config.log' for more details.
这个问题我也不知道该发到哪个板块上去,希望高手给我帮助
指明一个方向
谢谢! |
|