Hi guys,
I've been using instructions for rebuilding from source from the handbook, but recently I've started seeing failures to compile the kernel. World builds fine, but kernel fails to build with:
My /etc/make.conf looks like this:
SVN info:
I assume the problem is not with the source, but with the setup. But can't seem to find anything that could cause this issue. Has anyone seen these errors? Any hints for what to try?
Thank you.
I've been using instructions for rebuilding from source from the handbook, but recently I've started seeing failures to compile the kernel. World builds fine, but kernel fails to build with:
Code:
cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -g -Wall -Wredundant-decls -Wnested-ex
terns -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual
-Wundef -Wno-pointer-sign -Wmissing-include-dirs -fdiagnostics-show-option -Wno-err
or-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-er
ror-unused-function -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -I/usr
/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mno-aes -mno-avx -mcmodel=kernel
-mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffree$
tanding -fstack-protector -gdwarf-2 -Werror /usr/src/sys/cam/cam_xpt.c
/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...
^
2 errors generated.
*** Error code 1
My /etc/make.conf looks like this:
Code:
WITH_PKGNG=yes
SSP_CFLAGS=-fstack-protector-all
WITH_SSP_PORTS=yes
WITHOUT="DOCS"
SVN info:
Code:
# svn info
Path: .
Working Copy Root Path: /usr/src
URL: svn://svn.freebsd.org/base/stable/10
Relative URL: ^/stable/10
Repository Root: svn://svn.freebsd.org/base
Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Revision: 305760
Node Kind: directory
Schedule: normal
Last Changed Author: lwhsu
Last Changed Rev: 305759
Last Changed Date: 2016-09-12 22:22:08 -0700 (Mon, 12 Sep 2016)
I assume the problem is not with the source, but with the setup. But can't seem to find anything that could cause this issue. Has anyone seen these errors? Any hints for what to try?
Thank you.