Re: Crossbuild failure on 8-stable

From: Hans Petter Selasky <hselasky_at_c2i.net>
Date: Thu, 30 Jun 2011 13:24:49 +0200
On Thursday 30 June 2011 13:13:48 Olivier Houchard wrote:
> On Thu, Jun 30, 2011 at 11:22:36AM +0200, Hans Petter Selasky wrote:
> > Hi,
> > 
> > Trying to cross build ARM fails in the following way on 8-stable:
> > 
> > 8.2-STABLE FreeBSD 8.2-STABLE #1: Wed Jun 29 13:09:23 UTC 2011
> > 
> > make toolchain TARGET=arm
> > 
> > Is this perhaps also an issue in 9-current?
> > 
> > Any clues?
> 
> Hi Hans Peter,
> 
> 
> Not sure if it is your problem, but I think it should be
> make toolchain TARGET_ARCH=arm
> 

Using "make toolchain TARGET_ARCH=arm" gives the same error code.

Tracing down the issue:

/usr/include/machine/endian.h

#define __byte_swap_int_var(x) \
__extension__ ({ register __uint32_t __X = (x); \
   __asm ("bswap %0" : "+r" (__X)); \
   __X; })

r0 looks like an ARM register passed to a non-arm assembler. I'm going to try:

"make toolchains"

And see how that works out.

--HPS
Received on Thu Jun 30 2011 - 09:26:35 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:15 UTC