From owner-freebsd-current@FreeBSD.ORG Thu Jun 30 21:10:02 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 03931106566B for ; Thu, 30 Jun 2011 21:10:01 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 920228FC0C for ; Thu, 30 Jun 2011 21:10:01 +0000 (UTC) Received: from [10.30.101.53] ([209.117.142.2]) (authenticated bits=0) by harmony.bsdimp.com (8.14.4/8.14.3) with ESMTP id p5UL23UE000440 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES128-SHA bits=128 verify=NO); Thu, 30 Jun 2011 15:02:04 -0600 (MDT) (envelope-from imp@bsdimp.com) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: Date: Thu, 30 Jun 2011 15:01:40 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: References: <201106301122.36155.hselasky@c2i.net> <4E0CA0D0.6050500@gmail.com> To: Garrett Cooper X-Mailer: Apple Mail (2.1084) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (harmony.bsdimp.com [10.0.0.6]); Thu, 30 Jun 2011 15:02:05 -0600 (MDT) Cc: freebsd-current@freebsd.org, Hans Petter Selasky Subject: Re: Crossbuild failure on 8-stable X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Jun 2011 21:10:02 -0000 Shouldn't that be 'make kernel-toolchain'? Warner On Jun 30, 2011, at 10:59 AM, Garrett Cooper wrote: > On Thu, Jun 30, 2011 at 9:14 AM, Mark Tinguely = wrote: >> On 6/30/2011 4:22 AM, Hans Petter Selasky wrote: >>>=20 >>> Hi, >>>=20 >>> Trying to cross build ARM fails in the following way on 8-stable: >>>=20 >>> 8.2-STABLE FreeBSD 8.2-STABLE #1: Wed Jun 29 13:09:23 UTC 2011 >>>=20 >>> make toolchain TARGET=3Darm >>>=20 >>> Is this perhaps also an issue in 9-current? >>>=20 >>> Any clues? >>>=20 >>> cc -O -pipe -ffreestanding -Wformat -I/usr/src/lib/libstand = -msoft-float >>> - >>> D_STANDALONE -DBZ_NO_STDIO -DBZ_NO_COMPRESS -DHAVE_MEMCPY - >>> I/usr/src/lib/libstand/../libz -std=3Dgnu99 -c >>> /usr/src/lib/libstand/../libc/net/ntoh.c >>> {standard input}: Assembler messages: >>> {standard input}:27: Error: bad instruction `bswap r0' >>> {standard input}:53: Error: bad instruction `bswap r0' >>>=20 >>=20 >> and you also said: >>=20 >>> Tracing down the issue: >>>=20 >>> /usr/include/machine/endian.h >>>=20 >>> #define __byte_swap_int_var(x) \ >>> __extension__ ({ register __uint32_t __X =3D (x); \ >>> __asm ("bswap %0" : "+r" (__X)); \ >>> __X; }) >>>=20 >>> r0 looks like an ARM register passed to a non-arm assembler. I'm = going to >>> try: >>>=20 >>=20 >> Looks like you have an ARM compiler/assembler because the assembler = rejects >> the i386/amd64 "bswap" assembly command. >>=20 >> Does anyone remember if the cross compiler has the cross include = paths >> compiled into them or should there be a "-I" in the compile command = to >> correctly expand the "#include " ? I thought the = cross >> path was compiled into the cross compiler. >>=20 >> You manually test the "cc" command with the included "-I" option. >=20 > Adding -v to the command line might yield more interesting results in > tracking down the culprit header. > -Garrett > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to = "freebsd-current-unsubscribe@freebsd.org" >=20 >=20