From owner-freebsd-current@FreeBSD.ORG Mon May 14 07:00:33 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 91B901065672 for ; Mon, 14 May 2012 07:00:33 +0000 (UTC) (envelope-from oleg.moskalenko@citrix.com) Received: from SMTP02.CITRIX.COM (smtp02.citrix.com [66.165.176.63]) by mx1.freebsd.org (Postfix) with ESMTP id 517AF8FC12 for ; Mon, 14 May 2012 07:00:33 +0000 (UTC) X-IronPort-AV: E=Sophos;i="4.75,584,1330923600"; d="scan'208";a="194648255" Received: from sjcpmailmx02.citrite.net ([10.216.14.75]) by FTLPIPO02.CITRIX.COM with ESMTP/TLS/RC4-MD5; 14 May 2012 03:00:32 -0400 Received: from SJCPMAILBOX01.citrite.net ([10.216.4.73]) by SJCPMAILMX02.citrite.net ([10.216.14.75]) with mapi; Mon, 14 May 2012 00:00:31 -0700 From: Oleg Moskalenko To: 'Anton Shterenlikht' , "freebsd-current@freebsd.org" Date: Mon, 14 May 2012 00:00:31 -0700 Thread-Topic: [clang] r234928 amd64 buildworld error Thread-Index: Ac0xnornPvabHR9eT1GDaBwOCHkEnwAAD4vA Message-ID: <031222CBCF33214AB2EB4ABA279428A3011A2C2D1AD6@SJCPMAILBOX01.citrite.net> References: <20120514065427.GA36884@mech-cluster241.men.bris.ac.uk> In-Reply-To: <20120514065427.GA36884@mech-cluster241.men.bris.ac.uk> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: Subject: RE: [clang] r234928 amd64 buildworld error 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, 14 May 2012 07:00:33 -0000 We already have a fix for this problem with clang, and we are going to subm= it it soon. gcc behaves differently on the same sources, they can be compiled just fine= with gcc. Thanks Oleg > -----Original Message----- > From: owner-freebsd-current@freebsd.org [mailto:owner-freebsd- > current@freebsd.org] On Behalf Of Anton Shterenlikht > Sent: Sunday, May 13, 2012 11:54 PM > To: freebsd-current@freebsd.org > Subject: [clang] r234928 amd64 buildworld error >=20 > clang -O2 -pipe -DSORT_THREADS -std=3Dgnu99 -Qunused-arguments -fstack- > protector > -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter > -Wstrict > -prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast- > qual -Wwri > te-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar- > subscripts - > Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno- > pointer-s > ign -Wno-empty-body -Wno-string-plus-int -c > /usr/src/usr.bin/sort/file.c > /usr/src/usr.bin/sort/file.c:601:12: error: format string is not a > string > literal (potentially insecure) [-Werror,-Wformat-security] > err(2, getstr(7)); > ^~~~~~~~~ > /usr/src/usr.bin/sort/sort.h:52:20: note: expanded from macro 'getstr' > #define getstr(n) catgets(catalog, 1, n, nlsstr[n]) > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/src/usr.bin/sort/file.c:942:11: error: format string is not a > string > literal (potentially insecure) [-Werror,-Wformat-security] > err(2, getstr(8)); > ^~~~~~~~~ > /usr/src/usr.bin/sort/sort.h:52:20: note: expanded from macro 'getstr' > #define getstr(n) catgets(catalog, 1, n, nlsstr[n]) > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/src/usr.bin/sort/file.c:1279:10: error: format string is not a > string > literal (potentially insecure) [-Werror,-Wformat-security] > err(2, getstr(9)); > ^~~~~~~~~ > /usr/src/usr.bin/sort/sort.h:52:20: note: expanded from macro 'getstr' > #define getstr(n) catgets(catalog, 1, n, nlsstr[n]) > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/src/usr.bin/sort/file.c:1295:12: error: format string is not a > string > literal (potentially insecure) [-Werror,-Wformat-security] > errx(2, getstr(10)); > ^~~~~~~~~~ > /usr/src/usr.bin/sort/sort.h:52:20: note: expanded from macro 'getstr' > #define getstr(n) catgets(catalog, 1, n, nlsstr[n]) > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > 4 errors generated. > *** [file.o] Error code 1 >=20 > Stop in /usr/src/usr.bin/sort. > *** [all] Error code 1 >=20 >=20 > -- > Anton Shterenlikht > Room 2.6, Queen's Building > Mech Eng Dept > Bristol University > University Walk, Bristol BS8 1TR, UK > Tel: +44 (0)117 331 5944 > Fax: +44 (0)117 929 4423 > _______________________________________________ > 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"