+ -
当前位置:首页 → 问答吧 → lfs binutils编译问题(解决)

lfs binutils编译问题(解决)

时间:2009-09-13

来源:互联网

lfs-SVN
chroot之后
make输出
代码:
<若干废话>
checking for off_t... yes 
checking size of off_t... configure: error: in `/sources/binutils-build/bfd': 
configure: error: cannot compute sizeof (off_t), 77 
See `config.log' for more details.
make[1]: *** [configure-bfd] Error 1
make[1]: Leaving directory `/sources/binutils-build'
make: *** [all] Error 2
不过
代码:
# echo '#include <stdio.h>
#include <sys/types.h>
main()
{
off_t testvar = 1024;
printf("%d\n", sizeof(testvar));
}
' > dummy.c
# cc dummy.c
# ./a.out
4
可以sizeof(off_t)啊
怎么讲不能计算sizeof(off_t)啊?

貌似是库有问题,重新搞一遍
解决了

作者: tusooa   发布时间: 2009-09-13