From owner-freebsd-current@FreeBSD.ORG  Wed Dec 28 16:33:20 2011
Return-Path: <owner-freebsd-current@FreeBSD.ORG>
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 F23F2106567F
	for <current@freebsd.org>; Wed, 28 Dec 2011 16:33:20 +0000 (UTC)
	(envelope-from rbgarga@gmail.com)
Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com
	[209.85.212.182])
	by mx1.freebsd.org (Postfix) with ESMTP id 83B758FC0A
	for <current@freebsd.org>; Wed, 28 Dec 2011 16:33:19 +0000 (UTC)
Received: by wibhr1 with SMTP id hr1so11131694wib.13
	for <multiple recipients>; Wed, 28 Dec 2011 08:33:19 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:cc:content-type:content-transfer-encoding;
	bh=njeWEVeA94G3mYsC9FqxKpXWqaxiMDVHR1o6EUb+I0c=;
	b=DtaKuA6H8eK5bP6pAS2vEZXssZa/KwCQhEa5rvutseiYvNE0bAIW/uPfBAZe1XxFO8
	AFa1ojcLhXJPxYJE1lyber+wdI8xufnT8wOqyXAhbn10pEs06b3ayDKeK5POtZZepY9s
	KwS4ar/6xZb+PGlnqYxa6BKl50xMpQ7uzlnUk=
Received: by 10.180.19.106 with SMTP id d10mr71802742wie.2.1325089999255; Wed,
	28 Dec 2011 08:33:19 -0800 (PST)
MIME-Version: 1.0
Received: by 10.216.177.68 with HTTP; Wed, 28 Dec 2011 08:32:58 -0800 (PST)
In-Reply-To: <4EFB4324.1060002@FreeBSD.org>
References: <201105040107.p4417NTR048534@pozo.com>
	<CAESiWk=wdZDNxn+HcLeOVTF55jMTEP3zVOb1ivAPgNYi2JTB3w@mail.gmail.com>
	<4EFB4324.1060002@FreeBSD.org>
From: Renato Botelho <rbgarga@gmail.com>
Date: Wed, 28 Dec 2011 14:32:58 -0200
Message-ID: <CAESiWkm8+myDwanNKd4KCgVjHLNaLRBh82nFPGrDAO80e6w49Q@mail.gmail.com>
To: Dimitry Andric <dim@freebsd.org>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
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
	<freebsd-current.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-current>, 
	<mailto:freebsd-current-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-current>
List-Post: <mailto:freebsd-current@freebsd.org>
List-Help: <mailto:freebsd-current-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-current>,
	<mailto:freebsd-current-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Wed, 28 Dec 2011 16:33:21 -0000

On Wed, Dec 28, 2011 at 2:26 PM, Dimitry Andric <dim@freebsd.org> wrote:
> On 2011-12-28 16:44, Renato Botelho wrote:
>>
>> On Tue, May 3, 2011 at 10:07 PM, Manfred Antar<null@pozo.com> =A0wrote:
>>>
>>> I get this error when trying to buildworld on current i386.
>>> It's been this way for awhile Any Ideas ?
>>>
>>> =3D=3D=3D> =A0boot/i386/boot0 (all)
>>> clang -O2 -pipe =A0-DVOLUME_SERIAL -DPXE -DFLAGS=3D0x8f =A0-DTICKS=3D0x=
b6
>>> =A0-DCOMSPEED=3D"7<< =A05 + 3" -ffreestanding -mpreferred-stack-boundar=
y=3D2
>>> =A0-mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float -std=
=3Dgnu99
>>> =A0-c /usr/src/sys/boot/i386/boot0/boot0.S
>>> clang: warning: argument unused during compilation:
>>> '-mpreferred-stack-boundary=3D2'
>>> /tmp/cc-4SXZt8.s:42:11: error: .code16 not supported yet
>>> =A0.code16 # This runs in real mode
>>> =A0 =A0 =A0 =A0 =A0^
>
>
> This is expected, since the above command line is supposed to have
> '-no-integrated-as' added. =A0For 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. =A0Can you please post that file?

Sure, follow my src.conf:

.if !defined(CC) || ${CC} =3D=3D "cc"
CC=3Dclang
.endif
.if !defined(CXX) || ${CXX} =3D=3D "c++"
CXX=3Dclang++
.endif
.if !defined(CPP) || ${CPP} =3D=3D "cpp"
CPP=3Dclang-cpp
.endif
# Don't die on warnings
NO_WERROR=3D
WERROR=3D
# Don't forget this when using Jails!
NO_FSCHG=3D

and my make.conf

KERNCONF=3DMURPHYS

WITH_OPTIONS=3Dyes
WITH_VIM_OPTIONS=3Dyes
WITHOUT_X11=3Dyes

# added by use.perl 2011-12-12 13:19:26
PERL_VERSION=3D5.12.4

More information about the system installed on this machine:

garga@murphys:~> uname -a
FreeBSD murphys.ramenzoni.com.br 9.0-RC3 FreeBSD 9.0-RC3 #0: Sun Dec
4 08:01:02 UTC 2011
root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
garga@murphys:~> clang -v
FreeBSD clang version 3.0 (branches/release_30 142614) 20111021
Target: i386-unknown-freebsd9.0
Thread model: posix


--=20
Renato Botelho