Inconsistencies with the gcc-arm-linux-gnueabi package accross Ubuntu versions

David Krauser ARA/VHD dkrauser at ara.com
Wed Feb 26 14:27:20 UTC 2014


Hey Ubuntu Developers,

As hard as I try, I can't get the gcc-arm-linux-gnueabi compiler in Ubuntu 12.04 to build armv5t and/or soft float abi binaries. This works fine with the gcc-arm-linux-gnueabi compiler in Ubuntu 13.10.

I ultimately tracked the issue down to the libc6-armel-cross and libstdc++6-armel-cross packages. In Ubuntu 12.04 they targetet armv7-a softfp, but in Ubuntu 13.10 they target armv5t soft.

For example, in Ubuntu 12.04:

$ dpkg -S /usr/arm-linux-gnueabi/lib/libc.so.6
libc6-armel-cross: /usr/arm-linux-gnueabi/lib/libc.so.6

$ readelf -A /usr/arm-linux-gnueabi/lib/libc.so.6
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_align_preserved: 8-byte, except leaf SP
  Tag_ABI_enum_size: int
  Tag_ABI_HardFP_use: SP and DP
  Tag_CPU_unaligned_access: v6
  Tag_DIV_use: Not allowed

And in Ubuntu 13.10:

$ dpkg -S /usr/arm-linux-gnueabi/lib/libc.so.6
libc6-armel-cross: /usr/arm-linux-gnueabi/lib/libc.so.6

$ readelf -A /usr/arm-linux-gnueabi/lib/libc.so.6
Attribute Section: aeabi
File Attributes
  Tag_CPU_name: "5T"
  Tag_CPU_arch: v5T
  Tag_ARM_ISA_use: Yes
  Tag_THUMB_ISA_use: Thumb-1
  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

Was this intended? It seems to me that the packages should be consistent.

Thanks,

David Krauser




More information about the Ubuntu-devel-discuss mailing list