Re: build is broken after gcc import

From: Maxim Maximov <mcsi_at_mcsi.pp.ru>
Date: Wed, 28 Jul 2004 19:24:09 +0400
Maxim Maximov wrote:

> 
> 
> Now traceroute builds fine, thanks! But buildkernel fails (after 
> successful buildworld):
> 
> --------------------------------------------------------------
>  >>> stage 3.1: making dependencies
> --------------------------------------------------------------
> cd /usr/obj/usr/src/sys/ULTRA;  MAKEOBJDIRPREFIX=/usr/obj 
> MACHINE_ARCH=i386  MACHINE=i386  CPUTYPE= 
> GROFF_BIN_PATH=/usr/obj/usr/src/i386/legacy/usr/bin 
> GROFF_FONT_PATH=/usr/obj/usr/src/i386/legacy/usr/share/groff_font 
> GROFF_TMAC_PATH=/usr/obj/usr/src/i386/legacy/usr/share/tmac 
> DESTDIR=/usr/obj/usr/src/i386  _SHLIBDIRPREFIX=/usr/obj/usr/src/i386 
> INSTALL="sh /usr/src/tools/install.sh" 
> PATH=/usr/obj/usr/src/i386/legacy/usr/sbin:/usr/obj/usr/src/i386/legacy/usr/bin:/usr/obj/usr/src/i386/legacy/usr/games:/usr/obj/usr/src/i386/usr/sbin:/usr/obj/usr/src/i386/usr/bin:/usr/obj/usr/src/i386/usr/games:/sbin:/bin:/usr/sbin:/usr/bin 
> /usr/obj/usr/src/make.i386/make KERNEL=kernel depend -DNO_MODULES_OBJ
> rm -f .olddep
> if [ -f .depend ]; then mv .depend .olddep; fi
> /usr/obj/usr/src/make.i386/make _kernel-depend
> cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs 
> -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline 
> -Wcast-qual -fformat-extensions -std=c99 -g -nostdinc -I- -I. 
> -I/usr/src/sys -I/usr/src/sys/contrib/dev/acpica 
> -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter 
> -I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath 
> -I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm 
> -D_KERNEL -include opt_global.h -finline-limit=8000 --param 
> inline-unit-growth=100 --param large-function-growth=1000 
> -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding 
> /usr/src/sys/i386/i386/genassym.c
> cc1: error: unrecognized command line option "-fformat-extensions"
> *** Error code 1

And attached patch fixes the problem.

-- 
Maxim Maximov

Index: kern.mk
===================================================================
RCS file: /home/ncvs/src/sys/conf/kern.mk,v
retrieving revision 1.42
diff -u -r1.42 kern.mk
--- kern.mk	14 May 2004 13:35:46 -0000	1.42
+++ kern.mk	28 Jul 2004 15:21:26 -0000
_at__at_ -12,7 +12,7 _at__at_
 .else
 CWARNFLAGS?=	-Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes \
 		-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual \
-		-fformat-extensions -std=c99
+		-std=c99
 .endif
 #
 # The following flags are next up for working on:
Received on Wed Jul 28 2004 - 13:24:19 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:03 UTC