Hi: i'm trying to do a 'nativekernel' build of DragonFlyBSD 2.4.1 on AMD64 X2 system and the build error is
""" /usr/src/sys/platform/pc32/i386/genassym.c:1: error: -mpreferred-stack-boundary=2 is not between 4 and 12 """ The complete build log till the error is below, Script started on Mon Oct 12 21:26:23 2009 # ls Makefile Makefile.inc1 sys typescript # exit exit Script done on Mon Oct 12 21:26:27 2009 -------------------------------------------------------------- >>> Kernel build for SYNERGY started on Mon Oct 12 21:26:19 IST 2009 -------------------------------------------------------------- ===> SYNERGY rm -rf /usr/obj/usr/src/sys/SYNERGY mkdir -p /usr/obj/usr/src/sys cd /usr/src/sys/config; config -d /usr/obj/usr/src/sys/SYNERGY /usr/src/sys/config/SYNERGY Kernel build directory is /usr/obj/usr/src/sys/SYNERGY touch /usr/obj/usr/src/sys/SYNERGY/.nativekernel_run cd /usr/obj/usr/src/sys/SYNERGY; MAKESRCPATH=/usr/src/sys/dev/disk/aic7xxx/aicasm make -DBOOTSTRAPPING -f /usr/src/sys/dev/disk/aic7xxx/aicasm/Makefile Warning: Object directory not changed from original /usr/obj/usr/src/sys/SYNERGY CCVER=gcc41 OBJFORMAT_PATH=/ PATH=/usr/bin:/bin:/usr/sbin:/sbin cc -O -pipe -nostdinc -I/usr/include -I. -I/usr/obj/usr/src/sys/SYNERGY -I/usr/src/sys/dev/disk/aic7xxx/aicasm -c /usr/src/sys/dev/disk/aic7xxx/aicasm/aicasm.c -o aicasm.no CCVER=gcc41 OBJFORMAT_PATH=/ PATH=/usr/bin:/bin:/usr/sbin:/sbin cc -O -pipe -nostdinc -I/usr/include -I. -I/usr/obj/usr/src/sys/SYNERGY -I/usr/src/sys/dev/disk/aic7xxx/aicasm -c /usr/src/sys/dev/disk/aic7xxx/aicasm/aicasm_symbol.c -o aicasm_symbol.no yacc -b aicasm_gram -d -o aicasm_gram.c /usr/src/sys/dev/disk/aic7xxx/aicasm/aicasm_gram.y CCVER=gcc41 OBJFORMAT_PATH=/ PATH=/usr/bin:/bin:/usr/sbin:/sbin cc -O -pipe -nostdinc -I/usr/include -I. -I/usr/obj/usr/src/sys/SYNERGY -I/usr/src/sys/dev/disk/aic7xxx/aicasm -c aicasm_gram.c -o aicasm_gram.no yacc -b aicasm_macro_gram -p mm -d -o aicasm_macro_gram.c /usr/src/sys/dev/disk/aic7xxx/aicasm/aicasm_macro_gram.y CCVER=gcc41 OBJFORMAT_PATH=/ PATH=/usr/bin:/bin:/usr/sbin:/sbin cc -O -pipe -nostdinc -I/usr/include -I. -I/usr/obj/usr/src/sys/SYNERGY -I/usr/src/sys/dev/disk/aic7xxx/aicasm -c aicasm_macro_gram.c -o aicasm_macro_gram.no lex -t /usr/src/sys/dev/disk/aic7xxx/aicasm/aicasm_scan.l > aicasm_scan.c CCVER=gcc41 OBJFORMAT_PATH=/ PATH=/usr/bin:/bin:/usr/sbin:/sbin cc -O -pipe -nostdinc -I/usr/include -I. -I/usr/obj/usr/src/sys/SYNERGY -I/usr/src/sys/dev/disk/aic7xxx/aicasm -c aicasm_scan.c -o aicasm_scan.no lex -t -Pmm /usr/src/sys/dev/disk/aic7xxx/aicasm/aicasm_macro_scan.l > aicasm_macro_scan.c CCVER=gcc41 OBJFORMAT_PATH=/ PATH=/usr/bin:/bin:/usr/sbin:/sbin cc -O -pipe -nostdinc -I/usr/include -I. -I/usr/obj/usr/src/sys/SYNERGY -I/usr/src/sys/dev/disk/aic7xxx/aicasm -c aicasm_macro_scan.c -o aicasm_macro_scan.no CCVER=gcc41 OBJFORMAT_PATH=/ PATH=/usr/bin:/bin:/usr/sbin:/sbin cc -O -pipe -nostdinc -I/usr/include -I. -I/usr/obj/usr/src/sys/SYNERGY -I/usr/src/sys/dev/disk/aic7xxx/aicasm -static -o aicasm.nx aicasm.no aicasm_symbol.no aicasm_gram.no aicasm_macro_gram.no aicasm_scan.no aicasm_macro_scan.no -ll cd /usr/obj/usr/src/sys/SYNERGY; make KERNEL=kernel depend creating machine/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/machine/asm.h creating machine/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/machine/asmacros.h creating machine/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/machine/atomic.h creating machine/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/machine/bus_at386.h creating machine/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/machine/bus_dma.h creating machine/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/machine/coredump.h creating machine/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/machine/cpu.h creating machine/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/machine/cpufunc.h creating machine/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/machine/cputypes.h creating machine/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/machine/db_machdep.h creating machine/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/machine/elf.h creating machine/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/machine/endian.h creating machine/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/machine/exec.h creating machine/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/machine/float.h creating machine/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/machine/floatingpoint.h creating machine/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/machine/frame.h creating machine/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/machine/ieee.h creating machine/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/machine/ieeefp.h creating machine/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/machine/int_const.h creating machine/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/machine/int_limits.h creating machine/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/machine/inttypes.h creating machine/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/machine/limits.h creating machine/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/machine/math.h creating machine/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/machine/npx.h creating machine/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/machine/param.h creating machine/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/machine/perfmon.h creating machine/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/machine/pmap.h creating machine/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/machine/profile.h creating machine/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/machine/psl.h creating machine/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/machine/reg.h creating machine/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/machine/reloc.h creating machine/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/machine/segments.h creating machine/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/machine/setjmp.h creating machine/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/machine/sigframe.h creating machine/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/machine/signal.h creating machine/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/machine/specialreg.h creating machine/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/machine/stdarg.h creating machine/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/machine/stdint.h creating machine/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/machine/sysarch.h creating machine/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/machine/tls.h creating machine/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/machine/trap.h creating machine/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/machine/tss.h creating machine/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/machine/types.h creating machine/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/machine/ucontext.h creating machine/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/machine/varargs.h creating machine/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/machine/vframe.h creating machine/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/machine/vm86.h creating sys/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/aio.h creating sys/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/errno.h creating sys/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/fcntl.h creating sys/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/linker_set.h creating sys/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/poll.h creating sys/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/syslog.h creating sys/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/termios.h creating sys/ forwarding header /usr/obj/usr/src/sys/SYNERGY/include/ucontext.h cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Werror-implicit-function-declaration -std=c99 -g -nostdinc -I. -Iinclude -I/usr/src/sys -I/usr/include -I/usr/obj/usr/src/sys/SYNERGY -I"/usr/src/sys/dev/acpica5" -I"/usr/src/sys/contrib/dev/acpica-unix/include" -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/dev/netif/ath/hal -I/usr/src/sys/dev/netif/ath/hal/ath_hal -D_KERNEL -include opt_global.h -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -ffreestanding -mpreferred-stack-boundary=2 -fno-stack-protector -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 /usr/src/sys/platform/pc32/i386/genassym.c /usr/src/sys/platform/pc32/i386/genassym.c:1: error: -mpreferred-stack-boundary=2 is not between 4 and 12 *** Error code 1 Stop in /usr/obj/usr/src/sys/SYNERGY. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. # exit exit Script done, output file is 'typescript' Script done on Mon Oct 12 21:26:30 2009 -- Why exactly does the -mpreferred-stack-boundary=2 need to be between 4 and 12 ? Here is some process information, if this helps, hw.machine: amd64 hw.model: AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ hw.ncpu: 1 hw.machine_arch: amd64 thanks Saifi.