From owner-freebsd-toolchain@FreeBSD.ORG Wed Jan 1 22:37:54 2014 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 114A8324 for ; Wed, 1 Jan 2014 22:37:54 +0000 (UTC) Received: from mail-ig0-f173.google.com (mail-ig0-f173.google.com [209.85.213.173]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id CDF1F1AF7 for ; Wed, 1 Jan 2014 22:37:53 +0000 (UTC) Received: by mail-ig0-f173.google.com with SMTP id ut6so1370125igb.0 for ; Wed, 01 Jan 2014 14:37:47 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=zvc4/IiLA6GxkLybbSB0lm4ahzcfHIbv+uCR28HDRTA=; b=ilAaeyAU1gPrkAmQ/bBT+KJ2p6ve8ujo/eT7nKb/+emymzBTwoenxgAJBrVnFuURH2 jV2++IcMq8bo1VdIXfCP4pLZq+9iRuIYnd9VSeVf+Oygm8XnJ2/p7gRXYZCc9MmJTvXA +FWa+LPhP11ZwBSk4TNdHwRVq/+ibo5sBju7EHnn5VHmo7k1B7SP3qhuZ/O4vxwTWYSL zMqi2Cg4hr62kSH9/eYCUE736NFSWyHAc5Luta5WGi+XZqikpXcN0OGgnH8MQhThCJug rnLyjJiCVo50Y/pFvXO1lOHeuX685wfkFoWSvz5q/bGVrsr1xMgjgldSdfLoSo9FCyAD b/+A== X-Gm-Message-State: ALoCoQk3QqosZX1beOKbyzYPVgYHMQILwEvljuq0Yscow/ciwO2+LkEjoEY1//Zfl0TrIHvyf1qk X-Received: by 10.43.71.200 with SMTP id yl8mr2975870icb.74.1388615867177; Wed, 01 Jan 2014 14:37:47 -0800 (PST) Received: from fusion-mac.bsdimp.com (50-78-194-198-static.hfc.comcastbusiness.net. [50.78.194.198]) by mx.google.com with ESMTPSA id da14sm69198053igc.1.2014.01.01.14.37.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 01 Jan 2014 14:37:46 -0800 (PST) Sender: Warner Losh Subject: Re: [CFT] Update to clang 3.4 Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <541C998A-071A-4917-9D91-DD00CB0E2689@FreeBSD.org> Date: Wed, 1 Jan 2014 15:37:45 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <63BD3165-A62E-4FE7-9817-4A2692584916@bsdimp.com> References: <541C998A-071A-4917-9D91-DD00CB0E2689@FreeBSD.org> To: Dimitry Andric X-Mailer: Apple Mail (2.1085) Cc: freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jan 2014 22:37:54 -0000 I'd add to the list the upgrade path (from 9.x, 10.x and current) as = well, just to make sure they all still work... If there are problems = with the 9.x upgrade path, we'll need to call them out since 10.0 hasn't = been released yet and there's still a lot of 9.x boxes in the wild... Warner On Jan 1, 2014, at 3:32 PM, Dimitry Andric wrote: > Hi, >=20 > I have almost completed the preliminary work to import clang 3.4 into > FreeBSD 11-CURRENT. The official clang 3.4 release has not yet been > announced, but I do not expect any more changes from upstream for now. >=20 > However, since this version introduces a bunch of new warnings, and a > more strict options parser, I would like to call for some additional > testing by anyone who is interested. >=20 > Specifically, the following: > * Building and installing world with non-standard settings in = make.conf > and/or src.conf. > * Compiling your favorite set of ports. (I will request a ports > exp-run too). > * Fixing any kernel source with LINT that has not yet been fixed. (I > am still working on some of the things that are not in GENERIC.) > * Any other problems you may encounter with optimization, > incompatibilities, and so on. >=20 > One thing to look out for, in particular with ports, is the more = strict > option parsing introduced with clang 3.4. In earlier releases, = unknown > or unsupported command line options were ignored, with just a = "argument > unused during compilation" warning. =46rom 3.4 onwards, such options = will > result in a "unknown argument" error. >=20 > Another important new issue is that clang 3.4 now outputs DWARF4 as > default format when using -g. Our ancient version of gdb in base does > not support this, so you must either install the gdb port, or build = lldb > and use it (very experimental at this time!). >=20 > Moreover, our CTF tools such as ctfconvert use a quite old version of > libdwarf in our base system, which also does not support DWARF4. So > ctfconvert processing of kernel objects doe not work at the moment. = Any > assistance with solving this (for example, by importing the most = recent > libdwarf from upstream) is greatly appreciated. >=20 > The current patch, which can be applied to head r260112 or later, is > located here: >=20 > http://www.andric.com/freebsd/clang/head-r260112-clang34-1.diff.xz >=20 > SHA256 (head-r260112-clang34-1.diff.xz) =3D = 1b5735946526fe97f0cea1822ecbcc3ec86f15282277aef7e3d7b2835a777b11 >=20 > To apply, unxz the file into a fresh head checkout, and run: >=20 > svn patch head-r260112-clang34-1.diff >=20 > Please check carefully if Subversion reports no problems during > patching, as it is rather fragile. Afterwards, you can do a normal > world and kernel build, and installation. >=20 > -Dimitry >=20