From owner-freebsd-current@FreeBSD.ORG Wed Sep 22 16:51:49 2010 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 8B4A31065675 for ; Wed, 22 Sep 2010 16:51:49 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 59B0F8FC12 for ; Wed, 22 Sep 2010 16:51:47 +0000 (UTC) Received: by pzk7 with SMTP id 7so247809pzk.13 for ; Wed, 22 Sep 2010 09:51:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:reply-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=fMK9hVHl3r7oXXCRhhxX6OLOaFPnoSNTe2JY0+c8jdE=; b=XaUwTkLEWEI/p583ZCexfqpzvXVejnWNIQdMXSetLAFvEE7B44+iqueZlWh/UzrXli rO/a6MR3fs/06pqiFYBqzud8r4ezIyzVs3SvOqoO0MgiFLhLJ+n+izlnrgLUJ/74Cx2H M+mUph+Hj+ltKYBP471ASZ5/VK+FtTB4PSuBU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=DLh31GvBs94QQymcqPMdZpX5SZFOqZnJvJKrcHl0JCs2nuyzGo6NXvDlOhC2sR8Nrw Nb8U6RKbqUAp4xRzCiwSzLF3xDv36NqJA2qkQ8AcDJotfX3XYeYBRPS77rsuhC9zKcrp Y2ltLVY+RLPnKHdtSJT9iGgycV+aU3s5MThFw= Received: by 10.142.143.20 with SMTP id q20mr405569wfd.25.1285174306920; Wed, 22 Sep 2010 09:51:46 -0700 (PDT) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id g31sm10630590ibh.4.2010.09.22.09.51.44 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 22 Sep 2010 09:51:45 -0700 (PDT) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Wed, 22 Sep 2010 09:50:45 -0700 From: Pyun YongHyeon Date: Wed, 22 Sep 2010 09:50:45 -0700 To: Bartosz Stec Message-ID: <20100922165045.GB10299@michelle.cdnetworks.com> References: <4C99A53E.7060707@FreeBSD.org> <4C9A3336.20702@kkip.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4C9A3336.20702@kkip.pl> User-Agent: Mutt/1.4.2.3i Cc: freebsd-current@freebsd.org Subject: Re: Clang now builds world and kernel, on i386 and amd64 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2010 16:51:49 -0000 On Wed, Sep 22, 2010 at 06:47:50PM +0200, Bartosz Stec wrote: > On 2010-09-22 12:42, Ren? Ladan wrote: > >2010/9/22 Dimitry Andric: > >>Hi, > >> > >>As of r212979, you should now be able to build world and kernel on i386 > >>and amd64 with clang, without any additional patches! > >> > >>To do so, make sure you have updated your installed world to at least > >>r212904 (which has the most recently imported clang/llvm snapshot), and > >>put the following in /etc/src.conf: > >> > >>.if !defined(CC) || ${CC} == "cc" > >>CC=clang > >>.endif > >>.if !defined(CXX) || ${CXX} == "c++" > >>CXX=clang++ > >>.endif > >># Don't die on warnings > >>NO_WERROR= > >>WERROR= > >> > > > Just tried it. World has been builded without any problems, but stge > kernel module failed to compile: > > ===> stge (all) > clang -O2 -pipe -march=athlon-xp -fno-strict-aliasing -D_KERNEL > -DKLD_MODULE -nostdinc -DHAVE_KERNEL_OPTION_HEADERS -include > /usr/obj/usr/src/sys/ATHLON9/opt_global.h -I. -I@ -I@/contrib/altq > -fno-common -I/usr/obj/usr/src/sys/ATHLON9 -mno-mmx -mno-3dnow > -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector > -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls > -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes > -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign > -fformat-extensions -c /usr/src/sys/modules/stge/../../dev/stge/if_stge.c > /usr/src/sys/modules/stge/../../dev/stge/if_stge.c:1947:5: error: > 'break' statement not in loop or switch statement > break; > ^ > /usr/src/sys/modules/stge/../../dev/stge/if_stge.c:1953:6: error: > 'break' statement not in loop or switch statement > break > I committed the fix. Sorry for the breakage.