buildkernel fails after r240104 (i386, clang)

From: David Wolfskill <david_at_catwhisker.org>
Date: Wed, 5 Sep 2012 06:27:25 -0700
Running:

FreeBSD g1-227.catwhisker.org 10.0-CURRENT FreeBSD 10.0-CURRENT #669 240081M: Tue Sep  4 05:02:11 PDT 2012     root_at_g1-227.catwhisker.org:/usr/obj/usr/src/sys/CANARY  i386

After updating sources to r240131, I see:

...
>>> stage 3.2: building everything
...
clang -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict
-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef 
-Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs -fdiagnostics-show
-option  -Wno-error-tautological-compare -Wno-error-empty-body  -Wno-error-paren
theses-equality -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KER
NEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h  -mno-aes -mno-avx -mno-m
mx -mno-sse -msoft-float -ffreestanding -fstack-protector -Werror  /usr/src/sys/
dev/fe/if_fe_isa.c
ctfconvert -L VERSION -g if_ed_wd80x3.o
clang -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict
-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef 
-Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs -fdiagnostics-show
-option  -Wno-error-tautological-compare -Wno-error-empty-body  -Wno-error-paren
theses-equality -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KER
NEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h  -mno-aes -mno-avx -mno-m
mx -mno-sse -msoft-float -ffreestanding -fstack-protector -Werror  /usr/src/sys/
dev/hpt27xx/osm_bsd.c
clang -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict
-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef 
-Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs -fdiagnostics-show
-option  -Wno-error-tautological-compare -Wno-error-empty-body  -Wno-error-paren
theses-equality -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h  -mno-aes -mno-avx -mno-mmx -mno-sse -msoft-float -ffreestanding -fstack-protector -Werror  /usr/src/sys/dev/hpt27xx/os_bsd.c
/usr/src/sys/dev/hpt27xx/osm_bsd.c:170:66: warning: for loop has empty body [-Wempty-body]
                for (order=0, size=PAGE_SIZE; size<f->size; order++, size<<=1) ;
                                                                               ^
/usr/src/sys/dev/hpt27xx/osm_bsd.c:170:66: note: put the semicolon on a separate line to silence this warning
/usr/src/sys/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);
                               ^~~~~~~~~~~
/usr/src/sys/dev/hpt27xx/hpt27xx_config.h:46:21: note: expanded from macro 'driver_name'
#define driver_name hpt27xx_driver_name
                    ^~~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.
*** [osm_bsd.o] Error code 1
ctfconvert -L VERSION -g if_fe_isa.o
ctfconvert -L VERSION -g os_bsd.o
1 warning generated.
ctfconvert -L VERSION -g if_bwn.o
ld  -d -warn-common -r -d -o if_bwn.kld if_bwn.o
ctfmerge -L VERSION -g -o if_bwn.kld if_bwn.o
:> export_syms
awk -f /usr/src/sys/conf/kmod_syms.awk if_bwn.kld  export_syms | xargs -J% objcopy % if_bwn.kld
ld -Bshareable  -d -warn-common -o if_bwn.ko.debug if_bwn.kld
objcopy --only-keep-debug if_bwn.ko.debug if_bwn.ko.symbols
objcopy --strip-debug --add-gnu-debuglink=if_bwn.ko.symbols if_bwn.ko.debug if_bwn.ko
...
===> zlib (all)
1 error
*** [buildkernel] Error code 2
1 error
*** [buildkernel] Error code 2
1 error



I suspect that:

------------------------------------------------------------------------
r240104 | delphij | 2012-09-04 14:02:57 -0700 (Tue, 04 Sep 2012) | 4 lines

Add hpt27xx to GENERIC kernel for amd64 and i386 systems.

MFC after:      2 weeks

------------------------------------------------------------------------

(from "svn log sys/conf/i386/GENERIC") has a fair bit of involvement.


Peace,
david
-- 
David H. Wolfskill				david_at_catwhisker.org
Depriving a girl or boy of an opportunity for education is evil.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.

Received on Wed Sep 05 2012 - 11:27:31 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:30 UTC