From owner-freebsd-current@FreeBSD.ORG Mon Feb 20 06:01:59 2012 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 33AC5106566B for ; Mon, 20 Feb 2012 06:01:59 +0000 (UTC) (envelope-from sendtomatt@gmail.com) Received: from mail-pw0-f54.google.com (mail-pw0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id EFA988FC1C for ; Mon, 20 Feb 2012 06:01:58 +0000 (UTC) Received: by pbcxa7 with SMTP id xa7so6614933pbc.13 for ; Sun, 19 Feb 2012 22:01:58 -0800 (PST) Received-SPF: pass (google.com: domain of sendtomatt@gmail.com designates 10.68.204.106 as permitted sender) client-ip=10.68.204.106; Authentication-Results: mr.google.com; spf=pass (google.com: domain of sendtomatt@gmail.com designates 10.68.204.106 as permitted sender) smtp.mail=sendtomatt@gmail.com; dkim=pass header.i=sendtomatt@gmail.com Received: from mr.google.com ([10.68.204.106]) by 10.68.204.106 with SMTP id kx10mr51843225pbc.150.1329717718576 (num_hops = 1); Sun, 19 Feb 2012 22:01:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=tAyQpgpEEhLpMA/A/1lNkZ6yvuH4MwoxYlXiwxgGARs=; b=GIloe5nQDteC3F9aveuMtKfX/JjDlfhhMY9OVJZ3oxPnzGj30xZvow/ncxGV1mU3kD M/x60Gm8wiObxp3CGnwqPWqIlhm2mc1klwCKXci7muebaBcgr1w5cDwCntzFNsqF/3J0 Al5/UWDmC8R7V/iss5qGYKl3G29p87xGIFW6k= Received: by 10.68.204.106 with SMTP id kx10mr43384917pbc.150.1329717718487; Sun, 19 Feb 2012 22:01:58 -0800 (PST) Received: from bakeneko.local ([74.195.19.178]) by mx.google.com with ESMTPS id a6sm12334366pbs.68.2012.02.19.22.01.56 (version=SSLv3 cipher=OTHER); Sun, 19 Feb 2012 22:01:57 -0800 (PST) Message-ID: <4F41E193.6010601@gmail.com> Date: Sun, 19 Feb 2012 22:00:51 -0800 From: matt User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120217 Thunderbird/10.0.1 MIME-Version: 1.0 To: Jia-Shiun Li References: In-Reply-To: X-Enigmail-Version: 1.3.5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org Subject: Re: Failed to compile current kernel with llvm/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: Mon, 20 Feb 2012 06:01:59 -0000 On 02/19/12 17:54, Jia-Shiun Li wrote: > Hi all, > > I am trying to build world and kernel with llvm according to > instructions on wiki: > > http://wiki.freebsd.org/BuildingFreeBSDWithClang > > buildworld is fine, but when building GENERIC kernel it failed on hpt27= xx: > > =3D=3D=3D> hpt27xx (all) > /usr/src/sys/modules/hpt27xx/../../dev/hpt27xx/osm_bsd.c:1180:25: > error: format string is not a string literal (potentially insecure) > [-Werror,-Wformat-security] > S_IRUSR | S_IWUSR, driver_name); > ^~~~~~~~~~~ > @/dev/hpt27xx/hpt27xx_config.h:46:21: note: expanded from: > #define driver_name hpt27xx_driver_name > ^~~~~~~~~~~~~~~~~~~ > > I cannot find symbol hpt27xx_driver_name in that directory. Is it > expanded from some macros I am not aware of? > > > BTW clang does generate much friendly and useful warnings so far as I s= aw. > > > Regards, > Jia-Shiun > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.o= rg" You have the WERROR=3D NO_WERROR=3D lines in /etc/make.conf? Matt