Subject: UVM build problem
To: None <current-users@NetBSD.ORG>
From: Brad Salai <bsalai@tmonline.com>
List: current-users
Date: 02/09/1998 13:28:51
I tried to build a sparc kernel with UVM support and got the following:

law:APOLLO {116} make
making sure the kern library is up to date...
`libkern.o' is up to date.
making sure the compat library is up to date...
`libcompat.a' is up to date.
sh ../../../../conf/newvers.sh
cc  -O2 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -mno-fpu -I.
-I..
/../../../arch -I../../../.. -nostdinc -DSUN4C -DRASTERCONSOLE -DUVM
-DKTRACE -D
SYSVMSG -DSYSVSEM -DSYSVSHM -DLKM -DCOMPAT_43 -DCOMPAT_10 -DCOMPAT_11
-DCOMPAT_1
2 -DCOMPAT_13 -DCOMPAT_SUNOS -DCOMPAT_SVR4 -DFFS -DNFS -DKERNFS -DNULLFS
-DMFS -
DFDESC -DUMAPFS -DLFS -DPORTAL -DPROCFS -DCD9660 -DUNION -DMSDOSFS
-DNFSSERVER -
DQUOTA -DFIFO -DINET -DGATEWAY -DNS -DISO -DTPIP -DEON -DNETATALK -DNTP
-DIPFILT
ER_LOG -DMAXUSERS=32 -D_KERNEL  -c vers.c
ld -N -p -Ttext F0004000 -e start -S -o netbsd ${SYSTEM_OBJ} vers.o
kern_malloc.o: Undefined symbol `_kmem_malloc' referenced from text segment
kern_malloc.o: Undefined symbol `_kmem_free' referenced from text segment
kern_malloc.o: Undefined symbol `_kmem_alloc' referenced from text segment
kern_malloc.o: Undefined symbol `_kmem_suballoc' referenced from text segment
procfs_fpregs.o: Undefined symbol `_swapin' referenced from text segment
procfs_regs.o: Undefined symbol `_swapin' referenced from text segment
if_ethersubr.o: Undefined symbol `_raise' referenced from text segment
if_ethersubr.o: Undefined symbol `_raise' referenced from text segment
if_ethersubr.o: Undefined symbol `_raise' referenced from text segment
if_ethersubr.o: Undefined symbol `_raise' referenced from text segment
if_ethersubr.o: Undefined symbol `_raise' referenced from text segment
if_ethersubr.o: Undefined symbol `_raise' referenced from text segment
if_loop.o: Undefined symbol `_raise' referenced from text segment
if_sl.o: Undefined symbol `_raise' referenced from text segment
if_ppp.o: Undefined symbol `_raise' referenced from text segment
if_ppp.o: More undefined symbol _raise refs follow
lfs_alloc.o: Undefined symbol `_vnode_pager_setsize' referenced from text
segmen
t
lfs_alloc.o: Undefined symbol `_vnode_pager_uncache' referenced from text
segmen
t
lfs_inode.o: Undefined symbol `_vnode_pager_setsize' referenced from text
segmen
t
lfs_inode.o: Undefined symbol `_vnode_pager_uncache' referenced from text
segmen
t
if_ie_obio.o: Undefined symbol `_vm_map_create' referenced from text segment
if_ie_obio.o: Undefined symbol `_kmem_alloc' referenced from text segment
if_ie_obio.o: Undefined symbol `_pmap_extract_p' referenced from text segment
if_ie_obio.o: Undefined symbol `_pmap_extract_p' referenced from text segment
if_ie_obio.o: Undefined symbol `_page_mask' referenced from text segment
if_ie_obio.o: Undefined symbol `_page_mask' referenced from text segment
if_ie_obio.o: Undefined symbol `_pmap_enter_p' referenced from text segment
if_ie_obio.o: Undefined symbol `_pmap_enter_p' referenced from text segment
trap.o: Undefined symbol `_page_mask' referenced from text segment
trap.o: Undefined symbol `_page_mask' referenced from text segment
trap.o: Undefined symbol `_vm_fault' referenced from text segment
trap.o: Undefined symbol `_vm_fault' referenced from text segment
trap.o: Undefined symbol `_page_mask' referenced from text segment
trap.o: Undefined symbol `_page_mask' referenced from text segment
trap.o: Undefined symbol `_vm_fault' referenced from text segment
trap.o: Undefined symbol `_vm_fault' referenced from text segment
svr4_misc.o: Undefined symbol `_page_mask' referenced from text segment
svr4_misc.o: Undefined symbol `_page_mask' referenced from text segment
svr4_misc.o: Undefined symbol `_page_mask' referenced from text segment
svr4_misc.o: More undefined symbol _page_mask refs follow
svr4_misc.o: Undefined symbol `_vm_allocate' referenced from text segment
svr4_misc.o: Undefined symbol `_vm_deallocate' referenced from text segment
kern_info_43.o: Undefined symbol `_vm_sysctl' referenced from text segment
*** Error code 1

Stop.

I set up the config file like this:

## Virtual memory configuration.  There are two choices, the old Mach
## based VM system, or the new UVM system.  Old VM requires the pager
## options.
#options        OLDVM           # MACH VM
#options         SWAPPAGER       # swap paging
#options         DEVPAGER        # paging to devices
#options         VNODEPAGER      # paging to vnodes
options         UVM             # UVM VM

but there is some strangeness, if I try with the pager options set, like this:

config          netbsd  root on ? type ?

## Virtual memory configuration.  There are two choices, the old Mach
## based VM system, or the new UVM system.  Old VM requires the pager
## options.
#options        OLDVM           # MACH VM
options         SWAPPAGER       # swap paging
options         DEVPAGER        # paging to devices
options         VNODEPAGER      # paging to vnodes
options         UVM             # UVM VM
APOLLO: 482 lines, 17160 characters
law:conf {113} config APOLLO
APOLLO:41: already have options `SWAPPAGER'
APOLLO:42: already have options `DEVPAGER'
APOLLO:43: already have options `VNODEPAGER'
*** Stop.

Which looks like they are being set elsewhere.

Any thoughts?

Brad

Stephen B. Salai                            Phone (716) 325-5553
Cumpston & Shaw                             Fax    (716) 262-3906
Two State Street                            email bsalai@tmonline.com
Rochester, NY 14614