From nobody@FreeBSD.org  Wed Jul 15 06:40:17 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 01008106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 15 Jul 2009 06:40:17 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id E13238FC12
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 15 Jul 2009 06:40:16 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n6F6eGaf042395
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 15 Jul 2009 06:40:16 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n6F6eGw0042394;
	Wed, 15 Jul 2009 06:40:16 GMT
	(envelope-from nobody)
Message-Id: <200907150640.n6F6eGw0042394@www.freebsd.org>
Date: Wed, 15 Jul 2009 06:40:16 GMT
From: Cristopher Atienza <cfatienza@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Building new Kernel with PF and PAE support failed on FreeBSD 7.2-RELEASE-p2
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         136777
>Category:       kern
>Synopsis:       [build] Building new Kernel with PF and PAE support failed on FreeBSD 7.2-RELEASE-p2
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 15 06:50:01 UTC 2009
>Closed-Date:    Sun Feb 19 19:39:02 UTC 2012
>Last-Modified:  Sun Feb 19 19:39:02 UTC 2012
>Originator:     Cristopher Atienza
>Release:        FreeBSD 7.2-RELEASE-p2
>Organization:
DirectWithHotels Ltd
>Environment:
FreeBSD cfatechz.com 7.2-RELEASE-p2 FreeBSD 7.2-RELEASE-p2 #0: Wed Jun 24 00:57:44 UTC 2009     root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
Building new Kernel with PF and PAE support failed on FreeBSD 7.2-RELEASE-p2

1. Added the following line entries on /usr/src/sys/i386/conf/CUSTOM file

ident         CUSTOM

device pf
device pflog
device pfsync

options         ALTQ
options         ALTQ_CBQ        # Class Bases Queuing (CBQ)
options         ALTQ_RED        # Random Early Detection (RED)
options         ALTQ_RIO        # RED In/Out
options         ALTQ_HFSC       # Hierarchical Packet Scheduler (HFSC)
options         ALTQ_PRIQ       # Priority Queuing (PRIQ)
options         ALTQ_NOPCC      # Required for SMP build

options         PAE                     # Physical Address Extensions Kernel
..

2. Starting building new kernel with PF support and PAE.

cfatechz.com /usr/src # make buildkernel KERNCONF=CUSTOM

...
cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-protot                        ypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointe                        r-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq                         -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-l                        imit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-al                        ign-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse                        2 -mno-sse3 -ffreestanding -Werror  /usr/src/sys/cam/scsi/scsi_low.c
cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-protot                        ypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointe                        r-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq                         -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-l                        imit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-al                        ign-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse                        2 -mno-sse3 -ffreestanding -Werror  /usr/src/sys/cam/scsi/scsi_low_pisa.c
cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-protot                        ypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointe                        r-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq                         -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-l                        imit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-al                        ign-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse                        2 -mno-sse3 -ffreestanding -Werror  /usr/src/sys/cam/scsi/scsi_pass.c
cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-protot                        ypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointe                        r-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq                         -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-l                        imit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-al                        ign-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse                        2 -mno-sse3 -ffreestanding -Werror  /usr/src/sys/cam/scsi/scsi_sa.c
cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-protot                        ypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointe                        r-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq                         -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-l                        imit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-al                        ign-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse                        2 -mno-sse3 -ffreestanding -Werror  /usr/src/sys/cam/scsi/scsi_ses.c
cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-protot                        ypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointe                        r-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq                         -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-l                        imit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-al                        ign-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse                        2 -mno-sse3 -ffreestanding -Werror  /usr/src/sys/crypto/rijndael/rijndael-alg-fst.c
cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-protot                        ypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointe                        r-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq                         -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-l                        imit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-al                        ign-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse                        2 -mno-sse3 -ffreestanding -Werror  /usr/src/sys/crypto/rijndael/rijndael-api-fst.c
cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-protot                        ypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointe                        r-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq                         -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-l                        imit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-al                        ign-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse                        2 -mno-sse3 -ffreestanding -Werror  /usr/src/sys/crypto/rijndael/rijndael-api.c
cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-protot                        ypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointe                        r-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq                         -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-l                        imit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-al                        ign-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse                        2 -mno-sse3 -ffreestanding -Werror  /usr/src/sys/crypto/sha1.c
cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-protot                        ypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointe                        r-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq                         -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-l                        imit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-al                        ign-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse                        2 -mno-sse3 -ffreestanding -Werror  /usr/src/sys/crypto/sha2/sha2.c
cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-protot                        ypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointe                        r-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq                         -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-l                        imit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-al                        ign-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse                        2 -mno-sse3 -ffreestanding -Werror  /usr/src/sys/dev/aac/aac.c
cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-protot                        ypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointe                        r-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq                         -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-l                        imit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-al                        ign-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse                        2 -mno-sse3 -ffreestanding -Werror  /usr/src/sys/dev/aac/aac_cam.c
cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-protot                        ypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointe                        r-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq                         -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-l                        imit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-al                        ign-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse                        2 -mno-sse3 -ffreestanding -Werror  /usr/src/sys/dev/aac/aac_debug.c
cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-protot                        ypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointe                        r-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq                         -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-l                        imit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-al                        ign-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse                        2 -mno-sse3 -ffreestanding -Werror  /usr/src/sys/dev/aac/aac_disk.c
cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-protot                        ypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointe                        r-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq                         -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-l                        imit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-al                        ign-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse                        2 -mno-sse3 -ffreestanding -Werror  /usr/src/sys/dev/aac/aac_pci.c
cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-protot                        ypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointe                        r-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq                         -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-l                        imit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-al                        ign-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse                        2 -mno-sse3 -ffreestanding -Werror  /usr/src/sys/dev/advansys/adv_eisa.c
cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-protot                        ypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointe                        r-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq                         -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-l                        imit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-al                        ign-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse                        2 -mno-sse3 -ffreestanding -Werror  /usr/src/sys/dev/advansys/adv_pci.c
cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-protot                        ypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointe                        r-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq                         -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-l                        imit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-al                        ign-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse                        2 -mno-sse3 -ffreestanding -Werror  /usr/src/sys/dev/advansys/advansys.c
cc1: warnings being treated as errors
/usr/src/sys/dev/advansys/advansys.c: In function 'adv_action':
/usr/src/sys/dev/advansys/advansys.c:259: warning: cast from pointer to integer of d                        ifferent size
*** Error code 1

Stop in /usr/obj/usr/src/sys/CUSTOM.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.

cfatechz.com /usr/src #
....

>How-To-Repeat:
Building new Kernel with PF and PAE support failed on FreeBSD 7.2-RELEASE-p2

1. Added the following line entries on /usr/src/sys/i386/conf/CUSTOM file

ident         CUSTOM

device pf
device pflog
device pfsync

options         ALTQ
options         ALTQ_CBQ        # Class Bases Queuing (CBQ)
options         ALTQ_RED        # Random Early Detection (RED)
options         ALTQ_RIO        # RED In/Out
options         ALTQ_HFSC       # Hierarchical Packet Scheduler (HFSC)
options         ALTQ_PRIQ       # Priority Queuing (PRIQ)
options         ALTQ_NOPCC      # Required for SMP build

options         PAE                     # Physical Address Extensions Kernel
..

2. Starting building new kernel with PF support and PAE.

cfatechz.com /usr/src # make buildkernel KERNCONF=CUSTOM

...
cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-protot                        ypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointe                        r-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq                         -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-l                        imit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-al                        ign-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse                        2 -mno-sse3 -ffreestanding -Werror  /usr/src/sys/cam/scsi/scsi_low.c
cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-protot                        ypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointe                        r-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq                         -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-l                        imit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-al                        ign-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse                        2 -mno-sse3 -ffreestanding -Werror  /usr/src/sys/cam/scsi/scsi_low_pisa.c
cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-protot                        ypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointe                        r-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq                         -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-l                        imit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-al                        ign-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse                        2 -mno-sse3 -ffreestanding -Werror  /usr/src/sys/cam/scsi/scsi_pass.c
cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-protot                        ypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointe                        r-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq                         -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-l                        imit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-al                        ign-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse                        2 -mno-sse3 -ffreestanding -Werror  /usr/src/sys/cam/scsi/scsi_sa.c
cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-protot                        ypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointe                        r-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq                         -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-l                        imit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-al                        ign-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse                        2 -mno-sse3 -ffreestanding -Werror  /usr/src/sys/cam/scsi/scsi_ses.c
cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-protot                        ypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointe                        r-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq                         -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-l                        imit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-al                        ign-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse                        2 -mno-sse3 -ffreestanding -Werror  /usr/src/sys/crypto/rijndael/rijndael-alg-fst.c
cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-protot                        ypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointe                        r-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq                         -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-l                        imit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-al                        ign-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse                        2 -mno-sse3 -ffreestanding -Werror  /usr/src/sys/crypto/rijndael/rijndael-api-fst.c
cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-protot                        ypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointe                        r-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq                         -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-l                        imit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-al                        ign-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse                        2 -mno-sse3 -ffreestanding -Werror  /usr/src/sys/crypto/rijndael/rijndael-api.c
cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-protot                        ypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointe                        r-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq                         -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-l                        imit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-al                        ign-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse                        2 -mno-sse3 -ffreestanding -Werror  /usr/src/sys/crypto/sha1.c
cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-protot                        ypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointe                        r-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq                         -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-l                        imit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-al                        ign-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse                        2 -mno-sse3 -ffreestanding -Werror  /usr/src/sys/crypto/sha2/sha2.c
cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-protot                        ypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointe                        r-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq                         -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-l                        imit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-al                        ign-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse                        2 -mno-sse3 -ffreestanding -Werror  /usr/src/sys/dev/aac/aac.c
cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-protot                        ypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointe                        r-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq                         -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-l                        imit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-al                        ign-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse                        2 -mno-sse3 -ffreestanding -Werror  /usr/src/sys/dev/aac/aac_cam.c
cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-protot                        ypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointe                        r-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq                         -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-l                        imit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-al                        ign-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse                        2 -mno-sse3 -ffreestanding -Werror  /usr/src/sys/dev/aac/aac_debug.c
cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-protot                        ypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointe                        r-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq                         -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-l                        imit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-al                        ign-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse                        2 -mno-sse3 -ffreestanding -Werror  /usr/src/sys/dev/aac/aac_disk.c
cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-protot                        ypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointe                        r-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq                         -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-l                        imit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-al                        ign-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse                        2 -mno-sse3 -ffreestanding -Werror  /usr/src/sys/dev/aac/aac_pci.c
cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-protot                        ypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointe                        r-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq                         -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-l                        imit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-al                        ign-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse                        2 -mno-sse3 -ffreestanding -Werror  /usr/src/sys/dev/advansys/adv_eisa.c
cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-protot                        ypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointe                        r-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq                         -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-l                        imit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-al                        ign-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse                        2 -mno-sse3 -ffreestanding -Werror  /usr/src/sys/dev/advansys/adv_pci.c
cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-protot                        ypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointe                        r-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq                         -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-l                        imit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-al                        ign-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse                        2 -mno-sse3 -ffreestanding -Werror  /usr/src/sys/dev/advansys/advansys.c
cc1: warnings being treated as errors
/usr/src/sys/dev/advansys/advansys.c: In function 'adv_action':
/usr/src/sys/dev/advansys/advansys.c:259: warning: cast from pointer to integer of d                        ifferent size
*** Error code 1

Stop in /usr/obj/usr/src/sys/CUSTOM.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.

cfatechz.com /usr/src #
....

>Fix:


>Release-Note:
>Audit-Trail:

From: Manolis Kiagias <sonic2000gr@gmail.com>
To: Cristopher Atienza <cfatienza@gmail.com>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/136777: Building new Kernel with PF and PAE support failed
 on	FreeBSD 7.2-RELEASE-p2
Date: Wed, 15 Jul 2009 10:46:37 +0300

 It seems that your build failed in the advansys driver.  This should not
 normally be in a PAE kernel. Did you start your CUSTOM kernel with
 /usr/src/sys/i386/conf/PAE as the base? There are a number of drivers in
 GENERIC that are not allowed to exist in PAE. Advansys is one of them
 (there is a 'nodevice adv' in /usr/src/sys/i386/conf/PAE).
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Sun Feb 19 19:38:29 UTC 2012 
State-Changed-Why:  
Surely by now this problem has been fixed.  Sorry this PR sat for so long. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=136777 
>Unformatted:
