From owner-freebsd-current@FreeBSD.ORG Mon Sep 27 10:38:54 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 63E4F106567A; Mon, 27 Sep 2010 10:38:54 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id 20A868FC13; Mon, 27 Sep 2010 10:38:54 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:3940:c45b:c1c1:f335] (unknown [IPv6:2001:7b8:3a7:0:3940:c45b:c1c1:f335]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id ED0CC5C43; Mon, 27 Sep 2010 12:38:52 +0200 (CEST) Message-ID: <4CA0743F.8050408@FreeBSD.org> Date: Mon, 27 Sep 2010 12:38:55 +0200 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.10pre) Gecko/20100910 Lanikai/3.1.4pre MIME-Version: 1.0 To: Olivier Smedts References: <4C99A53E.7060707@FreeBSD.org> <4C9A32B8.60204@kkip.pl> <4C9A6A38.4080307@freebsd.org> <4C9A7203.8010701@kkip.pl> <20100923065134.GA31455@freebsd.org> <4C9B3207.2070302@kkip.pl> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Rene Ladan , Roman Divacky , Bartosz Stec , 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: Mon, 27 Sep 2010 10:38:54 -0000 On 2010-09-27 09:32, Olivier Smedts wrote: > 2010/9/23 Bartosz Stec: ... >> Assertion failed: (false&& "Ran out of registers during register >> allocation!"), function assignRegOrStackSlotAtInterval, file >> /usr/src/lib/clang/libllvmcodegen/../../../contrib/llvm/lib/CodeGen/RegAllocLinearScan.cpp, >> line 1196. ... > Same error here with yesterday's -CURRENT, but not at the same time > (the running system was compiled using gcc) : As with Bartosz, could you please remove the CPU-specific flags from make.conf, and try again? I guess there is something borked in LLVM's Athlon optimization, so it is probably better to not try to tickly those bugs for now. > # grep -vE '^#|^$' /etc/make.conf > KERNCONF=XPC > CPUTYPE=athlon-xp > CFLAGS=-O2 -pipe -march=native -fomit-frame-pointer Using CPUTYPE= and -march= seems a bit redundant. :) > clang -c -O2 -pipe -march=native -fomit-frame-pointer -DIN_GCC > -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -DHAVE_GTHR_DEFAULT > -I/usr/src/gnu/lib/libgcc/../../../contrib/gcclibs/include > -I/usr/src/gnu/lib/libgcc/../../../contrib/gcc/config > -I/usr/src/gnu/lib/libgcc/../../../contrib/gcc -I. > -I/usr/src/gnu/lib/libgcc/../../usr.bin/cc/cc_tools -std=gnu99 > -fvisibility=hidden -DHIDE_EXPORTS -fPIC -fexceptions -D__GLIBC__=3 > -DElfW=__ElfN -o unwind-dw2.o > /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c > Assertion failed: (!spillIs.empty()&& "No spill intervals?"), > function assignRegOrStackSlotAtInterval, file > /usr/src/lib/clang/libllvmcodegen/../../../contrib/llvm/lib/CodeGen/RegAllocLinearScan.cpp, > line 1287. I haven't yet seen this one before. If I can reproduce it, I will report it upstream, and see if they can come up with a fix.