From owner-freebsd-current@FreeBSD.ORG Fri Oct 21 20:40:37 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 3D8941065679 for ; Fri, 21 Oct 2011 20:40:37 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) by mx1.freebsd.org (Postfix) with ESMTP id ECFBA8FC22 for ; Fri, 21 Oct 2011 20:40:36 +0000 (UTC) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost1.zedat.fu-berlin.de (Exim 4.69) with esmtp (envelope-from ) id <1RHLtM-0003lz-5Q>; Fri, 21 Oct 2011 22:40:36 +0200 Received: from e178043011.adsl.alicedsl.de ([85.178.43.11] helo=thor.walstatt.dyndns.org) by inpost2.zedat.fu-berlin.de (Exim 4.69) with esmtpsa (envelope-from ) id <1RHLtM-0005dc-25>; Fri, 21 Oct 2011 22:40:36 +0200 Message-ID: <4EA1D8C3.9070504@zedat.fu-berlin.de> Date: Fri, 21 Oct 2011 22:40:35 +0200 From: "Hartmann, O." User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:7.0.1) Gecko/20111019 Thunderbird/7.0.1 MIME-Version: 1.0 To: Dimitry Andric References: <4E059500.40107@zedat.fu-berlin.de> <20110625081056.GA28892@freebsd.org> <4E060484.5050905@zedat.fu-berlin.de> <4E07372A.7000600@FreeBSD.org> In-Reply-To: <4E07372A.7000600@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Originating-IP: 85.178.43.11 Cc: Roman Divacky , FreeBSD Current Subject: Re: LLVM: llvm-as, llvm-ld and so on not contained in FreeBSD core contrib? 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: Fri, 21 Oct 2011 20:40:37 -0000 On 06/26/11 15:42, Dimitry Andric wrote: > On 2011-06-25 17:53, Hartmann, O. wrote: >> On 06/25/11 10:10, Roman Divacky wrote: >>> On Sat, Jun 25, 2011 at 09:57:52AM +0200, Hartmann, O. wrote: >>>> Hello. >>>> Just for my couriosity: I'm missing llvm-as, llvm-ld and other >>>> binutils >>>> from LLVM and was wondering why they are contained in the port's llvm >>>> collection but not in FreeBSD's source contribution. >>> >>> There's no use for these utilities in FreeBSD base system. >>> >>>> I build FreeBSD 9 with CLANG. But as a missing llvm-as and llvm-ld (or >>>> llvm-ar) would imply, the binaries are generated via binutils from >>>> theGNU suite, aren't they? >>> llvm-{as,ld,ar} are not replacements for those from binutils. llvm-* >>> work on the llvm bitcode only and are of no use for normal object >>> files. >>> >>> dim@ made a patch that adds those utilities if you really need them >>> >>> http://lists.freebsd.org/pipermail/freebsd-toolchain/2011-June/000216.html >>> >>> >>> By default when you compile things with clang it uses its own assembler >>> (ie. it goes directly from C -> .o) so typically only gnu ld is used >>> in the compilation chain. >>> >>> >>> roman >> Thank you very much. Patched and works. > > What's the general opinion on applying this to -current? Otherwise > it'll be sitting in my private tree, possibly bit-rotting. :) For > people that are experimenting with llvm and/or clang, these additional > tools might sometimes come in handy. > > For normal users, it won't have any impact, except for a few extra > source files in the tree. These tools will not be built by default. Is there a chance to get the missing pieces of LLVM built by the above mentioned method enabled in /etc/src.conf? As I can see, even in FreeBSD 10.0-CURRENT the LLVM stuff didn't make it in. My built is quite old, since I added the patch three months has been passed by ... Regards, Oliver