From owner-freebsd-current@FreeBSD.ORG Mon Feb 20 02:25:23 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 85753106564A for ; Mon, 20 Feb 2012 02:25:23 +0000 (UTC) (envelope-from jiashiun@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 494B98FC14 for ; Mon, 20 Feb 2012 02:25:23 +0000 (UTC) Received: by iaeo4 with SMTP id o4so9250135iae.13 for ; Sun, 19 Feb 2012 18:25:22 -0800 (PST) Received-SPF: pass (google.com: domain of jiashiun@gmail.com designates 10.50.140.105 as permitted sender) client-ip=10.50.140.105; Authentication-Results: mr.google.com; spf=pass (google.com: domain of jiashiun@gmail.com designates 10.50.140.105 as permitted sender) smtp.mail=jiashiun@gmail.com; dkim=pass header.i=jiashiun@gmail.com Received: from mr.google.com ([10.50.140.105]) by 10.50.140.105 with SMTP id rf9mr9918062igb.24.1329704722970 (num_hops = 1); Sun, 19 Feb 2012 18:25:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=H01YGbpfyKuWR3Ozrmo/+jrVk/r0DS9nF78MtudqtrI=; b=r0SDY88SPLrMXYaRJ9q0Euw1HDljAXXthaJOZm3Ses8tx/aDPFM9U/gPW75p7La/Yk xhZa9/lZfpWEitPeDzuwFjgZ2ZtwQw7dAgZyE8NebnqLCAIE4+DXTkMpvJZibVSJPZKX ZV/i+UjO2KMMzeRoKAAHbjn8DZn8gzz7ygJaA= Received: by 10.50.140.105 with SMTP id rf9mr7981886igb.24.1329702881260; Sun, 19 Feb 2012 17:54:41 -0800 (PST) MIME-Version: 1.0 Received: by 10.50.170.3 with HTTP; Sun, 19 Feb 2012 17:54:11 -0800 (PST) From: Jia-Shiun Li Date: Mon, 20 Feb 2012 09:54:11 +0800 Message-ID: To: freebsd-current@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: 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 02:25:23 -0000 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 hpt27xx: =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] =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 S_IRUSR = | S_IWUSR, driver_name); =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^~~~~~~~~~~ @/dev/hpt27xx/hpt27xx_config.h:46:21: note: expanded from: #define driver_name hpt27xx_driver_name =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^~~~~~~~~~~~~~~~~~~ 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 saw. Regards, Jia-Shiun