Gcc Yocto mfloat abi配置

Gcc Yocto mfloat abi配置,gcc,opengl-es,yocto,Gcc,Opengl Es,Yocto,当我编译yocto项目时,我遇到了以下错误 /home/yusuf/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-ld.gold: error: /home/yusuf/yocto/poky/build/tmp/sysroots/bananapro/usr/lib/libGLESv2.so uses VFP register arguments, o

当我编译yocto项目时,我遇到了以下错误

/home/yusuf/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-ld.gold: error: /home/yusuf/yocto/poky/build/tmp/sysroots/bananapro/usr/lib/libGLESv2.so uses VFP register arguments, output does not
collect2: error: ld returned 1 exit status
Makefile:1082: recipe for target '../../lib/libQt5Gui.so.5.6.1' failed
make[2]: *** [../../lib/libQt5Gui.so.5.6.1] Error 1
make[2]: Leaving directory '/home/yusuf/yocto/poky/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/qtbase/5.5.99+5.6.0-rc+gitAUTOINC+41706400f6-r0/build/src/gui'
Makefile:497: recipe for target 'sub-gui-make_first' failed
make[1]: *** [sub-gui-make_first] Error 2
make[1]: Leaving directory '/home/yusuf/yocto/poky/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/qtbase/5.5.99+5.6.0-rc+gitAUTOINC+41706400f6-r0/build/src'
Makefile:45: recipe for target 'sub-src-make_first' failed
make: *** [sub-src-make_first] Error 2
ERROR: oe_runmake failed
ERROR: Function failed: do_compile (log file is located at /home/yusuf/yocto/poky/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/qtbase/5.5.99+5.6.0-rc+gitAUTOINC+41706400f6-r0/temp/log.do_compile.23834)
当我使用readelf命令分析libGLESv2.so库时,我得到以下输出

Attribute Section: aeabi
File Attributes
  Tag_CPU_name: "7-A"
  Tag_CPU_arch: v7
  Tag_CPU_arch_profile: Application
  Tag_ARM_ISA_use: Yes
  Tag_THUMB_ISA_use: Thumb-2
  Tag_FP_arch: VFPv3-D16
  Tag_ABI_PCS_wchar_t: 4
  Tag_ABI_FP_denormal: Needed
  Tag_ABI_FP_exceptions: Needed
  Tag_ABI_FP_number_model: IEEE 754
  Tag_ABI_align_needed: 8-byte
  Tag_ABI_enum_size: int
  Tag_ABI_HardFP_use: SP and DP
  Tag_ABI_VFP_args: VFP registers
  Tag_ABI_optimization_goals: Aggressive Speed
  Tag_CPU_unaligned_access: v6
  Tag_DIV_use: Not allowed
Attribute Section: aeabi
File Attributes
  Tag_CPU_name: "7-A"
  Tag_CPU_arch: v7
  Tag_CPU_arch_profile: Application
  Tag_ARM_ISA_use: Yes
  Tag_THUMB_ISA_use: Thumb-2
  Tag_FP_arch: VFPv3
  Tag_Advanced_SIMD_arch: NEONv1
  Tag_ABI_PCS_wchar_t: 4
  Tag_ABI_FP_rounding: Needed
  Tag_ABI_FP_denormal: Needed
  Tag_ABI_FP_exceptions: Needed
  Tag_ABI_FP_number_model: IEEE 754
  Tag_ABI_align_needed: 8-byte
  Tag_ABI_align_preserved: 8-byte, except leaf SP
  Tag_ABI_enum_size: int
  Tag_CPU_unaligned_access: v6
但当我分析另一个库(libglib、libstd++、libncurses等)时,我得到以下输出

Attribute Section: aeabi
File Attributes
  Tag_CPU_name: "7-A"
  Tag_CPU_arch: v7
  Tag_CPU_arch_profile: Application
  Tag_ARM_ISA_use: Yes
  Tag_THUMB_ISA_use: Thumb-2
  Tag_FP_arch: VFPv3-D16
  Tag_ABI_PCS_wchar_t: 4
  Tag_ABI_FP_denormal: Needed
  Tag_ABI_FP_exceptions: Needed
  Tag_ABI_FP_number_model: IEEE 754
  Tag_ABI_align_needed: 8-byte
  Tag_ABI_enum_size: int
  Tag_ABI_HardFP_use: SP and DP
  Tag_ABI_VFP_args: VFP registers
  Tag_ABI_optimization_goals: Aggressive Speed
  Tag_CPU_unaligned_access: v6
  Tag_DIV_use: Not allowed
Attribute Section: aeabi
File Attributes
  Tag_CPU_name: "7-A"
  Tag_CPU_arch: v7
  Tag_CPU_arch_profile: Application
  Tag_ARM_ISA_use: Yes
  Tag_THUMB_ISA_use: Thumb-2
  Tag_FP_arch: VFPv3
  Tag_Advanced_SIMD_arch: NEONv1
  Tag_ABI_PCS_wchar_t: 4
  Tag_ABI_FP_rounding: Needed
  Tag_ABI_FP_denormal: Needed
  Tag_ABI_FP_exceptions: Needed
  Tag_ABI_FP_number_model: IEEE 754
  Tag_ABI_align_needed: 8-byte
  Tag_ABI_align_preserved: 8-byte, except leaf SP
  Tag_ABI_enum_size: int
  Tag_CPU_unaligned_access: v6
据我所知,只有OpenGL库被编译为硬浮点。所有其他库都编译为软浮点。所以我得到了上面提到的错误。
我能为这个问题做些什么?为什么只有OpenGL库被编译为硬浮点?

您使用的是哪个版本/版本的poky?哪个
bitbake
命令导致错误?您是否使用了其他图层?您是否尝试过运行
cleanall
并重新构建它?我使用的是Yocto Jethro 2.0版本,是的,我使用的是meta-qt5、meta-oe、meta-ruby和meta-sunxi层。我没有尝试运行cleanall。您是否检查过其他层也在同一版本(jethro)上?是否有
cleanall
帮助?是的,我检查了。我尝试了cleanall,但结果是sameCan如果您检查您的机器配置文件(针对您的目标平台),DEFAULTTUNE的值是多少?