Subject: port-next68k/10409: locore.o: Undefined symbol `__TBIA' referenced from text segment
To: None <gnats-bugs@gnats.netbsd.org>
From: None <perseant@hitl.washington.edu>
List: netbsd-bugs
Date: 06/21/2000 14:32:12
>Number:         10409
>Category:       port-next68k
>Synopsis:       __TBIA used in locore, not defined for non-_MULTIPROCESSOR case
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    port-next68k-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 21 14:33:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Konrad Schroder
>Release:        2000/06/21
>Organization:
------------------------------------------------------------------------
Konrad Schroder          http://www.hitl.washington.edu/people/perseant/
Information Tech & Services   Box 352142 -or- 215 Fluke Hall, Mason Road
Human Interface Technology Lab                  University of Washington
Voice: 206.616.1478   FAX: 206.543.5380          Seattle, WA, 98195, USA
>Environment:
System: NetBSD previous.hitl.washington.edu 1.4P NetBSD 1.4P (GENERIC) #0: Wed Jan 12 23:15:55 EST 2000 dbj@mourning.zlz.net:/u1/next68k/obj.next68k/GENERIC next68k


>Description:
	When trying to compile a custom kernel (I think GENERIC too but
	I can't remember) the link never finishes.  I've been commenting
	out the "#ifdef _MULTI_CPU" in sys/arch/m68k/cacheops.c, but this
	should really be fixed for 1.5....
>How-To-Repeat:
	cd /usr/src/sys/arch/next68k/conf
	config PREVIOUS
	cd ../compile/PREVIOUS
	make

	In case I'm just being an idiot, PREVIOUS is an '040 cube:


	#
	# PREVIOUS
	#
	
	include "arch/next68k/conf/std.next68k"
	
	# Needs to be set per system.  i.e change these as you see fit
	maxusers	16
	
	# 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 	SHMMAXPGS=1024	# 1024 pages is the default
	
	#options 	LKM		# loadable kernel modules
	#options 	INSECURE	# disable kernel security level
	#options 	UCONSOLE	# Allow non-root TIOCCONS
	
	# Which kernel debugger?  Uncomment either this:
	options 	DDB
	options 	DEBUG		# kernel debugging code
	options 	DIAGNOSTIC	# extra kernel sanity checking
	options 	DDB_HISTORY_SIZE=100	# enable history editing in DDB
	
	# ... or these for KGDB (gdb remote target)
	#makeoptions DEBUG="-g"		# debugging symbols for gdb
	#options 	KGDB		# support for kernel gdb
	#options 	KGDBDEV=0xc01	# kgdb device number (dev_t)
	#options 	KGDBRATE=0x2580	# baud rate
	
	# Other debugging options
	options 	KMEMSTATS	# kernel memory statistics (vmstat -m)
	#options 	PMAP_DEBUG
	options 	SCSIDEBUG
	options 	SCSIVERBOSE		# Verbose SCSI errors
	options         SWAPDEBUG
	
	# Compatability options
	#options 	COMPAT_43	# and 4.3BSD and ...
	#options 	COMPAT_44	# and 4.4BSD and ...
	#options 	COMPAT_09	# NetBSD 0.9
	#options 	COMPAT_10	# NetBSD 1.0
	#options 	COMPAT_11	# NetBSD 1.1
	#options 	COMPAT_12	# NetBSD 1.2
	options 	COMPAT_13	# NetBSD 1.3
	options 	COMPAT_14	# NetBSD 1.4
	
	# @@ COMPAT_M68K4K doesn't compile because my egcs cross compiler isn't defining __m68k__
	#   I don't know whether the compiler is broken or whether 
	#    /sys/compat/m68k4k/m68k4k_exec.c should be updated.  -- dbj
	#options 	COMPAT_M68K4K	# compatibility with NetBSD/m68k4k binaries
	#options 	COMPAT_NOMID	# compatibility with 386BSD, BSDI, NetBSD 0.8,
	#options 	COMPAT_SUNOS	# can run SunOS 4.1.1 executables
	#options 	COMPAT_SVR4	# can run SVR4 executables
	#options 	COMPAT_LINUX	# can run Linux/m68k executables
	#options 	EXEC_ELF32	# 32-bit ELF executables (Linux, SVR4)
	
	# File systems
	#file-system 	FFS		# UFS
	#file-system 	EXT2FS		# second extended file system (linux)
	#file-system 	LFS		# log-structured file system
	#file-system 	MFS		# memory file system
	file-system 	NFS		# Network File System client
	#file-system 	CD9660		# ISO 9660 + Rock Ridge file system
	#file-system 	MSDOSFS		# MS-DOS file system
	file-system 	FDESC		# /dev/fd
	file-system 	KERNFS		# /kern
	file-system 	NULLFS		# loopback file system
	file-system 	PORTAL		# portal filesystem (still experimental)
	file-system 	PROCFS		# /proc
	file-system 	UMAPFS		# NULLFS + uid and gid remapping
	file-system 	UNION		# union file system
	
	#options 	NFSSERVER	# nfs server support
	#options 	QUOTA		# FFS quotas
	#options 	EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
					# immutable) behave as system flags.
	
	# Networking options
	#options 	GATEWAY		# packet forwarding
	options 	INET		# IP + ICMP + TCP + UDP
	#options 	MROUTING	# IP multicast routing
	#options 	NS		# XNS
	#options 	NSIP		# XNS tunneling over IP
	#options 	ISO,TPIP	# OSI
	#options 	EON		# OSI tunneling over IP
	#options 	CCITT,LLC,HDLC	# X.25
	#options 	NETATALK	# AppleTalk networking protocols
	#options 	PPP_BSDCOMP	# BSD-Compress compression support for PPP
	#options 	PPP_DEFLATE	# Deflate compression support for PPP
	#options 	PPP_FILTER	# Active filter support for PPP (requires bpf)
	#options 	PFIL_HOOKS	# pfil(9) packet filter hooks
	
	# Compatibility with 4.2BSD implementation of TCP/IP.  Not recommended.
	#options 	TCP_COMPAT_42
	
	# NeXT specific options
	options 	M68040
	#options 	M68030
	options 	FPSP
	#options 	FPU_EMULATE
	
	options         ZS_CONSOLE_ABORT
	#options        SERCONSOLE
	
	options 	NFS_BOOT_BOOTP
	#options 	NFS_BOOT_DHCP
	
	# wscons options
	options         RCONS_2BPP              # necessary for nextdisplay
	#options 	WSEMUL_SUN		# sun terminal emulation
	options 	WSEMUL_VT100		# VT100 / VT220 emulation
	options 	WSDISPLAY_COMPAT_SYSCONS	# emulate some ioctls
	options 	WSDISPLAY_COMPAT_USL		# VT handling
	options 	WSDISPLAY_COMPAT_RAWKBD	# can get raw scancodes
	# see dev/wskbdmap_next.h for implemented layouts
	#options 	PCKBD_LAYOUT="(KB_DE | KB_NODEAD)"
	
	config		netbsd root on ? type ?
	
	#
	# Device configuration
	#
	
	# The root node:
	mainbus0 at root
	
	#fpu0 at mainbus?
	
	# device space
	intio0  at mainbus?
	
	nextkbd0    at intio? ipl 3
	nextdisplay0    at mainbus?
	
	wsdisplay*      at nextdisplay? console ?
	wskbd*          at nextkbd? console ?
	
	# INTIO
	zsc0    at intio? ipl 5
	#zsc1    at intio? ipl 5
	
	xe*     at intio? ipl 3         # ethernet
	
	#esp0    at intio? ipl 3         flags 0xff00 # Turn off sync negotiation
	
	#
	# Serial ports
	#
	zstty0	at zsc0 channel 0	# ttya
	zstty1	at zsc0 channel 1	# ttyb
	
	# SCSI bus support
	#scsibus* at scsi?
	
	# SCSI devices
	#sd*	at scsibus? target ? lun ?	# SCSI disk drives
	#st*	at scsibus? target ? lun ?	# SCSI tape drives
	#cd*	at scsibus? target ? lun ?	# SCSI CD-ROM drives
	#ch*	at scsibus? target ? lun ?	# SCSI autochangers
	#se*	at scsibus? target ? lun ?	# SCSI ethernet
	#ss*	at scsibus? target ? lun ?	# SCSI scanners
	#uk*	at scsibus? target ? lun ?	# SCSI unknown
	
	
	# Memory-disk drivers
	pseudo-device	md		2
	
	# Misc.
	pseudo-device	loop		1	# network loopback
	pseudo-device	bpfilter	8	# packet filter
	#pseudo-device	sl		2	# CSLIP
	#pseudo-device	ppp		2	# PPP
	#pseudo-device	tun		2	# network tunneling over tty
	#pseudo-device	gre		2	# generic L3 over IP tunnel
	#pseudo-device	ipfilter		# ip filter
	# rnd is EXPERIMENTAL
	#pseudo-device	rnd			# /dev/random and in-kernel generator
	
	pseudo-device	pty		64	# pseudo-terminals
	pseudo-device	vnd		4	# paging to files
	#pseudo-device	raid		4	# RAIDframe disk driver
	#pseudo-device	ccd		4	# concatenated disks
>Fix:
	Remove calls to __TBIA in locore.s?
>Release-Note:
>Audit-Trail:
>Unformatted: