From owner-freebsd-current@FreeBSD.ORG Thu Jun 30 16:44:44 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 19554106566C for ; Thu, 30 Jun 2011 16:44:44 +0000 (UTC) (envelope-from marktinguely@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id D72D98FC13 for ; Thu, 30 Jun 2011 16:44:43 +0000 (UTC) Received: by iwr19 with SMTP id 19so2880581iwr.13 for ; Thu, 30 Jun 2011 09:44:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=eFeVVloWdrUz9U52YlVmU/nTvpkT3Y5lRIyGbajbQEc=; b=gbHfwvMXfQLFo9ZvacTbR3OVokrEVxYnPxlxedsDbCRbKVS7kmlCpszd/Nyb/acD04 FLjSIdVriEXcSQKPBPOlOr9wWrUz8N3Ky8U6kZCTfL5i30PW51scJ6fX1zmHy9MCCkMt Ra0sdD/bVWcI1v7ogQ47V73NZsR0FTHoEsqPQ= Received: by 10.42.200.133 with SMTP id ew5mr2283587icb.182.1309450452404; Thu, 30 Jun 2011 09:14:12 -0700 (PDT) Received: from [192.168.1.100] (c-24-245-26-12.hsd1.mn.comcast.net [24.245.26.12]) by mx.google.com with ESMTPS id d8sm2307011icy.21.2011.06.30.09.14.11 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 30 Jun 2011 09:14:11 -0700 (PDT) Message-ID: <4E0CA0D0.6050500@gmail.com> Date: Thu, 30 Jun 2011 11:14:08 -0500 From: Mark Tinguely User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11 MIME-Version: 1.0 To: Hans Petter Selasky References: <201106301122.36155.hselasky@c2i.net> In-Reply-To: <201106301122.36155.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 16:44:44 -0000 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. --Mark