From owner-freebsd-current@FreeBSD.ORG Wed Jun 23 13:15:50 2010 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 9CE15106566C for ; Wed, 23 Jun 2010 13:15:50 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 23D678FC2B for ; Wed, 23 Jun 2010 13:15:49 +0000 (UTC) Received: by fxm7 with SMTP id 7so3544854fxm.13 for ; Wed, 23 Jun 2010 06:15:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=IknK3DQUMQU9LmuO5et/hpA6zxhs+SdOLvK19Yc6ZmM=; b=sRyW9jM3LkYnhCR+BWGr+0u0bjyDyfVyGg+WSVCNti+Alv1FNB88qGrWgGlibCoyh9 JTFBDz4wVXypyQI8PJHpRF+VzEI5RfzLDp7uofI8j7zZGKyOlb1fDwBks8StEQwslvVv 1rB9GYJmnoSPR9G/OouZ/rlqqw5z0mtwwf/uU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=mw1HVkjpXgJ7iV9B4LhEBkKnJ2JUO+N1ty1utDvXw8CLcnBkrRReiIdfiZO0BDgQUn SkQ1HWcaEn/fILpxvpyXcEAFMdp6PvRmclj6fF6BNZylLI/i4mhzVJu0my0TurnO2tWA EtdaNg2la2pXGGkEKWD9DNK+cZoquo3i+DP64= MIME-Version: 1.0 Received: by 10.239.185.131 with SMTP id c3mr542896hbh.193.1277298948871; Wed, 23 Jun 2010 06:15:48 -0700 (PDT) Received: by 10.239.185.1 with HTTP; Wed, 23 Jun 2010 06:15:48 -0700 (PDT) In-Reply-To: References: Date: Wed, 23 Jun 2010 14:15:48 +0100 Message-ID: From: Tom Evans To: Cristiano Deana Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org Subject: Re: Problem with buildworld with CLANG 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, 23 Jun 2010 13:15:50 -0000 On Wed, Jun 23, 2010 at 1:38 PM, Cristiano Deana wrote: > # uname -a > FreeBSD test 9.0-CURRENT FreeBSD 9.0-CURRENT #3: Tue Jun 22 16:04:38 > CEST 2010 =C2=A0 =C2=A0 root@test:/usr/obj/usr/src/sys/GENERIC =C2=A0amd6= 4 > > # cat /etc/src.conf > #NO_WERROR=3D > #WERROR=3D > CC=3D =C2=A0 =C2=A0 clang > CXX=3D =C2=A0 =C2=A0clang++ > > sources from this morning, i got this error: > > clang -O2 -pipe =C2=A0-I/usr/src/lib/libc/include > -I/usr/src/lib/libc/../../include -I/usr/src/lib/libc/amd64 -DNLS > -D__DBINTERFACE_PRIVATE -I/usr/src/lib/libc/../../contrib/gdtoa > -DINET6 -I/usr/obj/usr/src/lib/libc -I/usr/src/lib/libc/resolv > -D_ACL_PRIVATE -DPOSIX_MISTAKE > -I/usr/src/lib/libc/../../contrib/tzcode/stdtime > -I/usr/src/lib/libc/stdtime -I/usr/src/lib/libc/locale -DBROKEN_DES > -DPORTMAP -DDES_BUILTIN -I/usr/src/lib/libc/rpc -DYP -DNS_CACHING > -DSYMBOL_VERSIONING -std=3Dgnu99 =C2=A0-Wsystem-headers -Werror -Wall > -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -c > /usr/src/lib/libc/sys/stack_protector.c > /usr/src/lib/libc/sys/stack_protector.c:88:19: error: format string is > not a string literal (potentially insecure) [-Wformat-security] > =C2=A0 =C2=A0 =C2=A0 =C2=A0syslog(LOG_CRIT, msg); > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 ^~~ > 1 error generated. > *** Error code 1 > Top of the '[TESTING] Clang..' email: > hi, > > ClangBSD was updated to LLVM/clang revision 104832 which is what we aim t= o import > into HEAD in roughly a week. We would like the initial import to be as pa= inless > as possible and therefore we ask you to test ClangBSD to assure that the = revision > we are importing does not have some really embarassing bugs. > > How to do it (on i386 and amd64): > > 0) install fresh devel/llvm-devel port > > 1) svn co http://svn.freebsd.org/base/projects/clangbsd src > > 2) echo NO_WERROR=3D >> /etc/src.conf ; echo WERROR=3D >> /etc/src.conf > > 3) cd src && make buildworld So uncomment your src.conf lines that are incompatible. Cheers Tom