[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: "arm-linux-gnueabi-gcc-4.4 -march=armv4t" silently produces "armv7"



Steffen Dettmer <steffen.dettmer@googlemail.com> writes:
> I tried to compile with "arm-linux-gnueabi-gcc-4.4 -march=armv4t", but

Works fine here on openmoko running debian unstable:

lindi@ginger:~$ arm-linux-gnueabi-gcc-4.4 -march=armv4t -c dummy.c
lindi@ginger:~$ readelf -A dummy.o
Attribute Section: aeabi
File Attributes
  Tag_CPU_name: "4T"
  Tag_CPU_arch: v4T
  Tag_ARM_ISA_use: Yes
  Tag_THUMB_ISA_use: Thumb-1
  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_optimization_goals: Aggressive Debug
  Tag_DIV_use: Not allowed
lindi@ginger:~$ dpkg-query -W gcc-4.4
gcc-4.4 4.4.6-11
lindi@ginger:~$ dpkg-architecture
DEB_BUILD_ARCH=armel
DEB_BUILD_ARCH_OS=linux
DEB_BUILD_ARCH_CPU=arm
DEB_BUILD_ARCH_BITS=32
DEB_BUILD_ARCH_ENDIAN=little
DEB_BUILD_GNU_CPU=arm
DEB_BUILD_GNU_SYSTEM=linux-gnueabi
DEB_BUILD_GNU_TYPE=arm-linux-gnueabi
DEB_BUILD_MULTIARCH=arm-linux-gnueabi
DEB_HOST_ARCH=armel
DEB_HOST_ARCH_OS=linux
DEB_HOST_ARCH_CPU=arm
DEB_HOST_ARCH_BITS=32
DEB_HOST_ARCH_ENDIAN=little
DEB_HOST_GNU_CPU=arm
DEB_HOST_GNU_SYSTEM=linux-gnueabi
DEB_HOST_GNU_TYPE=arm-linux-gnueabi
DEB_HOST_MULTIARCH=arm-linux-gnueabi

> (gcc-4.4-arm-linux-gnueabi_4.4.5-15ubuntu1_i386.deb, others) but I

That seems to be from ubuntu indeed, there is no such package in
debian. Afaik debian does not have cross-compilers in the archive
yet. See

http://packages.debian.org/search?keywords=gcc-4.4-arm-linux-gnueabi&searchon=names&suite=all&section=all

vs.

http://packages.ubuntu.com/search?keywords=gcc-4.4-arm-linux-gnueabi&searchon=names&suite=all&section=all


Reply to: