From owner-freebsd-current@FreeBSD.ORG Wed Sep 22 21:48:20 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 F1621106566C for ; Wed, 22 Sep 2010 21:48:20 +0000 (UTC) (envelope-from admin@kkip.pl) Received: from mainframe.kkip.pl (kkip.pl [87.105.164.78]) by mx1.freebsd.org (Postfix) with ESMTP id 6AFA88FC0C for ; Wed, 22 Sep 2010 21:48:20 +0000 (UTC) Received: from static-78-8-144-74.ssp.dialog.net.pl ([78.8.144.74] helo=[192.168.0.2]) by mainframe.kkip.pl with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.72 (FreeBSD)) (envelope-from ) id 1OyWfM-000Flu-9i; Wed, 22 Sep 2010 23:15:55 +0200 Message-ID: <4C9A7203.8010701@kkip.pl> Date: Wed, 22 Sep 2010 23:15:47 +0200 From: Bartosz Stec User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.4) Gecko/20100702 Lanikai/3.1 MIME-Version: 1.0 To: Rene Ladan References: <4C99A53E.7060707@FreeBSD.org> <4C9A32B8.60204@kkip.pl> <4C9A6A38.4080307@freebsd.org> In-Reply-To: <4C9A6A38.4080307@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated-User: admin@kkip.pl X-Authenticator: plain X-Sender-Verify: SUCCEEDED (sender exists & accepts mail) X-Spam-Score: -8.5 X-Spam-Score-Int: -84 X-Exim-Version: 4.72 (build at 10-Jun-2010 13:05:33) X-Date: 2010-09-22 23:15:55 X-Connected-IP: 78.8.144.74:58265 X-Message-Linecount: 50 X-Body-Linecount: 37 X-Message-Size: 2306 X-Body-Size: 1654 X-Received-Count: 1 X-Recipient-Count: 2 X-Local-Recipient-Count: 2 X-Local-Recipient-Defer-Count: 0 X-Local-Recipient-Fail-Count: 0 Cc: 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 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 21:48:21 -0000 On 2010-09-22 22:42, Rene Ladan wrote: >> >> 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 >> > Hmm, works for me: > acer# ls -l /boot/kernel/if_stge.ko* > -r-xr-xr-x 1 root wheel 39344 Sep 22 13:34 /boot/kernel/if_stge.ko > -r-xr-xr-x 1 root wheel 218248 Sep 22 13:34 > /boot/kernel/if_stge.ko.symbols > acer# > > This is with the default GENERIC kernel. > > Rene Problem wasn't clang related, but caused by stge changes in r212973, and it has already been fixed (in r213000). I will post comparison of building times and results using gcc/clang/ccache/noccache on my box soon :)