回复: 回复: nfs的编译bug,涉及minilibc

5 views
Skip to first unread message

Romeo

unread,
Aug 2, 2012, 9:06:00 PM8/2/12
to rt-thread-cnusers
试过了,GCC201203和201103,ARMCC三种都没有问题,不过没有加上newlic试过。


------------------ 原始邮件 ------------------
发件人: "prife"<gop...@gmail.com>;
发送时间: 2012年8月3日(星期五) 凌晨1:26
收件人: "rt-thread-cnusers"<rt-threa...@googlegroups.com>;
主题: Re: 回复: nfs的编译bug,涉及minilibc

楼上,下面是几种情况是否验证?

1. armcc 是否可以过?
2. 开启关闭MINILIB后,上面armc,gcc两个版本是否都可以过?
3. 开启关闭NEWLIB后,上面armc,gcc两个版本是否都可以过?

在 2012年8月3日 上午12:00,Romeo <xp...@vip.qq.com>写道:

‘默’守成规O(∩_∩)O哈哈~

\realtouchgit\software\rt-thread\components\dfs\filesystems\nfs\rpc\types.h

42-59行
#ifndef RT_USING_MINILIBC
typedef unsigned int u_int;
typedef unsigned char u_char;
typedef unsigned long u_long;

typedef rt_int8_t   int8_t;
typedef rt_uint8_t  uint8_t;
typedef rt_int16_t  int16_t;
typedef rt_uint16_t uint16_t;
typedef rt_int32_t  int32_t;
typedef rt_uint32_t uint32_t;
#else
#include <sys/types.h>
#include <stdint.h>
#endif

typedef long long   int64_t;
typedef unsigned long long uint64_t;

=============================修改如下,编译在201103和201203没有问题==================

#ifndef RT_USING_MINILIBC
typedef unsigned int u_int;
typedef unsigned char u_char;
typedef unsigned long u_long;

typedef rt_int8_t   int8_t;
typedef rt_uint8_t  uint8_t;
typedef rt_int16_t  int16_t;
typedef rt_uint16_t uint16_t;
typedef rt_int32_t  int32_t;
typedef rt_uint32_t uint32_t;


typedef long long   int64_t;
typedef unsigned long long uint64_t;

#else
#include <sys/types.h>
#include <stdint.h>
#endif

 


------------------ 原始邮件 ------------------
发件人: "prife"<gop...@gmail.com>;
发送时间: 2012年8月2日(星期四) 晚上10:37
收件人: "rt-thread-cnusers"<rt-threa...@googlegroups.com>;
主题: Re: nfs的编译bug,涉及minilibc

忘记说了:

realtouch-stm32f4\software\examples\examples\3_networking

rtconfig.h 里
使能
#define RT_USING_DFS_NFS
#define RT_USING_DFS


在 2012年8月2日 下午10:35,prife <gop...@gmail.com>写道:
trunk\components\dfs\filesystems\nfs\rpc\types.h

58行
typedef long long   int64_t;
typedef unsigned long long uint64_t;

使用 codesourcery 201103月版本不能编译通过,提示redefinition,但是201106月版本可以编译通过。
ARMCC可以编译通过, armcc可以过

如果注释掉这两行,201103 &201106 gcc编译通过,但是armcc编译不过。

因为涉及到MINILIBC的问题,所以我先发到这里mark一下。

--
把有限的时间投入到无限的学习中去



--
把有限的时间投入到无限的学习中去



--
把有限的时间投入到无限的学习中去

Romeo

unread,
Aug 3, 2012, 7:48:03 AM8/3/12
to rt-thread-cnusers

 

奉默大哥命令,上此修改补丁。

------------------ 原始邮件 ------------------
发件人: "我自己的邮箱"<xp...@vip.qq.com>;
发送时间: 2012年8月3日(星期五) 上午9:06
收件人: "rt-thread-cnusers"<rt-threa...@googlegroups.com>;
主题: 回复: 回复: nfs的编译bug,涉及minilibc
trunk.rar
Reply all
Reply to author
Forward
0 new messages