From owner-freebsd-current@FreeBSD.ORG Mon May 31 16:14:12 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 5031D106567B for ; Mon, 31 May 2010 16:14:12 +0000 (UTC) (envelope-from bakul@bitblocks.com) Received: from mail.bitblocks.com (ns1.bitblocks.com [64.142.15.60]) by mx1.freebsd.org (Postfix) with ESMTP id DD9E28FC23 for ; Mon, 31 May 2010 16:14:11 +0000 (UTC) Received: from bitblocks.com (localhost.bitblocks.com [127.0.0.1]) by mail.bitblocks.com (Postfix) with ESMTP id A399B5B30; Mon, 31 May 2010 09:14:09 -0700 (PDT) To: Roman Divacky In-reply-to: Your message of "Mon, 31 May 2010 09:52:48 +0200." <20100531075248.GA15206@freebsd.org> References: <20100531075248.GA15206@freebsd.org> Comments: In-reply-to Roman Divacky message dated "Mon, 31 May 2010 09:52:48 +0200." Date: Mon, 31 May 2010 09:14:09 -0700 From: Bakul Shah Message-Id: <20100531161409.A399B5B30@mail.bitblocks.com> Cc: current@freebsd.org Subject: Re: Importing clang/LLVM into FreeBSD HEAD 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: Mon, 31 May 2010 16:14:12 -0000 On Mon, 31 May 2010 09:52:48 +0200 Roman Divacky wrote: > > I would like to propose to integrate clang/LLVM into FreeBSD HEAD > in the near future (days, not weeks). > > clang/LLVM is a C/C++/ObjC compiler (framework) which aims to possibly > replace gcc. It is BSDL-like licensed. The sources are ~45MB (the > svn checkout is 97MB). Clang/LLVM is written in C++. > > Clang can compile all of FreeBSD on i386/amd64 including world and booting > kernel. Other architectures that are close to working are MIPS, PowerPC > and ARM. We have a branch (clangbsd-import) that just includes clang/LLVM > sources and the build infrastructure and this is what we aim to integrate > at first. > > The import of clang/LLVM was discussed at the toolchain summit May 10th > but I would like to hear your opinion. I got approval from core@ on > importing it. > > So please share your support or resistance to the idea of importing clang. > > Roman Divacky I already use clang for some things but I think the issue here is not support/resistance but something else: * IMHO for a change of this nature the core needs to publish a set of clear acceptance criteria for importing clang. Can this be done? * Since clang doesn't support all the archs, what is the plan for unsupported archs? a. Is FreeBSD going to have both compilers in the base? b. Is the project drop these FreeBSD ports? or c. Do people have to import gcc from ports to build these FreeBSD ports? * What about ports? * Basically the core needs to lay out a roadmap. It is clear that not everyone has the same view of what the acceptance criteria might be so publishing it would help people understand what to expect.