From owner-freebsd-arm@FreeBSD.ORG Thu Apr 21 17:37:39 2011 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DE19D1065689 for ; Thu, 21 Apr 2011 17:37:39 +0000 (UTC) (envelope-from marktinguely@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 9E7C58FC15 for ; Thu, 21 Apr 2011 17:37:39 +0000 (UTC) Received: by iyj12 with SMTP id 12so2182067iyj.13 for ; Thu, 21 Apr 2011 10:37:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=ID6u2xh/QuC6iD4U4wsZ6aiV73YBxfQ8pTiHzcpVIPI=; b=gISVBMGE+Bzjlld4vUK8WksvpOii3fEfhiBMAusOrO30sR0cqfSyvwTAYSnMjD2+vG nPMymBPiDGjKpvY0/NXcLAClRs4PYXm+gXSHHo6Tq3h9KQTlZ8jcwqp2bj899c1lEbNO S7AA//MJjeHEStKY3yQQW6iFSHqpq8B4gQmPg= DomainKey-Signature: a=rsa-sha1; c=nofws; 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; b=pb36L/m9Ijq3ay5o61F/NdA4esX+g4iN6KWh8L5sNZW86OhOlCvx7PKenCPX85X/kq Vu03uyvlsXtbinYBWpz//XPo1U3yLR1/qwdjTc3f8HV0YTBYFpFmGqLZcPGz7fGwOmKo WabBO35DpRGi459wSqGF3d6F8XMprRur2L4Bo= Received: by 10.231.66.146 with SMTP id n18mr195063ibi.14.1303407459021; Thu, 21 Apr 2011 10:37:39 -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 g16sm833449ibb.37.2011.04.21.10.37.37 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 21 Apr 2011 10:37:38 -0700 (PDT) Message-ID: <4DB06B5E.3050707@gmail.com> Date: Thu, 21 Apr 2011 12:37:34 -0500 From: Mark Tinguely User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: Damjan Marion References: <77B4B008-D5A6-48A7-BAF9-E5084BF098DA@gmail.com> In-Reply-To: <77B4B008-D5A6-48A7-BAF9-E5084BF098DA@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org, freebsd-toolchain@freebsd.org Subject: Re: kernel cross-compiled with clang for ARM architecture X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Apr 2011 17:37:39 -0000 On 4/21/2011 12:11 PM, Damjan Marion wrote: > Hi, > > I managed to cross-compile latest -CURRENT + Ben's patches with clang and compiled kernel boots on pandaboard. > Pandaboard support is still work in progress, but clang compiled kernel boots up to the same point like gcc version. > > I used latest clang/llvm from svn with following: > > CC="/opt/llvm/bin/clang -mcpu=cortex-a9 -ccc-host-triple arm-unknown-freebsd -mfloat-abi=soft" > WERROR="" > > This works both on FreeBSD and Mac OS X host. > > Issues: > - integrated assembler for ARM doesn't work properly ( I filled bugs [1] and [2]) > - gnu as works ok but newer version of binutils is needed which supports ARMv7 instructions > - i had to patch [3] clang to invoke cross linker properly (thanks to guys form #freebsd-clang ) > > > Regards, > > Damjan > > [1] http://llvm.org/bugs/show_bug.cgi?id=9760 > [2] http://llvm.org/bugs/show_bug.cgi?id=9762 > [3] http://llvm.org/bugs/show_bug.cgi?id=9777 > > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" > Good job. I made a binutils 2.19 tar file that drops right into the source tree. It has many of the v7 features. http://www.tinguelys.info/mark/freebsd/binutils2.19.tgz LLVM is suppose to have utilities as well, which should be the long term solution. --Mark Tinguely