From owner-freebsd-arm@FreeBSD.ORG Sun Apr 10 16:10:44 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 114D4106564A for ; Sun, 10 Apr 2011 16:10:44 +0000 (UTC) (envelope-from damjan.marion@gmail.com) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 971608FC0A for ; Sun, 10 Apr 2011 16:10:35 +0000 (UTC) Received: by ewy1 with SMTP id 1so1644459ewy.13 for ; Sun, 10 Apr 2011 09:10:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:content-type:content-transfer-encoding :subject:date:message-id:to:mime-version:x-mailer; bh=7ZPUvA0pgR+joh5W2guLTre54n3IgsxYBA9muAXs8UA=; b=mf4L7NDIJhaYqkteqBQVczn4p1oxTMp1/JrdXvB2er5tB9BrPzcBWjLY9itklSsKVd EmWWyoDwASxpT4htQygFvkRZYD3uqNuru3tMnlh428RiWCzephJ+6JCvHfnPYf+AnwRB ArbogWqluMilqoc/6CNp8qR3EDFbKQpyrx+FI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; b=xilUgh7TkyreX9rlvk910K8D0ppKWiPNFk3v7xV7gcbYvEI4XSZGWnBbvaq7pzrBxw iGo7plbLoqbw7X56KgUsd8uQREqlSwK8iqzsAIn6U+ZwlSc8ayOfE5Jl25VxLHqjM4eD JpuXb4nJx/jtkbxWiFkbZdVKFbfHr/4zq1Xic= Received: by 10.14.133.139 with SMTP id q11mr1652495eei.11.1302451835076; Sun, 10 Apr 2011 09:10:35 -0700 (PDT) Received: from [192.168.123.4] (cpe-109-60-66-194.zg3.cable.xnet.hr [109.60.66.194]) by mx.google.com with ESMTPS id u1sm2449758eeh.6.2011.04.10.09.10.33 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 10 Apr 2011 09:10:34 -0700 (PDT) From: Damjan Marion Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Sun, 10 Apr 2011 18:10:32 +0200 Message-Id: <2D2AD886-DCC5-4468-A8F3-F55D812C098F@gmail.com> To: freebsd-arm@freebsd.org Mime-Version: 1.0 (Apple Message framework v1084) X-Mailer: Apple Mail (2.1084) Subject: LLVM/Clang cross-compiling for ARM 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: Sun, 10 Apr 2011 16:10:44 -0000 Hi, What is the current status of LLVM/Clang cross-compiling for ARM = targets? Is anybody working actively on this? As it natively supports v6 and v7 architectures sounds like perfect = choice for new CPUs,=20 specially with fact that we cannot use recent gcc versions. Thanks, Damjan= From owner-freebsd-arm@FreeBSD.ORG Mon Apr 11 11:06:57 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 94AF4106566B for ; Mon, 11 Apr 2011 11:06:57 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 845458FC2F for ; Mon, 11 Apr 2011 11:06:57 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p3BB6vQV025820 for ; Mon, 11 Apr 2011 11:06:57 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p3BB6uZ1025818 for freebsd-arm@FreeBSD.org; Mon, 11 Apr 2011 11:06:56 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 11 Apr 2011 11:06:56 GMT Message-Id: <201104111106.p3BB6uZ1025818@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-arm@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-arm@FreeBSD.org 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: Mon, 11 Apr 2011 11:06:57 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o arm/155894 arm [patch] Enable at91 booting from SDHC (high capacity) o arm/155214 arm [patch] MMC/SD IO slow on Atmel ARM with modern large o arm/154306 arm named crashes with signal 11 o arm/154227 arm [geli] using GELI leads to panic on ARM o arm/154189 arm lang/perl5.12 doesn't build on arm o arm/153380 arm Panic / translation fault with wlan on ARM o arm/150581 arm [irq] Unknown error generates IRQ address decoding err o arm/149288 arm mail/dovecot causes panic during configure on Sheevapl o arm/134368 arm [patch] nslu2_led driver for the LEDs on the NSLU2 p arm/134338 arm [patch] Lock GPIO accesses on ixp425 10 problems total. From owner-freebsd-arm@FreeBSD.ORG Wed Apr 13 22:15:32 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 1DE9A106566C for ; Wed, 13 Apr 2011 22:15:32 +0000 (UTC) (envelope-from vassilis.laganakos@yahoo.com) Received: from nm15-vm0.bullet.mail.ac4.yahoo.com (nm15-vm0.bullet.mail.ac4.yahoo.com [98.139.52.236]) by mx1.freebsd.org (Postfix) with SMTP id AFF248FC0A for ; Wed, 13 Apr 2011 22:15:31 +0000 (UTC) Received: from [98.139.52.192] by nm15.bullet.mail.ac4.yahoo.com with NNFMP; 13 Apr 2011 22:02:45 -0000 Received: from [98.138.90.57] by tm5.bullet.mail.ac4.yahoo.com with NNFMP; 13 Apr 2011 22:02:45 -0000 Received: from [98.138.87.6] by tm10.bullet.mail.ne1.yahoo.com with NNFMP; 13 Apr 2011 22:02:45 -0000 Received: from [127.0.0.1] by omp1006.mail.ne1.yahoo.com with NNFMP; 13 Apr 2011 22:02:45 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 161301.18018.bm@omp1006.mail.ne1.yahoo.com Received: (qmail 9688 invoked by uid 60001); 13 Apr 2011 22:02:44 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1302732164; bh=vnpzyMzxsC0XGKcdeON2X6FeQCQxnJafJWo3KbPINTY=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=NNeE9IDUydbcjByRh4/j+6n5LL4to+D0ECDNihhsnccesdIXNenw10fIiDNFL16dV46ntWXzQ7A/Z3hEfCwqLON8lQHMOcfgOAV9OLwAnReJjhvqfCbgES4o49dB23kIh+DER7BzfsoDRcsIfVXb/108xuBo2hwIcgH1cYkdk5E= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=cqycPq9PTAoJ118fc1N3lwfWOax2eCuq+5FnraDsPhJjLwR7ZnGZmnpHGW+byVkFj08cDUzf5z15NBV4i6AHS0gV0lISvip9OiouJFIOuuEuoOpzzwwAq7YkbZ6uYZCotWOTvXTVpkKo/uEvHIEhWeXHCnz0jeespN2eZm4waDg=; Message-ID: <794721.93419.qm@web112111.mail.gq1.yahoo.com> X-YMail-OSG: ulRKKN0VM1lI8TDHEHVpa_Y2wkPeHYSZVwqNLgweo2pgSYP 0e6D1fzSzbrsUR6ORFx560HQyvK18rAMUkr.QlZ56rothS1tlc.7LyqHHaLk ZdTf1AEILCEh6HDpId.CQ9AS5s5bN_B87eIh6iQiY7oDgmt4g1yKOXlHWzzu gUNclmDwmO9dOnCnNhmNwo6rnyEOk8hz03RoB8Z3PJJ.pa8ksMITf7KraKRJ YYo748zYz8AiS5V4zwuLR0a4nT897yCkZhDwPiZ6cyKjN_BbqT.WRKorBhGe 5C8EYqyyhIsDmlrhs7Fv.z1cRjdTR0S25QN0DXb3BnYzZQWmtY60- Received: from [86.22.78.61] by web112111.mail.gq1.yahoo.com via HTTP; Wed, 13 Apr 2011 15:02:44 PDT X-Mailer: YahooMailWebService/0.8.109.295617 Date: Wed, 13 Apr 2011 15:02:44 -0700 (PDT) From: Vassilis Laganakos To: Damjan Marion , "freebsd-arm@freebsd.org" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Subject: Re: LLVM/Clang cross-compiling for ARM X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Vassilis Laganakos List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Apr 2011 22:15:32 -0000 Hello Damjan, ----- Original Message ----- > From:Damjan Marion > To:freebsd-arm@freebsd.org > Cc: > Sent:Sunday, April 10, 2011 5:10 PM > Subject:Re: LLVM/Clang cross-compiling for ARM > > > Hi, > > What is the current status of LLVM/Clang cross-compiling for ARM targets? > Is anybody working actively on this? > I started taking a look into building llvm as cross-compiler for ARM and trying to build -CURRENT for an existing port, so see how far we get :) I'm currently stuck a bit in the first step :) As Mark T. pointed out in a recent email, llvm in -CURRENT does not cross-build, so we have to use an external compiler for now. I'll hopefully get back soon with some useful info about this... > As it natively supports v6 and v7 architectures sounds like perfect choice for > new CPUs, > specially with fact that we cannot use recent gcc versions. > Yes :) however, we would need to commit a version of llvm that can also cross-build in the build tree/system. Or else we're exactly at the same point where we were with having a later version of GCC as an external compiler. The fact that llvm can be imported in the build system is the great win in this case ;) Thanks, Vassilis From owner-freebsd-arm@FreeBSD.ORG Wed Apr 13 22:35:44 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 BCB80106566B for ; Wed, 13 Apr 2011 22:35:44 +0000 (UTC) (envelope-from damjan.marion@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 4E7058FC12 for ; Wed, 13 Apr 2011 22:35:44 +0000 (UTC) Received: by wyf23 with SMTP id 23so1079524wyf.13 for ; Wed, 13 Apr 2011 15:35:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to:x-mailer; bh=uwa/wgClE7Jco0J6/poZODw8b9sds1ICn2SnnUR0PCU=; b=dnJBgEl+wee7D6ufu8ao3xMZBM7jXBdM7GKPYjABKp356HWTJ3fK582OCda7NgOioL xkXeC1FgNT74C2h75AsJxGOW1BJeGbroJ/NJW8a8SzGe7psROBuM1DxBVaoRqcEdeQ4T 2w4GHBphN5pal3Bo+qRYRgQXIOG6M32KHAukc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=mxcEqCmsIoEhAcsqZdv9iIm3njGet6lJ0FvxbeWpqVFI8VX1g7bbjHf8EzneG51du+ dxxQnDao4OXJu3Qeb7bAq8snjMNxeKlo9ZyYp6ia8+bzzBZrbWoaK/gjeLIYI1n7yKhs PALRh84+Az5ra8IKtum0R28aCb9oiDZ0NTb5Y= Received: by 10.216.254.90 with SMTP id g68mr35496wes.16.1302734143285; Wed, 13 Apr 2011 15:35:43 -0700 (PDT) Received: from [192.168.123.4] (cpe-109-60-66-194.zg3.cable.xnet.hr [109.60.66.194]) by mx.google.com with ESMTPS id j49sm499973wer.38.2011.04.13.15.35.41 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 13 Apr 2011 15:35:42 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Damjan Marion In-Reply-To: <794721.93419.qm@web112111.mail.gq1.yahoo.com> Date: Thu, 14 Apr 2011 00:35:40 +0200 Content-Transfer-Encoding: 7bit Message-Id: <574B5BB8-3BD6-4C87-9FC7-9549C02A2FCD@gmail.com> References: <794721.93419.qm@web112111.mail.gq1.yahoo.com> To: Vassilis Laganakos X-Mailer: Apple Mail (2.1084) Cc: "freebsd-arm@freebsd.org" Subject: Re: LLVM/Clang cross-compiling for ARM 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: Wed, 13 Apr 2011 22:35:44 -0000 Hi Vassilis, On Apr 14, 2011, at 12:02 AM, Vassilis Laganakos wrote: > Hello Damjan, > > ----- Original Message ----- >> From:Damjan Marion >> To:freebsd-arm@freebsd.org >> Cc: >> Sent:Sunday, April 10, 2011 5:10 PM >> Subject:Re: LLVM/Clang cross-compiling for ARM >> >> >> Hi, >> >> What is the current status of LLVM/Clang cross-compiling for ARM targets? >> Is anybody working actively on this? >> > > I started taking a look into building llvm as cross-compiler > for ARM and trying to build -CURRENT for an existing port, > so see how far we get :) > > I'm currently stuck a bit in the first step :) As Mark T. pointed > out in a recent email, llvm in -CURRENT does not cross-build, > so we have to use an external compiler for now. What exactly is missing in current version of llvm in -CURRENT? After reading some high level overview of llvm i was under impression that llvm natively supports multiple targets, but seems that I was wrong. > > I'll hopefully get back soon with some useful info about this... Cool, please keep us updated. Thanks, Damjan From owner-freebsd-arm@FreeBSD.ORG Thu Apr 14 02:25:27 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 24F79106566B for ; Thu, 14 Apr 2011 02:25:27 +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 D6F118FC15 for ; Thu, 14 Apr 2011 02:25:26 +0000 (UTC) Received: by iyj12 with SMTP id 12so1377763iyj.13 for ; Wed, 13 Apr 2011 19:25:26 -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=t7zO5wl8Cgh6dD9pXfQ8dO6oz1xbHQXCOQhIc2ILUDM=; b=WKFeoKIVItBh9lfRV1tz3FEAA9ke9MTKBNi9Ex3ZjlpCQNgTJ9Kq+UagMbGzwNmut+ X0wTR6AUsivXuxKnSFqBl1f81P1H3HkqIKb1X0Le0XvsdybUJQvvAmBv4miAdjR00noH exFFpgIlg3Wp+XQRrNn9NOkOR7kdoBK1RYksE= 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=uDEnthfkV3BAUm2AAEIZvwr2piI3wlUEz3qXHKOB1BjxYB4qP5IOIy8vu4QhDxnwUd /NhtTwyfyPzV/s8sqr/MJnSqbTsbQDhVvB5E/3OzCwB9byJNpTbqDI7YJUw5YFrpUC8y rdasC8V+sPEvQM2H3g9VUVAsUUI3RNctopYt8= Received: by 10.43.65.136 with SMTP id xm8mr350855icb.34.1302747925555; Wed, 13 Apr 2011 19:25:25 -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 y10sm829805iba.46.2011.04.13.19.25.23 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 13 Apr 2011 19:25:24 -0700 (PDT) Message-ID: <4DA65B0F.1040807@gmail.com> Date: Wed, 13 Apr 2011 21:25:19 -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: <794721.93419.qm@web112111.mail.gq1.yahoo.com> <574B5BB8-3BD6-4C87-9FC7-9549C02A2FCD@gmail.com> In-Reply-To: <574B5BB8-3BD6-4C87-9FC7-9549C02A2FCD@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "freebsd-arm@freebsd.org" Subject: Re: LLVM/Clang cross-compiling for ARM 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, 14 Apr 2011 02:25:27 -0000 From distant memory, Clang was looking up the current processor and compiled in the assembly options for that architecture (i386). I can't remember if it was still kicking out i386 assembly as well. One idea I had was short-circuit the answer to those architecture queries and return "arm". Has anyone tried to compile Clang on an ARM arch and then build world with that? I suppose that would be a slow development environment. --Mark. On 4/13/2011 5:35 PM, Damjan Marion wrote: > Hi Vassilis, > > On Apr 14, 2011, at 12:02 AM, Vassilis Laganakos wrote: > >> Hello Damjan, >> >> ----- Original Message ----- >>> From:Damjan Marion >>> To:freebsd-arm@freebsd.org >>> Cc: >>> Sent:Sunday, April 10, 2011 5:10 PM >>> Subject:Re: LLVM/Clang cross-compiling for ARM >>> >>> >>> Hi, >>> >>> What is the current status of LLVM/Clang cross-compiling for ARM targets? >>> Is anybody working actively on this? >>> >> I started taking a look into building llvm as cross-compiler >> for ARM and trying to build -CURRENT for an existing port, >> so see how far we get :) >> >> I'm currently stuck a bit in the first step :) As Mark T. pointed >> out in a recent email, llvm in -CURRENT does not cross-build, >> so we have to use an external compiler for now. > What exactly is missing in current version of llvm in -CURRENT? > > After reading some high level overview of llvm i was under impression > that llvm natively supports multiple targets, but seems that I was wrong. > >> I'll hopefully get back soon with some useful info about this... > Cool, please keep us updated. > > Thanks, > > Damjan > _______________________________________________ > 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" > From owner-freebsd-arm@FreeBSD.ORG Thu Apr 14 07:14:02 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 56AD7106564A for ; Thu, 14 Apr 2011 07:14:02 +0000 (UTC) (envelope-from damjan.marion@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id D72688FC0A for ; Thu, 14 Apr 2011 07:14:01 +0000 (UTC) Received: by wwc33 with SMTP id 33so1532161wwc.31 for ; Thu, 14 Apr 2011 00:14:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to:x-mailer; bh=Uxlz0wJEFbVNSTamRRcCRu4EeFs6TUUJxrwKyN7TrRs=; b=XqN0uaVCALHQgtvBGEI9f5YrbJ3IkZUYjwknr4mS958i5hY4Yk+fk6GmOEhvacltKR l07k6PCxt7FHj7parGHe3CbuHfG01VYPblDbG0WBqoHw72TYxeb9eaA9K4r+/0HNFPDK tqLoht1KOsVQvxmDCPCPUOei56XeAx5AfntF4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=qqPVYpWEvebTyVq9iAqgCnIVBQY8x9qIlyyEMSh6jGXaO54FhgWF/fmoglb04xi/jA uE5EGUhJPlSwOfZhFjDF1c8OS7LhOsYpTAcWe2I6k6n8Hib4e9u5XYUJm0zVrk46VUvq a+sRojH7DYvejXxiQj4XFM6qrNAEks9O6FZMQ= Received: by 10.217.7.4 with SMTP id z4mr5991027wes.89.1302765239116; Thu, 14 Apr 2011 00:13:59 -0700 (PDT) Received: from [192.168.123.4] (cpe-109-60-66-194.zg3.cable.xnet.hr [109.60.66.194]) by mx.google.com with ESMTPS id bd8sm791980wbb.31.2011.04.14.00.13.56 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 14 Apr 2011 00:13:58 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Damjan Marion In-Reply-To: <4DA65B0F.1040807@gmail.com> Date: Thu, 14 Apr 2011 09:13:55 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <714C855E-0EC8-4129-A1A4-C9C978D1B349@gmail.com> References: <794721.93419.qm@web112111.mail.gq1.yahoo.com> <574B5BB8-3BD6-4C87-9FC7-9549C02A2FCD@gmail.com> <4DA65B0F.1040807@gmail.com> To: Mark Tinguely X-Mailer: Apple Mail (2.1084) Cc: "freebsd-arm@freebsd.org" Subject: Re: LLVM/Clang cross-compiling for ARM 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, 14 Apr 2011 07:14:02 -0000 Hi Mark, Seems that clang from current (made by i386 buildworld) is able to build = ARM code: # clang -v = = FreeBSD clang version 2.9 (trunk 126547) 20110226 Target: i386-undermydesk-freebsd9.0 Thread model: posix # clang -march=3Darmv7-a -mfloat-abi=3Dsoft -ccc-host-triple arm-elf = -integrated-as hello.c -o hello.o -c = =20 # file hello.o = = =20 hello.o: ELF 32-bit LSB relocatable, ARM, version 1 (SYSV), not stripped # clang -march=3Darmv7-a -mfloat-abi=3Dsoft -ccc-host-triple arm-elf = hello.c -o hello.S -S # cat hello.S .syntax unified .cpu cortex-a8 .eabi_attribute 6, 10 .eabi_attribute 7, 65 .eabi_attribute 8, 1 .eabi_attribute 9, 2 .eabi_attribute 10, 2 .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .file "hello.c" .text .globl main .align 2 .type main,%function main: push {r11, lr} mov r11, sp sub sp, sp, #12 mov r0, #0 str r0, [r11, #-4] str r0, [sp, #4] movw r0, :lower16:.L.str movt r0, :upper16:.L.str bl printf str r0, [sp] ldr r0, [sp, #4] mov sp, r11 ldmia sp!, {r11, pc} .Ltmp0: .size main, .Ltmp0-main .type .L.str,%object .section .rodata.str1.1,"aMS",%progbits,1 .L.str: .asciz "Hello World!\n" .size .L.str, 14 Regards, Damjan On Apr 14, 2011, at 4:25 AM, Mark Tinguely wrote: > =46rom distant memory, Clang was looking up the current processor and = compiled in the assembly options for that architecture (i386). I can't = remember if it was still kicking out i386 assembly as well. One idea I = had was short-circuit the answer to those architecture queries and = return "arm". >=20 > Has anyone tried to compile Clang on an ARM arch and then build world = with that? I suppose that would be a slow development environment. >=20 > --Mark. >=20 > On 4/13/2011 5:35 PM, Damjan Marion wrote: >> Hi Vassilis, >>=20 >> On Apr 14, 2011, at 12:02 AM, Vassilis Laganakos wrote: >>=20 >>> Hello Damjan, >>>=20 >>> ----- Original Message ----- >>>> From:Damjan Marion >>>> To:freebsd-arm@freebsd.org >>>> Cc: >>>> Sent:Sunday, April 10, 2011 5:10 PM >>>> Subject:Re: LLVM/Clang cross-compiling for ARM >>>>=20 >>>>=20 >>>> Hi, >>>>=20 >>>> What is the current status of LLVM/Clang cross-compiling for ARM = targets? >>>> Is anybody working actively on this? >>>>=20 >>> I started taking a look into building llvm as cross-compiler >>> for ARM and trying to build -CURRENT for an existing port, >>> so see how far we get :) >>>=20 >>> I'm currently stuck a bit in the first step :) As Mark T. pointed >>> out in a recent email, llvm in -CURRENT does not cross-build, >>> so we have to use an external compiler for now. >> What exactly is missing in current version of llvm in -CURRENT? >>=20 >> After reading some high level overview of llvm i was under impression >> that llvm natively supports multiple targets, but seems that I was = wrong. >>=20 >>> I'll hopefully get back soon with some useful info about this... >> Cool, please keep us updated. >>=20 >> Thanks, >>=20 >> Damjan >> _______________________________________________ >> 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" >>=20 >=20 From owner-freebsd-arm@FreeBSD.ORG Thu Apr 14 10:11:59 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 0708B1065673 for ; Thu, 14 Apr 2011 10:11:59 +0000 (UTC) (envelope-from vassilis.laganakos@yahoo.com) Received: from nm4-vm0.bullet.mail.ac4.yahoo.com (nm4-vm0.bullet.mail.ac4.yahoo.com [98.139.53.206]) by mx1.freebsd.org (Postfix) with SMTP id A8CAC8FC17 for ; Thu, 14 Apr 2011 10:11:58 +0000 (UTC) Received: from [98.139.52.197] by nm4.bullet.mail.ac4.yahoo.com with NNFMP; 14 Apr 2011 10:11:58 -0000 Received: from [98.138.90.50] by tm10.bullet.mail.ac4.yahoo.com with NNFMP; 14 Apr 2011 10:11:58 -0000 Received: from [98.138.89.240] by tm3.bullet.mail.ne1.yahoo.com with NNFMP; 14 Apr 2011 10:11:57 -0000 Received: from [127.0.0.1] by omp1013.mail.ne1.yahoo.com with NNFMP; 14 Apr 2011 10:11:57 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 954770.17770.bm@omp1013.mail.ne1.yahoo.com Received: (qmail 33744 invoked by uid 60001); 14 Apr 2011 10:11:57 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1302775917; bh=TQoILPWYC7aaRgy5yjTD3h4zfJ050KwlDqBx273EPAc=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:MIME-Version:Content-Type; b=kQnpcR2kIKdD3HfDTGD0Xl50UdT5kMhdTaXNjO8ujg4cbfeJQjNSqR6UoVsttD5S9MM3x5k7cMElGaiBRAbkGoOqWkvZIIt5IK3n/VYdeNAKlEwbEeDH28pxmM3kJmdzwaC+F2FJsd+nvmIHcY/Vbn72jRiB4z9VywTl2Qhhojw= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:MIME-Version:Content-Type; b=ShhVdTFHGJI9eIpeJVElBbzy/Si3UFBnIEHV+2IN69Fw+LJg5qmqJvk4dJsSst7tsfPDW8fsaNzf4jYMhj4+R9cb8KUv4WOAKqnDtBGLA/1HRQ1QLt3JtRGVNwdOXFT+F3Z1WJFagDOcCGT4TJ2F3Ql1WmQpH9K/GHMtG3ykmvg=; Message-ID: <252890.29834.qm@web112102.mail.gq1.yahoo.com> X-YMail-OSG: rutX7lUVM1kcUFtxlWMzSyRj8dMaxG1TOuTHi_12K2yga9T mlgmTuWwPuskkG1cpuhvTS.qOjRCVZ32fz8rGfDG2FIUb.WfLJwt2TUjKcup UQSJKJiNKw8EQI.xZ5cO3VGiO2OwO4jWZCfzvaaf4MeR0zjaEuNnnG02ynz9 aLHt7B_3YBP4VLRncX6B.QQlUgzsA6vhiNT9.y4MRMVlcD8eDi46ku8KtI_F BGIqnyvo_4frqwctQmE8Vj8sYoyArNfvEdZwgSNLu624n669PTcgye6bMqGJ eCbt7vovY5r8hhrhLgvlGRSlE8JisgRwMh0ifAU.3bF4lV0Dcgb7BfoH98mU .Oj9FhUFgsETqWVeljcKbtoA0.Lg- Received: from [217.140.96.21] by web112102.mail.gq1.yahoo.com via HTTP; Thu, 14 Apr 2011 03:11:57 PDT X-Mailer: YahooMailWebService/0.8.109.295617 Date: Thu, 14 Apr 2011 03:11:57 -0700 (PDT) From: Vassilis Laganakos To: Damjan Marion MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "freebsd-arm@freebsd.org" Subject: Re: LLVM/Clang cross-compiling for ARM X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Vassilis Laganakos List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Apr 2011 10:11:59 -0000 ----- Original Message ----- [...] > Hi Vassilis, > > On Apr 14, 2011, at 12:02 AM, Vassilis Laganakos wrote: > > > Hello Damjan, > > > > ----- Original Message ----- > >> From:Damjan Marion > >> To:freebsd-arm@freebsd.org > >> Cc: > >> Sent:Sunday, April 10, 2011 5:10 PM > >> Subject:Re: LLVM/Clang cross-compiling for ARM > >> > >> > >> Hi, > >> > >> What is the current status of LLVM/Clang cross-compiling for ARM targets? > >> Is anybody working actively on this? > >> > > > > I started taking a look into building llvm as cross-compiler > > for ARM and trying to build -CURRENT for an existing port, > > so see how far we get :) > > > > I'm currently stuck a bit in the first step :) As Mark T. pointed > > out in a recent email, llvm in -CURRENT does not cross-build, > > so we have to use an external compiler for now. > > What exactly is missing in current version of llvm in -CURRENT? > I didn't actively look into it, I trusted the info from http://wiki.freebsd.org/BuildingFreeBSDWithClang that says: "Please note that cross compiling is not yet supported by clang." :) So I went off to try building a cross-compiling llvn/clang that builts source for ARM. > After reading some high level overview of llvm i was under impression > that llvm natively supports multiple targets, but seems that I was wrong. > I wasn't aware of that, but I do need to read a bit more about llvm ... > > > > I'll hopefully get back soon with some useful info about this... > > Cool, please keep us updated. > Sure! Thanks, Vassilis L. From owner-freebsd-arm@FreeBSD.ORG Thu Apr 14 11:06:57 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 66C13106566C for ; Thu, 14 Apr 2011 11:06:57 +0000 (UTC) (envelope-from vassilis.laganakos@yahoo.com) Received: from nm28.bullet.mail.ac4.yahoo.com (nm28.bullet.mail.ac4.yahoo.com [98.139.52.225]) by mx1.freebsd.org (Postfix) with SMTP id 0FE768FC16 for ; Thu, 14 Apr 2011 11:06:56 +0000 (UTC) Received: from [98.139.52.191] by nm28.bullet.mail.ac4.yahoo.com with NNFMP; 14 Apr 2011 11:06:56 -0000 Received: from [98.138.90.53] by tm4.bullet.mail.ac4.yahoo.com with NNFMP; 14 Apr 2011 11:06:56 -0000 Received: from [98.138.89.193] by tm6.bullet.mail.ne1.yahoo.com with NNFMP; 14 Apr 2011 11:06:56 -0000 Received: from [127.0.0.1] by omp1051.mail.ne1.yahoo.com with NNFMP; 14 Apr 2011 11:06:56 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 161106.66809.bm@omp1051.mail.ne1.yahoo.com Received: (qmail 35860 invoked by uid 60001); 14 Apr 2011 11:06:55 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1302779215; bh=qGZrNfoKOw0y+HuNpvTjE0vlMDASLbkIvbQSyMZ8nMw=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding; b=FFV2K/ZC1rGVciNYnwsp4JeNfPGC9bFmOwSz0t5yEx+QWaYhx2lyjujsL1AggrMKrWUwqueDjKwhCmpzyf16HlkfcRiwEMG5X6Asl6E6dDwpKrGHjklXqDza7NfS4ruUsclQ/3G8vJGy5LqmSh+jq97LCAz+Ir9c4OaauRJqaio= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Q4/q8HTdipLmoh+TwxLFZNQTJUKc8qFdSZnetXseadjMpxhE9wj+pHcE9aCrqFXqFnYhHMwfyvPY4l+G+FC4W49eIjKWdqXri7VV6HkJKLy3nE1889QNc/2/wgqrpU5F2hhxFSa+u0xDbwjXCWFT9aReRwqKimkZWKI4zw9tVHE=; Message-ID: <475540.33003.qm@web112105.mail.gq1.yahoo.com> X-YMail-OSG: ST821M8VM1mGmtHSwU.NvcDGE8Hj5THfeFsK0hnFk56RmKU XFium45vZWlzP.vdEGBIONw9iM3NhDiKNS8O9P3YvIb7TQAiqwTLsXqBmHRM KL51b63XmhfjcgG1CgK1UfplKYpLD9DeaakmFKThSMOlZnU0XswE0h5KgLWH 9E2YTo7tfLf4EpnDWCf5xqOFJuVVU1yDER9JUSG2ekl6WTHqJZC7yqacnOD4 _dPZMp5HVk7Dud0o78859o4fRkfPUh47meEQDFX9M1R.andaX3Grbwg7UPFV MjeCmyi_j2nVvaOA87wz3auW0JJonoSwHh.XBmOBMU.Ehw2omDQNykGuKKD_ xqT30UOj6QsyvkrHH8s9CFjtxcOg- Received: from [217.140.96.21] by web112105.mail.gq1.yahoo.com via HTTP; Thu, 14 Apr 2011 04:06:54 PDT X-Mailer: YahooMailWebService/0.8.109.295617 Date: Thu, 14 Apr 2011 04:06:54 -0700 (PDT) From: Vassilis Laganakos To: Damjan Marion MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-arm@freebsd.org" Subject: Re: LLVM/Clang cross-compiling for ARM X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Vassilis Laganakos List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Apr 2011 11:06:57 -0000 Hi Damjan, Mark,=0A=0A----- Original Message -----=0A=0A> From:Damjan Mario= n =0A> To:Mark Tinguely = =0A> Cc:Vassilis Laganakos ; "freebsd-arm@fre= ebsd.org" =0A> Sent:Thursday, April 14, 2011 8:13 = AM=0A> Subject:Re: LLVM/Clang cross-compiling for ARM=0A> =0A> =0A> Hi Mark= ,=0A> =0A> Seems that clang from current (made by i386 buildworld) is able = to build ARM =0A> code:=0A> =0A> # clang -v=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> =A0 =A0 FreeBSD clang= version 2.9 (trunk 126547) 20110226=0A> Target: i386-undermydesk-freebsd9.= 0=0A> Thread model: posix=0A> =0AThat's the same I get when I build llvm/cl= ang as a cross-compiler, and I thought that=0Asomething was wrong. I'd expe= ct that to be: "arm-unknown-freebsd9.0", but it=0Aseems from your test bell= ow that it does generate ARM code.=0A=0A> # clang -march=3Darmv7-a -mfloat-= abi=3Dsoft -ccc-host-triple arm-elf -integrated-as =0A> hello.c -o hello.o = -c=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =0A> # file hello.o=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =0A> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> =A0 =0A> hello.o: ELF 32-bit LSB relo= catable, ARM, version 1 (SYSV), not stripped=0A> =0A> # clang -march=3Darmv= 7-a -mfloat-abi=3Dsoft -ccc-host-triple arm-elf hello.c -o =0A> hello.S -S= =0A> =0A> # cat hello.S=0A> =0A> =A0=A0=A0 .syntax unified=0A> =A0=A0=A0 .c= pu cortex-a8=0A> =A0=A0=A0 .eabi_attribute 6, 10=0A> =A0=A0=A0 .eabi_attrib= ute 7, 65=0A> =A0=A0=A0 .eabi_attribute 8, 1=0A> =A0=A0=A0 .eabi_attribute = 9, 2=0A> =A0=A0=A0 .eabi_attribute 10, 2=0A> =A0=A0=A0 .eabi_attribute 20, = 1=0A> =A0=A0=A0 .eabi_attribute 21, 1=0A> =A0=A0=A0 .eabi_attribute 23, 3= =0A> =A0=A0=A0 .eabi_attribute 24, 1=0A> =A0=A0=A0 .eabi_attribute 25, 1=0A= > =A0=A0=A0 .file=A0=A0=A0 "hello.c"=0A> =A0=A0=A0 .text=0A> =A0=A0=A0 .glo= bl=A0=A0=A0 main=0A> =A0=A0=A0 .align=A0=A0=A0 2=0A> =A0=A0=A0 .type=A0=A0= =A0 main,%function=0A> main:=0A> =A0=A0=A0 push=A0=A0=A0 {r11, lr}=0A> =A0= =A0=A0 mov=A0=A0=A0 r11, sp=0A> =A0=A0=A0 sub=A0=A0=A0 sp, sp, #12=0A> =A0= =A0=A0 mov=A0=A0=A0 r0, #0=0A> =A0=A0=A0 str=A0=A0=A0 r0, [r11, #-4]=0A> = =A0=A0=A0 str=A0=A0=A0 r0, [sp, #4]=0A> =A0=A0=A0 movw=A0=A0=A0 r0, :lower1= 6:.L.str=0A> =A0=A0=A0 movt=A0=A0=A0 r0, :upper16:.L.str=0A> =A0=A0=A0 bl= =A0=A0=A0 printf=0A> =A0=A0=A0 str=A0=A0=A0 r0, [sp]=0A> =A0=A0=A0 ldr=A0= =A0=A0 r0, [sp, #4]=0A> =A0=A0=A0 mov=A0=A0=A0 sp, r11=0A> =A0=A0=A0 ldmia= =A0=A0=A0 sp!, {r11, pc}=0A> .Ltmp0:=0A> =A0=A0=A0 .size=A0=A0=A0 main, .Lt= mp0-main=0A> =0A> =A0=A0=A0 .type=A0=A0=A0 .L.str,%object=0A> =A0=A0=A0 .se= ction=A0=A0=A0 .rodata.str1.1,"aMS",%progbits,1=0A> .L.str:=0A> =A0=A0=A0 .= asciz=A0=A0=A0 "Hello World!\n"=0A> =A0=A0=A0 .size=A0=A0=A0 .L.str, 14=0A= >=0A=0A=0AWell you proved the opposite from what we assumed, since this loo= ks like ARM assembly to me :)=0A=0AAnyone knows if something has changed in= http://wiki.freebsd.org/BuildingFreeBSDWithClang=0Asince it was last edite= d?=0A=0A=0ADamjan, if you find some more info about this with llvm/clang, c= ould you please post=0Athe links here? :)=0A=0AThanks,=0AVassilis=0A From owner-freebsd-arm@FreeBSD.ORG Thu Apr 14 12:44:04 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 7C7401065670 for ; Thu, 14 Apr 2011 12:44:04 +0000 (UTC) (envelope-from marktinguely@gmail.com) Received: from mail-yi0-f54.google.com (mail-yi0-f54.google.com [209.85.218.54]) by mx1.freebsd.org (Postfix) with ESMTP id 2BEBE8FC17 for ; Thu, 14 Apr 2011 12:44:03 +0000 (UTC) Received: by yie12 with SMTP id 12so844008yie.13 for ; Thu, 14 Apr 2011 05:44:03 -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=D4S8I0jnTzuHfWtSz8x4N9oJ6iPYKKdEvWn4GC+NTPA=; b=jZP44m9vsa6QGAl4xadzkPhp/4FhyAXY6xMJQrNzGQCZ/BAfbwOYbK1HuJErdlsQRi RWEWYD+iTiV9RxBEdMuW3GqfgdRYckDrZlctK5PDEqtkCed+iHR9R15OvuzpYXk6P4Xs 4pSbyD6f1oVlMsAfcPGVLW2hopG32CUamjhZ0= 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=leXiw9eybMocmCenEh2hZWsxOj4Y1PoG7PDsqe8gM5Ya+RRRrkVHagDuhe41Lyp/y4 5I3oO0giSmH5SkHHGWqECbyz9hzsY3bpyDEBp2VvIAtuP3qCADkcUjJl0IUPsiyfjYA0 pIia4qpi4mxUODem2bsWVKrIes5Kw29eCshUA= Received: by 10.150.103.5 with SMTP id a5mr1672571ybc.110.1302785043357; Thu, 14 Apr 2011 05:44:03 -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 b1sm806949ybn.16.2011.04.14.05.44.01 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 14 Apr 2011 05:44:02 -0700 (PDT) Message-ID: <4DA6EC0D.3070301@gmail.com> Date: Thu, 14 Apr 2011 07:43:57 -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: Vassilis Laganakos References: <475540.33003.qm@web112105.mail.gq1.yahoo.com> In-Reply-To: <475540.33003.qm@web112105.mail.gq1.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "freebsd-arm@freebsd.org" Subject: Re: LLVM/Clang cross-compiling for ARM 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, 14 Apr 2011 12:44:04 -0000 On 4/14/2011 6:06 AM, Vassilis Laganakos wrote: > Hi Damjan, Mark, > > ----- Original Message ----- > >> From:Damjan Marion >> To:Mark Tinguely >> Cc:Vassilis Laganakos; "freebsd-arm@freebsd.org" >> Sent:Thursday, April 14, 2011 8:13 AM >> Subject:Re: LLVM/Clang cross-compiling for ARM >> >> >> Hi Mark, >> >> Seems that clang from current (made by i386 buildworld) is able to build ARM >> code: >> >> # clang -v >> >> FreeBSD clang version 2.9 (trunk 126547) 20110226 >> Target: i386-undermydesk-freebsd9.0 >> Thread model: posix >> > That's the same I get when I build llvm/clang as a cross-compiler, and I thought that > something was wrong. I'd expect that to be: "arm-unknown-freebsd9.0", but it > seems from your test bellow that it does generate ARM code. > >> # clang -march=armv7-a -mfloat-abi=soft -ccc-host-triple arm-elf -integrated-as >> hello.c -o hello.o -c >> >> # file hello.o >> >> >> hello.o: ELF 32-bit LSB relocatable, ARM, version 1 (SYSV), not stripped >> >> # clang -march=armv7-a -mfloat-abi=soft -ccc-host-triple arm-elf hello.c -o >> hello.S -S >> >> # cat hello.S >> >> .syntax unified >> .cpu cortex-a8 >> .eabi_attribute 6, 10 >> .eabi_attribute 7, 65 >> .eabi_attribute 8, 1 >> .eabi_attribute 9, 2 >> .eabi_attribute 10, 2 >> .eabi_attribute 20, 1 >> .eabi_attribute 21, 1 >> .eabi_attribute 23, 3 >> .eabi_attribute 24, 1 >> .eabi_attribute 25, 1 >> .file "hello.c" >> .text >> .globl main >> .align 2 >> .type main,%function >> main: >> push {r11, lr} >> mov r11, sp >> sub sp, sp, #12 >> mov r0, #0 >> str r0, [r11, #-4] >> str r0, [sp, #4] >> movw r0, :lower16:.L.str >> movt r0, :upper16:.L.str >> bl printf >> str r0, [sp] >> ldr r0, [sp, #4] >> mov sp, r11 >> ldmia sp!, {r11, pc} >> .Ltmp0: >> .size main, .Ltmp0-main >> >> .type .L.str,%object >> .section .rodata.str1.1,"aMS",%progbits,1 >> .L.str: >> .asciz "Hello World!\n" >> .size .L.str, 14 >> > > Well you proved the opposite from what we assumed, since this looks like ARM assembly to me :) > > Anyone knows if something has changed in http://wiki.freebsd.org/BuildingFreeBSDWithClang > since it was last edited? > > > Damjan, if you find some more info about this with llvm/clang, could you please post > the links here? :) > > Thanks, > Vassilis > > Good news. Thank-you for the update. --Mark. From owner-freebsd-arm@FreeBSD.ORG Fri Apr 15 14:31:35 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 B7F78106564A for ; Fri, 15 Apr 2011 14:31:35 +0000 (UTC) (envelope-from damjan.marion@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 6CBC28FC18 for ; Fri, 15 Apr 2011 14:31:35 +0000 (UTC) Received: by qwc9 with SMTP id 9so1758010qwc.13 for ; Fri, 15 Apr 2011 07:31:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to:x-mailer; bh=2XcSwj/vSKOuozKTxJ5b2VHwKpyoE91jTAcIc+3Io9o=; b=d9EqJHkyuxHAt9bx9mFy2Gz9zOrWx9DSCgVKmPthQ7UdGilboXrSWc1ayc7isOVWAA 6D8Fe0iJ3QYblLRIzuYcMuRMGcapj3f5MpWsINIIMpb0RFfueF4I9CiHAN0MrVkg96qH 5WQxeCmf+5xFDlwrTHmg2GPYUlwjFdiDYvD1I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=FTHJCLWn7O2NeJc0Qev8h5DVO/lwKaSd6EZMNmD/Jqj0MH++7Lze5lrGxoADMkJ037 I3hlG3W7opss8xjxQ/EBBzfSJyNGp4UQ9aMkAJBmDIwQdnR7P/rwOSYroduyr5g3Dfw9 JZ+SDAFoP4aN5RgwaQo3llyWKJmZHDm0NI+zM= Received: by 10.229.13.227 with SMTP id d35mr1487611qca.237.1302877894643; Fri, 15 Apr 2011 07:31:34 -0700 (PDT) Received: from rtp-vpn3-329.cisco.com (rtp-isp-nat1.cisco.com [64.102.254.33]) by mx.google.com with ESMTPS id t17sm1980591qcs.11.2011.04.15.07.31.31 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 15 Apr 2011 07:31:33 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Damjan Marion In-Reply-To: <475540.33003.qm@web112105.mail.gq1.yahoo.com> Date: Fri, 15 Apr 2011 16:31:27 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <475540.33003.qm@web112105.mail.gq1.yahoo.com> To: Vassilis Laganakos X-Mailer: Apple Mail (2.1084) Cc: "freebsd-arm@freebsd.org" Subject: Re: LLVM/Clang cross-compiling for ARM 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: Fri, 15 Apr 2011 14:31:35 -0000 Hi Vassilis, On Apr 14, 2011, at 1:06 PM, Vassilis Laganakos wrote: > Hi Damjan, Mark, >=20 > ----- Original Message ----- >=20 >> From:Damjan Marion >> To:Mark Tinguely >> Cc:Vassilis Laganakos ; = "freebsd-arm@freebsd.org" >> Sent:Thursday, April 14, 2011 8:13 AM >> Subject:Re: LLVM/Clang cross-compiling for ARM >>=20 >>=20 >> Hi Mark, >>=20 >> Seems that clang from current (made by i386 buildworld) is able to = build ARM=20 >> code: >>=20 >> # clang -v = =20 >> = =20 >> FreeBSD clang version 2.9 (trunk 126547) 20110226 >> Target: i386-undermydesk-freebsd9.0 >> Thread model: posix >>=20 > That's the same I get when I build llvm/clang as a cross-compiler, and = I thought that > something was wrong. I'd expect that to be: "arm-unknown-freebsd9.0", = but it > seems from your test bellow that it does generate ARM code. Seems that this just shows host architecture. >=20 >> >=20 > Well you proved the opposite from what we assumed, since this looks = like ARM assembly to me :) >=20 > Anyone knows if something has changed in = http://wiki.freebsd.org/BuildingFreeBSDWithClang > since it was last edited? My understanding is that clang/LLVM architecture is build from day one = to support cross compilation so same clang executable can build code for = multiple targets. You can see the list of supported architectures with = "llc --version" For specific architecture you can see list of all variants and features = with "llvm-as < /dev/null | llc -march=3Darm -mcpu=3Dhelp" Unfortunately llc and llvm-as are not built as part of buildworld. = According to folks from freebsd-clang IRC channel llc and llvm-as are = not built because there is no use of them. >=20 >=20 > Damjan, if you find some more info about this with llvm/clang, could = you please post > the links here? :) I dont have any special reference, but looking into source code might = help :) BTW According to #freebsd-clang folks cross-compilation might work just = by renaming or symlinking clang to arm-freebsd-clang triple (or = similar). They are also looking for feedback. Regards, Damjan