Re: compilation failure (in the kernel SCSI code)

2002-05-13 Thread Bruce Evans

On Sun, 12 May 2002, Thierry Herbelot wrote:

> the import of GCC3.1 seems to reveal old bugs :
> (while cross-compiling a new kernel atfer cross-compiling a new -Current
> world under a fresh -Stable)
> (the %b flag is not recognized in the printf()s of scsi_low.c)

This is just because gcc-3's format recognizer doesn't recognize %b or any
of the other nonstandard kernel printf formats yet.  Kernels must be
compiled with warnings ignored or printf format checking turned off
until this is fixed.

Bruce


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



compilation failure (in the kernel SCSI code)

2002-05-12 Thread Thierry Herbelot

Hello,

the import of GCC3.1 seems to reveal old bugs :
(while cross-compiling a new kernel atfer cross-compiling a new -Current
world under a fresh -Stable)
(the %b flag is not recognized in the printf()s of scsi_low.c)

%-
cc -c -O -pipe -march=pentiumpro -Wall -Wredundant-decls
-Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes
-Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -ansi -g
-nostdinc -I-  -I. -I/files2/SrcCurrent/src/sys
-I/files2/SrcCurrent/src/sys/dev
-I/files2/SrcCurrent/src/sys/contrib/dev/acpica
-I/files2/SrcCurrent/src/sys/contrib/ipfilter
-I/files2/SrcCurrent/src/sys/../include  -D_KERNEL -ffreestanding
-include opt_global.h -fno-common   -mpreferred-stack-boundary=2
-ffreestanding -Werror  /files2/SrcCurrent/src/sys/cam/scsi/scsi_low.c
cc1: warnings being treated as errors
/files2/SrcCurrent/src/sys/cam/scsi/scsi_low.c: In function
`scsi_low_calcf_show':
/files2/SrcCurrent/src/sys/cam/scsi/scsi_low.c:4661: warning: unknown
conversion type character `b' in format
/files2/SrcCurrent/src/sys/cam/scsi/scsi_low.c:4661: warning: too many
arguments for format
/files2/SrcCurrent/src/sys/cam/scsi/scsi_low.c: In function
`scsi_low_print':
/files2/SrcCurrent/src/sys/cam/scsi/scsi_low.c:4896: warning: unknown
conversion type character `b' in format
/files2/SrcCurrent/src/sys/cam/scsi/scsi_low.c:4896: warning: too many
arguments for format
/files2/SrcCurrent/src/sys/cam/scsi/scsi_low.c:4916: warning: unknown
conversion type character `b' in format
/files2/SrcCurrent/src/sys/cam/scsi/scsi_low.c:4916: warning: too many
arguments for format
/files2/SrcCurrent/src/sys/cam/scsi/scsi_low.c:4929: warning: unknown
conversion type character `b' in format
/files2/SrcCurrent/src/sys/cam/scsi/scsi_low.c:4929: warning: too many
arguments for format
*** Error code 1

Stop in /files2/obj/files2/SrcCurrent/src/sys/multi-Cur.
*** Error code 1

Stop in /files2/SrcCurrent/src.
*** Error code 1

Stop in /files2/SrcCurrent/src.
portable# pwd
%-

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message