Date: Mon, 20 Feb 2012 09:54:11 +0800 From: Jia-Shiun Li <jiashiun@gmail.com> To: freebsd-current@freebsd.org Subject: Failed to compile current kernel with llvm/clang Message-ID: <CAHNYxxMo5rhjvpqvfVi5g83uP253qyMBv9P-vJH5Zr-aBar0Qg@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHNYxxMo5rhjvpqvfVi5g83uP253qyMBv9P-vJH5Zr-aBar0Qg>