- 论坛徽章:
- 0
|
源码u-boot-1.3.4在ubuntu下编译正常,但是在cygwin下编译有如下报错:
//**********************************************************************************************
In file included from /usr/include/sys/_default_fcntl.h:179:0,
from /usr/include/sys/fcntl.h:3,
from /usr/include/fcntl.h:14,
from mkimage.h:24,
from image.c:71:
/cygdrive/d/Linux/uboot/u-boot-1.3.4/include/linux/types.h:在文件作用域:
/cygdrive/d/Linux/uboot/u-boot-1.3.4/include/linux/types.h:13:26:错误:与‘_types_fd_set’类型冲突
typedef __kernel_fd_set fd_set;
/usr/include/sys/types.h:254:3:附注:‘types_fd_set’的上一个声明在此:
} _types_fd_set;
In file included from /cygdrive/d/linux/uboot/u-boot-1.3.4/include/u-boot/md5.h:9:0,
from image.c:72:
/cygdrive/d/linux/uboot/u-boot-1.3.4/include/linux/types.h:14:25:错误:与'dev_t'类型冲突
typedef __kernel_dev_t dev_t;
In file included form /usr/include/sys/types.h:473:0,
from /usr/include/sys/_default_fcntl.h:179,
from /usr/include/sys/fcntl.h:3,
from /usr/include/fcntl.h:14,
from mkimage.h:24,
from image.c:71:
/usr/include/cygwin/types.h:49:20:附注:‘dev_t’的上一个声明在此:
typedef _uint32_t dev_t;
……
……
……
//**********************************************************************************************
省略的为类似的错误:
错误:与'ino_t'类型冲突
错误:与'mode_t'类型冲突
错误:与'off_t'类型冲突
错误:与'daddr_t'类型冲突
错误:与'key_t'类型冲突
错误:与'uid_t'类型冲突
错误:与'gid_t'类型冲突
错误:与'clock_t'类型冲突
错误:与'uint64_t'类型冲突
错误:与'__u64'类型冲突
错误:与'u_int64_t'类型冲突
错误:与'__s64'类型冲突
错误:与'int64_t'类型冲突
请大牛帮忙分析一下,这是什么原因呢?十分感谢 |
|