From owner-freebsd-current@FreeBSD.ORG Wed Dec 28 16:26:12 2011 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 108F2106566B for ; Wed, 28 Dec 2011 16:26:12 +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 C6BB98FC0C for ; Wed, 28 Dec 2011 16:26:11 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:110:9155:3851:5ce] (unknown [IPv6:2001:7b8:3a7:0:110:9155:3851:5ce]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 129505C37; Wed, 28 Dec 2011 17:26:11 +0100 (CET) Message-ID: <4EFB4324.1060002@FreeBSD.org> Date: Wed, 28 Dec 2011 17:26:12 +0100 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: Renato Botelho References: <201105040107.p4417NTR048534@pozo.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: current@freebsd.org Subject: Re: Clang error make buildworld 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, 28 Dec 2011 16:26:12 -0000 On 2011-12-28 16:44, Renato Botelho wrote: > On Tue, May 3, 2011 at 10:07 PM, Manfred Antar wrote: >> I get this error when trying to buildworld on current i386. >> It's been this way for awhile Any Ideas ? >> >> ===> boot/i386/boot0 (all) >> clang -O2 -pipe -DVOLUME_SERIAL -DPXE -DFLAGS=0x8f -DTICKS=0xb6 -DCOMSPEED="7<< 5 + 3" -ffreestanding -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float -std=gnu99 -c /usr/src/sys/boot/i386/boot0/boot0.S >> clang: warning: argument unused during compilation: '-mpreferred-stack-boundary=2' >> /tmp/cc-4SXZt8.s:42:11: error: .code16 not supported yet >> .code16 # This runs in real mode >> ^ This is expected, since the above command line is supposed to have '-no-integrated-as' added. For some reason, the test for clang in sys/boot/i386/boot0/Makefile is not working as it should. Most likely, it is due to the way you set CC, CXX and/or CPP in make.conf. Can you please post that file?