PAE Compilation Error

David Alanis canito at dalan.us
Wed Jul 9 21:41:29 UTC 2008


Good Day,

I suppose now I am paying for questioning TUC's credibility huh?!?!? (jk)

In the process of building an older server running 7.0-RELEASE  
:/usr/obj/usr/src/sys/SERVER  i386 on a HP Proliant D380 G3 (CPU:  
Intel(R) Xeon(TM) CPU 2.40GHz (2387.05-MHz 686-class CPU). After some  
research I come to find out having RAM over 4 gigs can have side  
effects and I will need to compile PAE with the kernel (this is a  
given). I've also come to find my set up can only handle up to 6 gigs  
of RAM and it's currently at 5.

However, when I compile PAE on this machine the kernel build crashes  
with the following:

n -fformat-extensions -c /usr/src/sys/modules/rum/../../dev/usb/if_rum.c
ld  -d -warn-common -r -d -o if_rum.kld if_rum.o
:> export_syms
awk -f /usr/src/sys/modules/rum/../../conf/kmod_syms.awk if_rum.kld   
export_syms | xarg                          s -J% objcopy % if_rum.kld
ld -Bshareable  -d -warn-common -o if_rum.ko.debug if_rum.kld
objcopy --only-keep-debug if_rum.ko.debug if_rum.ko.symbols
objcopy --strip-debug --add-gnu-debuglink=if_rum.ko.symbols  
if_rum.ko.debug if_rum.ko
===> s3 (all)
/usr/local/libexec/ccache/world-cc -O2 -fno-strict-aliasing -pipe   
-D_KERNEL -DKLD_MODU                          LE -std=c99 -nostdinc    
-DHAVE_KERNEL_OPTION_HEADERS -include /usr/obj/usr/src/sys/SERV         
                   ER/opt_global.h -I. -I@ -I@/contrib/altq  
-finline-limit=8000 --param inline-unit-growth                          
  =100 --param large-function-growth=1000 -fno-common -g  
-I/usr/obj/usr/src/sys/SERVER -m                           
no-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx  
-mno-3dnow -mno-sse -mno-s                          se2 -mno-sse3  
-ffreestanding -Wall -Wredundant-decls -Wnested-externs  
-Wstrict-prototyp                          es  -Wmissing-prototypes  
-Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sig          
                  n -fformat-extensions -c  
/usr/src/sys/modules/s3/../../dev/fb/s3_pci.c
/usr/src/sys/modules/s3/../../dev/fb/s3_pci.c:394: error: conflicting  
types for 's3lfb_                          mmap'
/usr/src/sys/modules/s3/../../dev/fb/s3_pci.c:116: error: previous  
declaration of 's3lf                          b_mmap' was here
/usr/src/sys/modules/s3/../../dev/fb/s3_pci.c: In function 's3lfb_mmap':
/usr/src/sys/modules/s3/../../dev/fb/s3_pci.c:395: warning: passing  
argument 3 of 'prev                          vidsw->mmap' from  
incompatible pointer type
*** Error code 1

Stop in /usr/src/sys/modules/s3.
*** Error code 1

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

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

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

Stop in /usr/src.

I have a messy make.conf but I don't think this would be the issue  
hence it's worked on different servers tweak to fit them ofcourse:

#CPUTYPE?=athlon-xp
CFLAGS= -O2 -fno-strict-aliasing -pipe
MAKE_SHELL?=sh
COPTFLAGS= -O -pipe
KERNCONF=SERVER

The only hit I get on google is this which really does not solve my  
issue or I am not reading this correctly?

http://www.bsdforums.org/forums/archive/index.php/t-34088.html

Does anyone have any experience with this that can help?

Thank you,

David






----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



More information about the freebsd-questions mailing list