Re: Failed to compile current kernel with llvm/clang

看板FB_current作者時間14年前 (2012/02/20 14:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/4 (看更多)
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 _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1FGUZYP9 (FB_current)
文章代碼(AID): #1FGUZYP9 (FB_current)