Subject: Re: Problem compiling kernel with gcc-3.2.1
To: Francisco =?iso-8859-1?q?Gayt=E1n?= <fg@hispabsd.org>
From: Berndt Josef Wulf <wulf@ping.net.au>
List: netbsd-help
Date: 03/24/2003 08:29:04
Are you trying to build a kernel with gcc-3.2.1? AFAIK, this is not possible
at the moment. I stand corrected if this is not so.

cheerio Berndt

On Mon, 24 Mar 2003 04:05 am, Francisco Gayt=E1n wrote:
> Hi. I have just updated gcc to 3.2.1 from pkgsrc.
>
> I have updated /usr/src with cvs, and when the system is compiling the
> kernel (make depend && make) it stops with this message:
>
> /usr/pkg/gcc-3.2.1/bin/cc  -ffreestanding  -O2 -Werror -Wall -Wno-main
> -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes
> -Wstrict-prototypes -Wno-uninitialized  -Di386 -I.  -I../../../../arch
> -I../../../.. -nostdinc -DLKM -DIPFILTER -DMAXUSERS=3D32 -D_KERNEL
> -D_KERNEL_OPT   -c
> /usr/src/sys/arch/i386/compile/DATA/../../../../kern/kern_sig.c
> /usr/pkg/gcc-3.2.1/bin/cc  -ffreestanding  -O2 -Werror -Wall -Wno-main
> -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes
> -Wstrict-prototypes -Wno-uninitialized  -Di386 -I.  -I../../../../arch
> -I../../../.. -nostdinc -DLKM -DIPFILTER -DMAXUSERS=3D32 -D_KERNEL
> -D_KERNEL_OPT   -c
> /usr/src/sys/arch/i386/compile/DATA/../../../../kern/kern_subr.c
> /usr/pkg/gcc-3.2.1/bin/cc  -ffreestanding  -O2 -Werror -Wall -Wno-main
> -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes
> -Wstrict-prototypes -Wno-uninitialized  -Di386 -I.  -I../../../../arch
> -I../../../.. -nostdinc -DLKM -DIPFILTER -DMAXUSERS=3D32 -D_KERNEL
> -D_KERNEL_OPT   -c
> /usr/src/sys/arch/i386/compile/DATA/../../../../kern/kern_synch.c
> /usr/pkg/gcc-3.2.1/bin/cc  -ffreestanding  -O2 -Werror -Wall -Wno-main
> -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes
> -Wstrict-prototypes -Wno-uninitialized  -Di386 -I.  -I../../../../arch
> -I../../../.. -nostdinc -DLKM -DIPFILTER -DMAXUSERS=3D32 -D_KERNEL
> -D_KERNEL_OPT   -c
> /usr/src/sys/arch/i386/compile/DATA/../../../../kern/kern_sysctl.c
> /usr/pkg/gcc-3.2.1/bin/cc  -ffreestanding  -O2 -Werror -Wall -Wno-main
> -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes
> -Wstrict-prototypes -Wno-uninitialized  -Di386 -I.  -I../../../../arch
> -I../../../.. -nostdinc -DLKM -DIPFILTER -DMAXUSERS=3D32 -D_KERNEL
> -D_KERNEL_OPT   -c
> /usr/src/sys/arch/i386/compile/DATA/../../../../kern/kern_time.c
> /usr/pkg/gcc-3.2.1/bin/cc  -ffreestanding  -O2 -Werror -Wall -Wno-main
> -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes
> -Wstrict-prototypes -Wno-uninitialized  -Di386 -I.  -I../../../../arch
> -I../../../.. -nostdinc -DLKM -DIPFILTER -DMAXUSERS=3D32 -D_KERNEL
> -D_KERNEL_OPT   -c
> /usr/src/sys/arch/i386/compile/DATA/../../../../kern/kern_xxx.c
> /usr/pkg/gcc-3.2.1/bin/cc  -ffreestanding  -O2 -Werror -Wall -Wno-main
> -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes
> -Wstrict-prototypes -Wno-uninitialized  -Di386 -I.  -I../../../../arch
> -I../../../.. -nostdinc -DLKM -DIPFILTER -DMAXUSERS=3D32 -D_KERNEL
> -D_KERNEL_OPT   -c
> /usr/src/sys/arch/i386/compile/DATA/../../../../kern/subr_autoconf.c
> /usr/pkg/gcc-3.2.1/bin/cc  -ffreestanding  -O2 -Werror -Wall -Wno-main
> -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes
> -Wstrict-prototypes -Wno-uninitialized  -Di386 -I.  -I../../../../arch
> -I../../../.. -nostdinc -DLKM -DIPFILTER -DMAXUSERS=3D32 -D_KERNEL
> -D_KERNEL_OPT   -c
> /usr/src/sys/arch/i386/compile/DATA/../../../../kern/subr_disk.c cc1: los
> avisos son tratados como errores
> /usr/src/sys/kern/subr_disk.c: En la funci=F3n `diskerr':
> /usr/src/sys/kern/subr_disk.c:348: aviso: cadena de formato de longitud
> cero *** Error code 1
>
> Stop.
> make: stopped in /usr/src/sys/arch/i386/compile/DATA
> -bash-2.05b#
>
> Any idea?
>
> Regards.