[PATCHES] Building newest src/ tree with gcc3 fails.
Wojciech A. Koszek
wkoszek at freebsd.org
Mon Dec 3 15:36:42 PST 2007
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/
More information about the freebsd-current
mailing list