From owner-freebsd-current@FreeBSD.ORG Thu Jun 30 20:44:24 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 72B82106564A for ; Thu, 30 Jun 2011 20:44:24 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.c2i.net [212.247.154.98]) by mx1.freebsd.org (Postfix) with ESMTP id E61A58FC08 for ; Thu, 30 Jun 2011 20:44:23 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=D/a7r8P9hO61Jx2CeejZiK+y1MY0zppvClPbOUfMbas= c=1 sm=1 a=SvYTsOw2Z4kA:10 a=JEpRC5FsCwkA:10 a=WQU8e4WWZSUA:10 a=8nJEP1OIZ-IA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=pGLkceISAAAA:8 a=6JQqYPQwwgW2Taaj8GcA:9 a=tqiCYB_TxGZDk59RDAcA:7 a=wPNLvfGTeEIA:10 a=MSl-tDqOz04A:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe04.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 146718799; Thu, 30 Jun 2011 22:44:21 +0200 From: Hans Petter Selasky To: Garrett Cooper Date: Thu, 30 Jun 2011 22:42:36 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.2-STABLE; KDE/4.4.5; amd64; ; ) References: <201106301122.36155.hselasky@c2i.net> <4E0CA0D0.6050500@gmail.com> In-Reply-To: X-Face: *nPdTl_}RuAI6^PVpA02T?$%Xa^>@hE0uyUIoiha$pC:9TVgl.Oq,NwSZ4V" =?iso-8859-1?q?=7CLR=2E+tj=7Dg5=0A=09=25V?=,x^qOs~mnU3]Gn; cQLv&.N>TrxmSFf+p6(30a/{)KUU!s}w\IhQBj}[g}bj0I3^glmC( =?iso-8859-1?q?=0A=09=3AAuzV9=3A=2EhESm-x4h240C=609=3Dw?= MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201106302242.36741.hselasky@c2i.net> Cc: freebsd-current@freebsd.org 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 20:44:24 -0000 On Thursday 30 June 2011 18:59:04 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: > >> 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? > >> > >> 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=gnu99 -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' > > > > and you also said: > >> 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: > > Looks like you have an ARM compiler/assembler because the assembler > > rejects the i386/amd64 "bswap" assembly command. > > > > 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. > > > > You manually test the "cc" command with the included "-I" option. > > Adding -v to the command line might yield more interesting results in > tracking down the culprit header. > -Garrett I can add that: make toolchains succeeded. --HPS