Re: buildkernel fails with a 'invalid conversion specifier' compiler error

2016-09-19 Thread Alex T.
Thank you. The workaround helped, but kind of curious now what caused this
failures to start show up. Will try going through commits to see if I can
spot anything.

On 18 September 2016 at 12:07, Dimitry Andric  wrote:

> 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
>
>
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: buildkernel fails with a 'invalid conversion specifier' compiler error

2016-09-18 Thread Dimitry Andric
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



signature.asc
Description: Message signed with OpenPGP using GPGMail


buildkernel fails with a 'invalid conversion specifier' compiler error

2016-09-18 Thread Alex T.
Hi guys,

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?

Thank you.
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"