bits/byteswap.h __bswap_32 does not cross compiling on ARM processors

Bug #315308 reported by mike morrison on 2009-01-09
Affects Status Importance Assigned to Milestone
glibc (Ubuntu)

Bug Description

Binary package hint: libc6-dev

When I try to cross compile programs for an ARM processor (omap3) that use bswap_32() directly or indirectly through functions like htons() the compiler complains:

error: invalid 'asm': invalid operand for code 'w'

This only happens when __builtin_constant_p returns 0.


$ lsb_release -rd
Description: Ubuntu 8.10
Release: 8.10

$ apt-cache policy libc6-dev
  Installed: 2.8~20080505-0ubuntu7
  Candidate: 2.8~20080505-0ubuntu7
  Version table:
 *** 2.8~20080505-0ubuntu7 0
        500 intrepid/main Packages
        100 /var/lib/dpkg/status

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers