[PATCHES] Building newest src/ tree with gcc3 fails.

From: Wojciech A. Koszek <wkoszek_at_freebsd.org>
Date: Tue, 4 Dec 2007 00:04:13 +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:

<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_at_FreeBSD.org
http://FreeBSD.czest.pl/dunstan/
Received on Mon Dec 03 2007 - 22:36:42 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:23 UTC