From owner-freebsd-current@FreeBSD.ORG Mon Dec 3 23:36:42 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4A0B916A468; Mon, 3 Dec 2007 23:36:42 +0000 (UTC) (envelope-from dunstan@freebsd.czest.pl) Received: from freebsd.czest.pl (freebsd.czest.pl [80.48.250.4]) by mx1.freebsd.org (Postfix) with ESMTP id A710B13C442; Mon, 3 Dec 2007 23:36:41 +0000 (UTC) (envelope-from dunstan@freebsd.czest.pl) Received: from freebsd.czest.pl (freebsd.czest.pl [80.48.250.4]) by freebsd.czest.pl (8.13.4/8.12.9) with ESMTP id lB404E2l064405; Tue, 4 Dec 2007 00:04:14 GMT (envelope-from dunstan@freebsd.czest.pl) Received: (from dunstan@localhost) by freebsd.czest.pl (8.13.4/8.12.9/Submit) id lB404E03064404; Tue, 4 Dec 2007 00:04:14 GMT (envelope-from dunstan) Date: Tue, 4 Dec 2007 00:04:13 +0000 From: "Wojciech A. Koszek" To: freebsd-current@freebsd.org Message-ID: <20071204000413.GA64160@FreeBSD.czest.pl> Mail-Followup-To: "Wojciech A. Koszek" , freebsd-current@freebsd.org, daichi@freebsd.org, csjp@freebsd.org, jeffr@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Greylist: Sender DNS name whitelisted, not delayed by milter-greylist-2.0.2 (freebsd.czest.pl [80.48.250.4]); Tue, 04 Dec 2007 00:04:14 +0000 (UTC) Cc: jeffr@freebsd.org, daichi@freebsd.org, csjp@freebsd.org Subject: [PATCHES] Building newest src/ tree with gcc3 fails. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Dec 2007 23:36:42 -0000 Hello all, I had to rebuild my two disks, each with pre-gcc 4.x era. There seem to be a number of small bugs which gcc4 doesn't uncover while gcc3 does. Thus, several problems you can encounter with WITH_GCC3 on newest src/ tree: ../../contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Werror ../../../kern/sched_ule.c ../../../kern/sched_ule.c: In function `sched_switch_migrate': ../../../kern/sched_ule.c:308: warning: inlining failed in call to 'thread_block_switch': function body not available ../../../kern/sched_ule.c:1781: warning: called from here *** Error code 1 Stop in /usr/src/sys/i386/compile/GENERIC. This one can be fixed with: http://people.freebsd.org/~wkoszek/patches/sched_ule.c.0.patch The another problem is that: erred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Werror ../../../security/audit/audit.c ../../../security/audit/audit.c: In function `audit_proc_coredump': ../../../security/audit/audit.c:583: warning: 'ret' might be used uninitialized in this function *** Error code 1 This one can be fixed with: http://people.freebsd.org/~wkoszek/patches/audit.c.0.patch Two problems with tmpfs_vnops.c about uninitialized 'error' variables: http://people.freebsd.org/~wkoszek/patches/tmpfs_vnops.c.0.patch Other two have been reviewed and will soon be commited. Thanks, -- Wojciech A. Koszek wkoszek@FreeBSD.org http://FreeBSD.czest.pl/dunstan/