Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Jun 2011 13:24:49 +0200
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        Olivier Houchard <mlfbsd@kanar.ci0.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Crossbuild failure on 8-stable
Message-ID:  <201106301324.49236.hselasky@c2i.net>
In-Reply-To: <20110630111348.GA111@ci0.org>
References:  <201106301122.36155.hselasky@c2i.net> <20110630111348.GA111@ci0.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201106301324.49236.hselasky>