From owner-freebsd-stable@freebsd.org Sun Sep 18 19:07:29 2016 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F2EB5BE037C for ; Sun, 18 Sep 2016 19:07:29 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:7b8:3a7:1:2d0:b7ff:fea0:8c26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BAF7B7E5 for ; Sun, 18 Sep 2016 19:07:29 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:7b8:3a7::7c4a:b7c3:933d:6041] (unknown [IPv6:2001:7b8:3a7:0:7c4a:b7c3:933d:6041]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 1B1AC373EF; Sun, 18 Sep 2016 21:07:18 +0200 (CEST) Subject: Re: buildkernel fails with a 'invalid conversion specifier' compiler error Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: multipart/signed; boundary="Apple-Mail=_0865B78F-A055-49AF-BD5C-01ED104A0ECD"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.6.1 From: Dimitry Andric In-Reply-To: Date: Sun, 18 Sep 2016 21:07:08 +0200 Cc: freebsd-stable@freebsd.org Message-Id: References: To: "Alex T." X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Sep 2016 19:07:30 -0000 --Apple-Mail=_0865B78F-A055-49AF-BD5C-01ED104A0ECD Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On 18 Sep 2016, at 20:37, Alex T. wrote: > > I'm on stable/10 branch and have been using it to rebuild world > and kernel. This is the revision I'm currently trying to build but > started seeing the following issue way before it. > > URL: svn://svn.freebsd.org/base/stable/10 > Revision: 305760 > > The world builds fine, but building the kernel fails with this error: > > /usr/src/sys/cam/cam_xpt.c:1060:27: error: > invalid conversion specifier 'b' > [-Werror,-Wformat-invalid-specifier] > ...printf("%s%d: quirks=0x%b\n", perip... > ~^ > /usr/src/sys/cam/cam_xpt.c:1061:36: error: > data argument not used by format > string [-Werror,-Wformat-extra-args] > ...periph->unit_number, quirks, bit_st... > > This is how my /etc/make.conf looks like: > WITH_PKGNG=yes > SSP_CFLAGS=-fstack-protector-all > WITH_SSP_PORTS=yes > WITHOUT="DOCS" > > and I don't have /etc/src.conf. Has anyone seen this issue? > > Any idea what might me misconfigured missing here? It's hard to say what is different on your system, but it looks like the -fformat-extensions flag is somehow not being used for building your kernel. If you can't figure out what causes this, you can try to work around it by setting WITHOUT_FORMAT_EXTENSIONS, or setting WERROR to empty. -Dimitry --Apple-Mail=_0865B78F-A055-49AF-BD5C-01ED104A0ECD Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.30 iEYEARECAAYFAlfe5eUACgkQsF6jCi4glqPmRQCgjKneVVaTuNV+lebM7n60ZFax rnAAn0Si1dD1kkHhLh0gWgEn6pPq+quC =t69F -----END PGP SIGNATURE----- --Apple-Mail=_0865B78F-A055-49AF-BD5C-01ED104A0ECD--