当前位置:  技术问答>linux和unix

types.h:136: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__dev_t’

    来源: 互联网  发布时间:2017-03-20

    本文导语:  [root@localhost xc]# make World In file included from /Cross/target/local/mipsel-linux/include/stdio.h:36,                  from ./config/util/printver.c:10: /Cross/target/local/mipsel-linux/include/bits/types.h:127:3: error: #error  In file included fro...

[root@localhost xc]# make World
In file included from /Cross/target/local/mipsel-linux/include/stdio.h:36,
                 from ./config/util/printver.c:10:
/Cross/target/local/mipsel-linux/include/bits/types.h:127:3: error: #error 
In file included from /Cross/target/local/mipsel-linux/include/stdio.h:36,
                 from ./config/util/printver.c:10:
/Cross/target/local/mipsel-linux/include/bits/types.h:136: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__dev_t’
/Cross/target/local/mipsel-linux/include/bits/types.h:140: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__ino64_t’
/Cross/target/local/mipsel-linux/include/bits/types.h:142: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__nlink_t’
/Cross/target/local/mipsel-linux/include/bits/types.h:144: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__off64_t’
/Cross/target/local/mipsel-linux/include/bits/types.h:149: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__rlim64_t’
/Cross/target/local/mipsel-linux/include/bits/types.h:172: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__blkcnt64_t’
/Cross/target/local/mipsel-linux/include/bits/types.h:176: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__fsblkcnt64_t’
/Cross/target/local/mipsel-linux/include/bits/types.h:180: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__fsfilcnt64_t’
/Cross/target/local/mipsel-linux/include/bits/types.h:182: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__ssize_t’
/Cross/target/local/mipsel-linux/include/bits/types.h:186: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__loff_t’
/Cross/target/local/mipsel-linux/include/bits/types.h:191: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__intptr_t’
In file included from /Cross/target/local/mipsel-linux/include/libio.h:32,
                 from /Cross/target/local/mipsel-linux/include/stdio.h:72,
                 from ./config/util/printver.c:10:
/Cross/target/local/mipsel-linux/include/_G_config.h:33: error: expected specifier-qualifier-list before ‘__off64_t’
In file included from /Cross/target/local/mipsel-linux/include/stdio.h:72,
                 from ./config/util/printver.c:10:
/Cross/target/local/mipsel-linux/include/libio.h:312: error: expected specifier-qualifier-list before ‘__off64_t’
/Cross/target/local/mipsel-linux/include/libio.h:351: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__io_read_fn’
/Cross/target/local/mipsel-linux/include/libio.h:359: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__io_write_fn’
/Cross/target/local/mipsel-linux/include/libio.h:368: error: expected declaration specifiers or ‘...’ before ‘__off64_t’
/Cross/target/local/mipsel-linux/include/libio.h:467: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_IO_padn’
/Cross/target/local/mipsel-linux/include/libio.h:470: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_IO_seekoff’
/Cross/target/local/mipsel-linux/include/libio.h:471: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_IO_seekpos’
In file included from /Cross/target/local/mipsel-linux/include/stdlib.h:416,
                 from ./config/util/printver.c:11:
/Cross/target/local/mipsel-linux/include/sys/types.h:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘loff_t’
/Cross/target/local/mipsel-linux/include/sys/types.h:62: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘dev_t’
/Cross/target/local/mipsel-linux/include/sys/types.h:77: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘nlink_t’
/Cross/target/local/mipsel-linux/include/sys/types.h:110: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ssize_t’
make: *** [World] Error 1

|

這是在定義一些C89不支持的非標準數據類型。首先定義了__STD_TYPE宏,這裡面有一個關鍵的問題,__extension__

這個是在哪裡定義的,樓主全域的搜索一下__extension__的定義吧,它的含義不清楚,導致了後面宏替換時typedef

的失敗

|

这个问题我也遇到过。。

很有可能是有的语句后面少了个“;”、、、、、

自己先检查一下、、

|
交叉编译?
http://www.dzkf.cn/html/qianrushixitong/2008/0401/3063.html

    
 
 
 
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。












  • 相关文章推荐
  • java命名空间javax.sound.sampled类compoundcontrol.type的类成员方法: compoundcontrol.type定义及介绍
  • ResultSet 的Type属性 TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, or TYPE_SCROLL_SENSITIVE是什么意思
  • java命名空间javax.sound.sampled类control.type的类成员方法: control.type定义及介绍
  • error: incompatible types when assigning to type ‘struct in_addr’ from type ‘in
  • java命名空间java.awt.geom类affinetransform的类成员方法: type_translation定义及介绍
  • Result set type is TYPE_FORWARD_ONLY错误,50分,急~~~~
  • java命名空间java.security枚举keyrep.type的类成员方法: public定义及介绍
  • QSocketDevice ( int socket, Type type )中那个 int socket 是哪里来得?
  • java命名空间javax.sound.midi类midifileformat的类成员方法: type定义及介绍
  • How to distinguish compile-time type and runtime type?
  • java命名空间java.security枚举keyrep.type的类成员方法: secret定义及介绍
  • 系统提示"Result set type is TYPE_FORWARD_ONLY“ 可是我想知道记录条数
  • java命名空间java.lang类void的类成员方法: type定义及介绍
  • How can I convert a Char type to a Integer type?
  • java命名空间java.lang.annotation枚举elementtype的类成员方法: type定义及介绍
  • 我的目的是,能实现点增加按钮,使得逐行(以行为单位)动态的增加窗体<input type=text ><input type=radio><input type=checkbox>三个
  • java命名空间java.lang类short的类成员方法: type定义及介绍
  • 救急:url为product_list.jsp?dpt_code=01+product_type=0101,怎么样能让product_list.jsp接收到的是dpt_code=01&product_type=0101呢?
  • java命名空间javax.swing类jtable.accessiblejtable.accessiblejtablemodelchange的类成员方法: type定义及介绍
  • 菜鸟发问:HAVE_SYS_TYPES_H
  • java命名空间javax.swing.event类tablemodelevent的类成员方法: type定义及介绍
  • MYSQL中 TYPE=MyISAM 错误的解决方法


  • 站内导航:


    特别声明:169IT网站部分信息来自互联网,如果侵犯您的权利,请及时告知,本站将立即删除!

    ©2012-2021,,E-mail:www_#163.com(请将#改为@)

    浙ICP备11055608号-3