6.2-RC1: make buildkernel

bachi at te-clan.ch bachi at te-clan.ch
Sat Nov 25 06:14:36 PST 2006


http://bachi.te-clan.ch/amd64/TE-CLAN
http://bachi.te-clan.ch/amd64/make.conf

=> make buildkernel keeps failing here:
[...]
linking kernel
objcopy --strip-debug kernel
   text    data     bss     dec     hex filename
4009168  366408  297248 4672824  474d38 kernel
cd /usr/src/sys/modules;
MAKEOBJDIRPREFIX=/usr/obj/usr/src/sys/TE-CLAN/modules KMODDIR=/boot/kernel
MACHINE=amd64 KERNBUILDDIR="/usr/obj/usr/src/sys/TE-CLAN" make  all
===> aac (all)
cc -02 -pipe -fPIC -funroll-all-loops -march=opteron -Werror -D_KERNEL
-DKLD_MODULE -nostdinc -I-   -DHAVE_KERNEL_OPTION_HEADERS -include
/usr/obj/usr/src/sys/TE-CLAN/opt_global.h -I. -I@ -I@/contrib/altq
-I/usr/include -finline-limit=8000 -fno-common  -fno-omit-frame-pointer
-I/usr/obj/usr/src/sys/TE-CLAN -mcmodel=kernel -mno-red-zone  -mfpmath=387
-mno-sse -mno-sse2 -mno-mmx -mno-3dnow  -msoft-float
-fno-asynchronous-unwind-tables -ffreestanding -Wall -Wredundant-decls
-Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith
-Winline -Wcast-qual  -fformat-extensions -std=c99 -c
/usr/src/sys/modules/aac/../../dev/aac/aac.c
cc: unrecognized option `-02'
/usr/src/sys/modules/aac/../../dev/aac/aac.c:1: sorry, unimplemented: code
model kernel not supported in PIC mode
/usr/src/sys/modules/aac/../../dev/aac/aac.c:1: error: code model `kernel'
not supported in the 64 bit mode
*** Error code 1
[...]

=> Search in Google "freebsd aac amd64 PIC". Found this:
http://lists.freebsd.org/pipermail/freebsd-questions/2004-February/037136.html

=> Search for "NO_MODULES" in /usr/src/sys don't found in amd64
[root at te-clan /usr/src]# grep -r NO_MODULES /usr/src/sys
/usr/src/sys/conf/Makefile.arm:NO_MODULES=
/usr/src/sys/conf/kern.post.mk:.if !defined(MODULES_WITH_WORLD) &&
!defined(NO_MODULES) && exists($S/modules)
/usr/src/sys/conf/kern.post.mk:.if !defined(NO_MODULES) &&
defined(PORTS_MODULES)
/usr/src/sys/conf/kern.post.mk:.if !defined(MODULES_WITH_WORLD) &&
!defined(NO_MODULES) && exists($S/modules)
/usr/src/sys/conf/kern.post.mk:.if !defined(NO_MODULES_OBJ)
/usr/src/sys/i386/conf/PAE:makeoptions  NO_MODULES=yes
/usr/src/sys/ia64/conf/SKI:makeoptions  NO_MODULES=yes  # Don't build any
modules.

6.2-RC1 releases a module:
[root at te-clan /usr/src]# ls -la /boot/kernel/aac.ko
-r-xr-xr-x  1 root  wheel  73520 Nov 16 08:05 /boot/kernel/aac.ko

So, why failing here?

Andreas





More information about the freebsd-amd64 mailing list