From owner-freebsd-current@FreeBSD.ORG Sat Sep 25 01:41:15 2010 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 40760106564A for ; Sat, 25 Sep 2010 01:41:15 +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 F39F98FC12 for ; Sat, 25 Sep 2010 01:41:14 +0000 (UTC) Received: by iwn34 with SMTP id 34so3583171iwn.13 for ; Fri, 24 Sep 2010 18:41:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=A5eWGhbqj5k7rW24EhLaWlgpEkwDCK4j+2owQCeH3Aw=; b=EUcPlnXzxfGxRIEjevKFdHaRboa3J8dJ+n8XhpE+2cYPkTnCgZdS8kWFoZwOYB7MLw MbBBBe+foQR2dFWj5bduesZ7WIxuJNsWQEG38ubZ7j3FnJim25mCMhbAktlZDZYJ/xNJ 0Qrk9yCFlsmQQ0N6RUTMxe9tWYb2rGzIp1AUo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=XRb9SV63/Q4PGvxJTB4uVg9twfj8YVwuTGPxM6asI0TXu9zl3Wd68a0Q2dVvf09aqQ Txr4I9qTn3pMrczOEEifHvjiLQs3wax023vx2yjwVNkED4uIFeu4gETKSceHU3gtxoel QtzuBkziF2XT6UfrGTkOiwZeRRaD4REM2ZowI= Received: by 10.231.38.9 with SMTP id z9mr4341279ibd.24.1285377204825; Fri, 24 Sep 2010 18:13:24 -0700 (PDT) Received: from [192.168.0.100] (71-38-48-15.frgo.qwest.net [71.38.48.15]) by mx.google.com with ESMTPS id n20sm2941122ibe.5.2010.09.24.18.13.23 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 24 Sep 2010 18:13:24 -0700 (PDT) Message-ID: <4C9D4CAF.3070508@gmail.com> Date: Fri, 24 Sep 2010 20:13:19 -0500 From: Mark Tinguely User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: current@freebsd.org References: <4C99A53E.7060707@FreeBSD.org> <4C9A32B8.60204@kkip.pl> <4C9A6A38.4080307@freebsd.org> <4C9A7203.8010701@kkip.pl> <20100923065134.GA31455@freebsd.org> <4C9B3207.2070302@kkip.pl> <4C9B383A.6080008@FreeBSD.org> <4C9B38E2.7010403@kkip.pl> <4C9B6804.3070102@FreeBSD.org> In-Reply-To: <4C9B6804.3070102@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: Clang cross builds world 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: Sat, 25 Sep 2010 01:41:15 -0000 I was inspired by the clang build world topic to try a cross build world of ARM from a i386 computer. I use the build command: make TARGET_ARCH=arm TARGET_CPUTYPE=xscale buildworld (I tried an "TARGET_CPUTYPE=cortex-a8" once also, I got the same errors below). /etc/src.conf is taken from the FreeBSD clang web page,. /etc/make.conf has perl version strings. The cross tools build stage apparently makes an i386 compiler: /usr/obj/arm.arm/usr/src/tmp/usr/bin/clang -### FreeBSD clang version 2.8 (branches/release_28 114020) 20100917 Target: i386-undermydesk-freebsd9.0 Thread model: posix When the library build stage begins, the assembler complains about the unknown "--32" option from clang. I know the "--32" options is a i386 target add-on option. Removing "--32" from the command line with a script shim, and sure enough clang is generating i386 assembly code. I know the clang and ARM is not tested nor supported. I am just looking for some clang cross architecture compiling wisdom. --Mark Tinguely