Date: Tue, 4 Dec 2007 00:04:13 +0000 From: "Wojciech A. Koszek" <wkoszek@freebsd.org> To: freebsd-current@freebsd.org Cc: jeffr@freebsd.org, daichi@freebsd.org, csjp@freebsd.org Subject: [PATCHES] Building newest src/ tree with gcc3 fails. Message-ID: <20071204000413.GA64160@FreeBSD.czest.pl>
next in thread | raw e-mail | index | archive | help
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: <cut> ../../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. </cut> 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/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071204000413.GA64160>