Subject: port-sparc/4198: Can't build a sun4c only kernel
To: None <gnats-bugs@gnats.netbsd.org>
From: Matthieu Herrb <matthieu@laas.fr>
List: netbsd-bugs
Date: 10/01/1997 14:57:14
>Number:         4198
>Category:       port-sparc
>Synopsis:       Can't build a sun4c only kernel
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct  1 06:05:01 1997
>Last-Modified:
>Originator:     
>Organization:
 Matthieu Herrb   |  e-mail: matthieu@laas.fr
 CNRS/LAAS        |     url: <A HREF="http://www.laas.fr/~matthieu">
 Toulouse, France |  War, what is it good for ? Absolutely nothing !
>Release:        NetBSD-current Sep 30, 1997
>Environment:
	
System: NetBSD abel 1.2G NetBSD 1.2G (ABEL) #1: Wed Oct 1 14:26:51 MEST 1997 matthieu@abel:/usr/src/sys/arch/sparc/compile/ABEL sparc


>Description:
	I cannot compile the kernel produced by the sun4c-only config
	file I use for a sun 4/40. It produces the following error:

cc  -O2 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -mno-fpu -I. -I../../../../arch -I../../../.. -nostdinc -DEXEC_AOUT -DEXEC_SCRIPT -DSUN4C -DKTRACE -DSYSVMSG -DSYSVSEM -DSYSVSHM -DLKM -DUCONSOLE -DCOMPAT_43 -DCOMPAT_10 -DCOMPAT_11 -DCOMPAT_12 -DCOMPAT_SUNOS -DCOMPAT_SVR4 -DEXEC_ELF32 -DFFS -DNFS -DMFS -DMSDOSFS -DFIFO -DINET -DPFIL_HOOKS -DIPFILTER -DIPFILTER_LOG -DPPP_FILTER -DRASTERCONSOLE -DMAXUSERS=16 -D_KERNEL  -c ../../../../arch/sparc/sparc/pmap.c
cc1: warnings being treated as errors
../../../../arch/sparc/sparc/pmap.c: In function `pmap_release':
../../../../arch/sparc/sparc/pmap.c:3775: warning: implicit declaration of function `pgtfree'
*** Error code 1

>How-To-Repeat:

Try to config and compile a kernel with the following configuration
file. the lines marked XXX where needed to get it compile

---Cut here---
include "arch/sparc/conf/std.sparc"

maxusers	16

options		SUN4C		# sun4c - SS1, 1+, 2, ELC, SLC, IPC, IPX, etc.
# XXXXXX options		SUN4M

# Standard system options
options		KTRACE		# system call tracing
options		SYSVMSG		# System V message queues
options		SYSVSEM		# System V semaphores
options		SYSVSHM		# System V shared memory
options		LKM		# loadable kernel modules
options	UCONSOLE	# allow anyone to steal the virtual console

# Compatibility options
options		COMPAT_43	# 4.3BSD system interfaces
options		COMPAT_10	# NetBSD 1.0 binary compatibility
options		COMPAT_11	# NetBSD 1.1 binary compatibility
options		COMPAT_12	# NetBSD 1.2 binary compatibility
options		COMPAT_SUNOS	# SunOS 4.x binary compatibility
options		COMPAT_SVR4	# SunOS 5.x binary compatibility
options		EXEC_ELF32	# Exec module for SunOS 5.x binaries.

# Filesystem options
file-system 	FFS		# Berkeley Fast Filesystem
file-system 	NFS		# Sun NFS-compatible filesystem client
file-system 	MFS		# memory-based filesystem
file-system 	MSDOSFS		# MS-DOS FAT filesystem(s).

options		FIFO		# POSIX fifo support (in all filesystems)

# Networking options
options		INET		# IP stack
options 	PFIL_HOOKS	# pfil(9) packet filter hooks.
options		IPFILTER
options		IPFILTER_LOG
options		PPP_FILTER

# Options for SPARCstation hardware
options		RASTERCONSOLE	# fast rasterop console

# Generic swap; second partition of root disk or network.
config		netbsd	root on ? type ?

# Main bus and CPU .. all systems.
mainbus0 at root
cpu0	at mainbus0

# XXXX iommu0	at mainbus0				# sun4m
# XXXX sbus0	at iommu0				# sun4m

# Bus types found on SPARC systems.
sbus0	at mainbus0				# sun4c

audioamd0	at mainbus0			# sun4c
audio*	at audioamd0

auxreg0	at mainbus0				# sun4c

# Mostek clock found on 4/300, sun4c, and sun4m systems.
# The Mostek clock NVRAM is the "eeprom" on sun4/300 systems.
clock0	at mainbus0				# sun4c

# Memory error registers.
memreg0	at mainbus0				# sun4c

# Timer chip found on 4/300, sun4c, and sun4m systems.
timer0	at mainbus0				# sun4c

# Zilog 8530 serial chips.  Each has two-channels.
# zs0 is ttya and ttyb.  zs1 is the keyboard and mouse.
zs0	at mainbus0					# sun4c
zs1	at mainbus0					# sun4c

# sun4c or sun4m SCSI - an NCR53c94 or equivalent behind
# specialized DMA glue
dma0	at sbus0 slot ? offset ?			# on-board SCSI
esp0	at sbus0 slot ? offset ? flags 0xff0f		# sun4c

# sun4/300 and sun4c Ethernet - an AMD 7990 LANCE
le0	at sbus0 slot ? offset ?			# sun4c on-board

# Sun "bwtwo" black and white framebuffer, found on sun4, sun4c, and sun4m
# systems.  If your sun4 system has a cgfour installed in the P4 slot,
# the P4 entries for "bwtwo" will attach to the overlay plane of the
# "cgfour".
bwtwo0	at sbus0 slot ? offset ?		# sun4c on-board


# Sun "cgthree" Sbus color framebuffer
cgthree0 at sbus? slot ? offset ?

# Sun "cgsix" accelerated color framebuffer.
cgsix0	at sbus? slot ? offset ?

# SCSI bus layer.  SCSI devices attach to the SCSI bus, which attaches
# to the underlying hardware controller.
scsibus* at esp?

# These entries find devices on all SCSI busses and assign
# unit numbers dynamically.
sd*	at scsibus? target ? lun ?		# SCSI disks
# st*	at scsibus? target ? lun ?		# SCSI tapes
# cd*	at scsibus? target ? lun ?		# SCSI CD-ROMs
# ch*	at scsibus? target ? lun ?		# SCSI changer devices

# Floppy controller and drive found on SPARCstations.
fdc0	at mainbus0				# sun4c controller
fd*	at fdc0					# the drive itself

pseudo-device	loop		# loopback interface; required
pseudo-device	pty	32	# pseudo-ttys (for network, etc.)
pseudo-device	kbd		# Sun keyboard
pseudo-device	ppp	2	# PPP interfaces
pseudo-device	bpfilter 16	# Berkeley Packet Filter
pseudo-device	vnd	4	# disk-like interface to files

pseudo-device	ipfilter		# ip filter
---Cut here---

>Fix:
	Don't know, sorry...

>Audit-Trail:
>Unformatted: