From owner-svn-src-head@FreeBSD.ORG Mon Feb 27 00:11:51 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0ABDB106566B; Mon, 27 Feb 2012 00:11:51 +0000 (UTC) (envelope-from pawel.worach@gmail.com) Received: from mail-lpp01m010-f54.google.com (mail-lpp01m010-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id B25458FC0A; Mon, 27 Feb 2012 00:11:49 +0000 (UTC) Received: by lagz14 with SMTP id z14so6743553lag.13 for ; Sun, 26 Feb 2012 16:11:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; 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; bh=A+ofTZI8oAXq3PsVhpjghCbuTgQIYWbL8an2YdEUdt4=; b=hdBkswxMeY3uho88ASGr7Ofu0r3ONqNNpGDwvCRpZmcqn/P0RrqUMfMn0klNqasy0w alqbxFkzJT+jGsSPO+byJS0kasn6Et0qoDZrSYSCofa0erb0fK7oD24CX1xQIsaeXxZ4 tOpJJ5S6D7beNprxxr56Pc4XY9hNURbSmHbMI= Received: by 10.152.130.102 with SMTP id od6mr7845743lab.14.1330299970897; Sun, 26 Feb 2012 15:46:10 -0800 (PST) Received: from [172.16.0.199] (host-78-64-61-69.homerun.telia.com. [78.64.61.69]) by mx.google.com with ESMTPS id mj2sm11925996lab.2.2012.02.26.15.46.08 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 26 Feb 2012 15:46:09 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: text/plain; charset=iso-8859-1 From: Pawel Worach In-Reply-To: <4F476FEA.1090004@FreeBSD.org> Date: Mon, 27 Feb 2012 00:46:06 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <201202232134.q1NLYEq5024067@svn.freebsd.org> <20120224093807.GA88853@freebsd.org> <4F476FEA.1090004@FreeBSD.org> To: Dimitry Andric X-Mailer: Apple Mail (2.1257) Cc: svn-src-head@freebsd.org, Alexander Best , svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r232074 - head/sys/cam/ctl X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Feb 2012 00:11:51 -0000 On Feb 24, 2012, at 12:09, Dimitry Andric wrote: > On 2012-02-24 10:38, Alexander Best wrote: >> is the clang version in base able to do complete universe builds for = i386 and >> amd64 without the need for NO_WERROR=3D and WERROR=3D now? >=20 > "universe" means all arches, and all kernel configs, so no. The = status > for head with clang is as follows: >=20 > - buildworld with default options, e.g. no WITH_XXX or WITHOUT_XXX > settings, will complete without any (fatal) warnings. > - buildkernel of the default GENERIC config still has one warning = left, > in sys/dev/mps/mps_sas.c. It should be simple to fix, but I'm > checking it with Ken first. > - The LINT kernel configs probably have many warnings left. I haven't > tested those extensively. >=20 > As soon as world & kernel compile without warnings, I'd like to have a > tinderbox that continually builds with clang. So head won't be > regressing any more. :) >=20 >=20 >> ps: are there any plans to add support for compiling kernel+userland = with clang >> tot? maybe this can be accomplished by doing something like >>=20 >> echo "WITH_CLANG_TOT=3Dyes" >> /etc/src.conf >=20 > I'm not working on this at the moment. Pawel Worach (CC'd) has a > buildbot setup that builds FreeBSD daily with clang ToT. Apparently > just a few patches are needed. You will find all the patches and hacks to build FreeBSD with llvm/clang = trunk here: http://llvm-amd64.freebsd.your.org/patches/ clang-*.diff contains the FreeBSD local changes, -fformat-extensions and = worldtmp prefix stuff. freebsd-*.diff contains the patches for FreeBSD to fix/disable -Werror = warnings found by clang trunk and needed hacks to the build infrastructure to use an out-of-tree = compiler. Just set CC and CXX to the *full path* of your custom version of clang. >> which will turn all -Wformat-invalid-specifier and = -Wformat-extra-args errors >> into warnings (because clang tot doesn't support = -fformat-extensions)? >=20 > It would be better to push our format extensions upstream, I think. > Though the option should probably be renamed to something else, e.g. > -ffreebsd-extensions, or such. --=20 Pawel