Code:
-Os
-fno-guess-branch-probability
-fomit-frame-pointer
-fno-unit-at-a-time
-mno-align-long-strings
your CFLAGS may be good for Ports but not for kernel, try these for kernel:
-O2 -fno-strict-aliasing -pipe -s
here you can check how to specify diffrent CFLAGS for kernel and Ports:
http://toya.net.pl/~vermaden/text/make.conf
Also, this is the proper schema for upgrading FreeBSD:
Code:
# cd /usr/src
# make buildworld
# make kernel KODIR=/boot/testing
# nextboot -k testing
# shutdown -r now
Code:
# cd /usr/src
# mergemaster -p
# make installworld
# mergemaster -iU
// ( if kernel works ok then )
# mv /boot/kernel /boot/OLD
# mv /boot/testing /boot/kernel
// ( else build kernel again )
# shutdown -r now
Code:
// ( optional )
# cd /usr/src
# make delete-old
# make delete-old-libs