SylixOS嵌入式操作系统|论坛

 找回密码
 注册
搜索
查看: 8586|回复: 0
打印 上一主题 下一主题

使用arm-none-eabi编译出现枚举32-bit告警

[复制链接]

1

主题

2

帖子

27

积分

新手上路

Rank: 1

积分
27
跳转到指定楼层
楼主
发表于 2018-9-27 19:20:26 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
大家好!我在使用arm-none-eabi-编译器,编译sylixos源码,连接时会报一个枚举32bit告警,初步看对运行好像没什么影响。请问下这个问题有什么解决方法不?
和 -fno-short-enums参数有关吗?

我用的编译器版本是:gcc version 4.9.3 20150529 (release)


具体告警信息如下:

  1. c:/armgcc/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: warning: c:/armgcc/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib\libm.a(lib_a-s_fpclassify.o) uses variable-size enums yet the output is to use 32-bit enums; use of enum values across objects may fail
  2. c:/armgcc/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: warning: c:/armgcc/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib\libm.a(lib_a-s_ldexp.o) uses variable-size enums yet the output is to use 32-bit enums; use of enum values across objects may fail
  3. c:/armgcc/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: warning: c:/armgcc/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib\libm.a(lib_a-s_modf.o) uses variable-size enums yet the output is to use 32-bit enums; use of enum values across objects may fail
  4. c:/armgcc/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: warning: c:/armgcc/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib\libm.a(lib_a-s_scalbn.o) uses variable-size enums yet the output is to use 32-bit enums; use of enum values across objects may fail
  5. c:/armgcc/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: warning: c:/armgcc/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib\libm.a(lib_a-s_copysign.o) uses variable-size enums yet the output is to use 32-bit enums; use of enum values across objects may fail
  6. c:/armgcc/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: warning: c:/armgcc/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib\libm.a(lib_a-s_finite.o) uses variable-size enums yet the output is to use 32-bit enums; use of enum values across objects may fail
  7. c:/armgcc/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: warning: c:/armgcc/bin/../lib/gcc/arm-none-eabi/4.9.3\libgcc.a(bpabi.o) uses variable-size enums yet the output is to use 32-bit enums; use of enum values across objects may fail
  8. c:/armgcc/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: warning: c:/armgcc/bin/../lib/gcc/arm-none-eabi/4.9.3\libgcc.a(_divdi3.o) uses variable-size enums yet the output is to use 32-bit enums; use of enum values across objects may fail
  9. c:/armgcc/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: warning: c:/armgcc/bin/../lib/gcc/arm-none-eabi/4.9.3\libgcc.a(_udivdi3.o) uses variable-size enums yet the output is to use 32-bit enums; use of enum values across objects may fail
复制代码





回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|Acoinfo Inc. All Rights Reserved. ( 京ICP备15059934号

GMT+8, 2024-11-21 20:43 , Processed in 0.028612 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表