SylixOS嵌入式操作系统|论坛

标题: 使用arm-none-eabi编译出现枚举32-bit告警 [打印本页]

作者: liuning587    时间: 2018-9-27 19:20
标题: 使用arm-none-eabi编译出现枚举32-bit告警
大家好!我在使用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
复制代码










欢迎光临 SylixOS嵌入式操作系统|论坛 (https://bbs.sylixos.com/) Powered by Discuz! X3.2