From nobody@FreeBSD.org  Sat Jul 14 15:52:30 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 2EBE1106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 14 Jul 2012 15:52:30 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 1952A8FC12
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 14 Jul 2012 15:52:30 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q6EFqTrI030855
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 14 Jul 2012 15:52:29 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q6EFqScs030854;
	Sat, 14 Jul 2012 15:52:28 GMT
	(envelope-from nobody)
Message-Id: <201207141552.q6EFqScs030854@red.freebsd.org>
Date: Sat, 14 Jul 2012 15:52:28 GMT
From: Geoffrey Lassner <freebsd83-pae-emu10k1@zyni.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: kernel compile fails for PAE with device sound and device snd_emu10k1 
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         169857
>Category:       misc
>Synopsis:       [build] kernel compile fails for PAE with device sound and device snd_emu10k1
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 14 16:00:10 UTC 2012
>Closed-Date:    
>Last-Modified:  Sun Jul 15 02:47:29 UTC 2012
>Originator:     Geoffrey Lassner
>Release:        8.3-RELEASE-p3
>Organization:
self
>Environment:
FreeBSD northwest.zyni.com 8.3-RELEASE-p3 FreeBSD 8.3-RELEASE-p3 #2: Wed Jul 11 22:23:27 MDT 2012     root@northwest.zyni.com:/usr/src/sys/i386/compile/NORTHWEST-PAE  i386
>Description:
I had some existing hardware (1U intel sr1300 servers) that I was trying to add
sound cards to.  Unfortunately, I am limited to sound cards that have the 3.3V pci notch in them otherwise I would just use different soundcards.  I have verified the cards work fine if they are loaded as modules with a non-PAE kernel.

PAE kernels with "device sound" and "device snd_emu10k1" will


>How-To-Repeat:

Take the stock PAE config file and add the "sound" and "snd_emu10k1" devices:

# diff PAE PAE_emu10k1    
23a24,26
> device                sound
> device                snd_emu10k1
> 
#



config PAE_emu10k1
cd /sys/i386/compile/PAE_emu10k1
make cleandepend && make depend && make

<output omitted>

cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc  -I. -I../../.. -I../../../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 -fstack-protector -Werror  ../../../dev/sound/pci/emu10k1.c
cc1: warnings being treated as errors
./../../dev/sound/pci/emu10k1.c: In function 'emu_memalloc':
./../../dev/sound/pci/emu10k1.c:1381: warning: cast to pointer from integer of different size
*** Error code 1

Stop in /usr/src/sys/i386/compile/PAE_emu10k1.
#

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:
