From owner-freebsd-current@FreeBSD.ORG Wed Dec 28 16:16:57 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 5E5361065678 for ; Wed, 28 Dec 2011 16:16:57 +0000 (UTC) (envelope-from rbgarga@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id ED6168FC23 for ; Wed, 28 Dec 2011 16:16:56 +0000 (UTC) Received: by wgbdr11 with SMTP id dr11so22232249wgb.31 for ; Wed, 28 Dec 2011 08:16:55 -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=bBZlrlSStBdDtB1vE+V0Aze3D4oOvNu36Xh/buzRN/k=; b=In6tCkIT1pvMZPJBjBGYxbrwkNNhfq0V9g7UqnkDxjlpIZ3ymxQ7G8Pv/7y4IOUtFZ XBxXMimoKDw1Aqzp4sTispdsJ8Y6rm4WAmlbpxA/9AQYJdlCzA7OnC3BbD2tZodsMTgU MBpJOv+b+92pw8Y7hZ0A4RZEEZKcYONMVnguk= Received: by 10.227.202.211 with SMTP id ff19mr32153149wbb.15.1325087118190; Wed, 28 Dec 2011 07:45:18 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.177.68 with HTTP; Wed, 28 Dec 2011 07:44:57 -0800 (PST) In-Reply-To: <201105040107.p4417NTR048534@pozo.com> References: <201105040107.p4417NTR048534@pozo.com> From: Renato Botelho Date: Wed, 28 Dec 2011 13:44:57 -0200 Message-ID: To: Manfred Antar 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2011 16:16:57 -0000 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 ? > > =3D=3D=3D> boot/i386/boot0 (all) > clang -O2 -pipe =A0-DVOLUME_SERIAL -DPXE -DFLAGS=3D0x8f =A0-DTICKS=3D0xb6= =A0-DCOMSPEED=3D"7 << 5 + 3" -ffreestanding -mpreferred-stack-boundary=3D2= =A0-mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float -std=3Dgn= u99 =A0 =A0-c /usr/src/sys/boot/i386/boot0/boot0.S > clang: warning: argument unused during compilation: '-mpreferred-stack-bo= undary=3D2' > /tmp/cc-4SXZt8.s:42:11: error: .code16 not supported yet > =A0.code16 # This runs in real mode > =A0 =A0 =A0 =A0 =A0^ > /tmp/cc-4SXZt8.s:313:3: error: unknown use of instruction mnemonic withou= t a size suffix > =A0jmp *%bx # Invoke bootstrap > =A0^ > /tmp/cc-4SXZt8.s:346:3: error: invalid operand for instruction > =A0retw # To caller > =A0^ > /tmp/cc-4SXZt8.s:372:3: error: invalid operand for instruction > =A0retw # To caller > =A0^ > *** Error code 1 > > Stop in /usr/src/sys/boot/i386/boot0. > *** Error code 1 > > Stop in /usr/src/sys/boot/i386. > *** Error code 1 > > Stop in /usr/src/sys/boot. > *** Error code 1 > > Stop in /usr/src/sys. Hello Manfred, I'm having this same issue on a i386 HEAD buildworld with clang. Did you find a fix for this? For now i built boot0 with gcc and it was built fine. Regards --=20 Renato Botelho