From owner-freebsd-current@FreeBSD.ORG Mon Feb 21 16:04:36 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 99C64106566B for ; Mon, 21 Feb 2011 16:04:36 +0000 (UTC) (envelope-from rbgarga@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 2EA318FC12 for ; Mon, 21 Feb 2011 16:04:35 +0000 (UTC) Received: by wyb32 with SMTP id 32so1948079wyb.13 for ; Mon, 21 Feb 2011 08:04:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type:content-transfer-encoding; bh=hHPF/qS/RA+Y0pMUzCgTENryi99853VsG1MVXCdl2pM=; b=QwqvJ2GcWOqbAGygh5DSI83RlxgwaoPsCO0DcNnIjWspXsmOslGBQ5Lj3kp3rBkAhV 6n2nJJPvK3vLY37dKp/aWc+qrPJzxETqmdwhW9ofxEU9dQ5iV4I4v6/jRNyCNEAJQqR1 pDbA4hMxpNt7D2hn6GJumwpHm5LAYzg45z9FA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=kJUv+eMpzdqzQ2uNFc/FHwfVBtMsNT0r0yvD1Ayr2BtcuOwjDexcPAk6d1AkwbqJPS 9A7Li6xiBGM76nqdgOYS2L/FxQwAoHBlPVQOlHErPikgXnOADXSYiKh/ej15wSJxqMmu 1UWQmDJQHlp+u9CSWbKcYPUg7xnfIHlgpI1K4= Received: by 10.216.171.68 with SMTP id q46mr2193649wel.98.1298304179106; Mon, 21 Feb 2011 08:02:59 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.11.69 with HTTP; Mon, 21 Feb 2011 08:02:39 -0800 (PST) In-Reply-To: References: From: Renato Botelho Date: Mon, 21 Feb 2011 13:02:39 -0300 Message-ID: To: FreeBSD Current Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: Error building world after last clang update 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, 21 Feb 2011 16:04:36 -0000 On Mon, Feb 21, 2011 at 12:34 PM, Renato Botelho wrote: > I was trying to upgrade my 9.0-CURRENT amd64 after clang > was updated, but i got following error: > > =3D=3D=3D> sys/boot/i386/cdboot (all) > =3D=3D=3D> sys/boot/i386/gptboot (all) > =3D=3D=3D> sys/boot/i386/kgzldr (all) > =3D=3D=3D> sys/boot/i386/libi386 (all) > clang -O2 -pipe =A0-DLOADER_NFS_SUPPORT -DCOMPORT=3D0x3f8 -DCOMSPEED=3D96= 00 > -DSMBIOS_SERIAL_NUMBERS -DLOADER_GPT_SUPPORT -DTERM_EMU > -Dalloca=3D__builtin_alloca > -I/usr/src/sys/boot/i386/libi386/../../common > -I/usr/src/sys/boot/i386/libi386/../btx/lib > -I/usr/src/sys/boot/i386/libi386/../../../contrib/dev/acpica/include > -I/usr/src/sys/boot/i386/libi386/../../.. -I. > -I/usr/src/sys/boot/i386/libi386/../../../../lib/libstand/ > -ffreestanding -mpreferred-stack-boundary=3D2 =A0-mno-mmx -mno-3dnow > -mno-sse -mno-sse2 -mno-sse3 -msoft-float -m32 -march=3Di386 -std=3Dgnu99 > =A0-c /usr/src/sys/boot/i386/libi386/amd64_tramp.S > clang: warning: argument unused during compilation: > '-mpreferred-stack-boundary=3D2' > /tmp/cc-ohEeiE.s:35:9: error: .code32 not supported yet > =A0.code32 > =A0 =A0 =A0 =A0^ > /tmp/cc-ohEeiE.s:69:9: error: .code64 not supported yet > =A0.code64 > =A0 =A0 =A0 =A0^ > *** Error code 1 > 1 error > *** Error code 2 > 1 error > *** Error code 2 > 1 error > *** Error code 2 > 1 error > *** Error code 2 > 1 error > *** Error code 2 > 1 error > *** Error code 2 > 1 error > [1] =A0 =A094534 exit 2 =A0 =A0 nice -n 15 make -j1 buildworld buildkerne= l > > My /etc/src.conf has: > > .if !defined(CC) || ${CC} =3D=3D "cc" > CC=3Dclang > .endif > .if !defined(CXX) || ${CXX} =3D=3D "c++" > CXX=3Dclang++ > .endif > # Don't die on warnings > NO_WERROR=3D > WERROR=3D > > Any hints? I read the answer for a problem like this and followed the suggestion of add clang config lines on /etc/make.conf. It worked fine, it's building again now. --=20 Renato Botelho