NetBSD Problem Report #35866
From www@NetBSD.org Wed Feb 28 02:13:01 2007
Return-Path: <www@NetBSD.org>
Received: by narn.NetBSD.org (Postfix, from userid 31301)
id 8512763B896; Wed, 28 Feb 2007 02:13:01 +0000 (UTC)
Message-Id: <20070228021301.8512763B896@narn.NetBSD.org>
Date: Wed, 28 Feb 2007 02:13:01 +0000 (UTC)
From: hbent@cs.oberlin.edu
Reply-To: hbent@cs.oberlin.edu
To: gnats-bugs@NetBSD.org
Subject: options DIAGNOSTIC does not work on vax -current
X-Send-Pr-Version: www-1.0
>Number: 35866
>Category: port-vax
>Synopsis: options DIAGNOSTIC does not work on vax -current
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: port-vax-maintainer
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Feb 28 02:15:00 +0000 2007
>Closed-Date: Sun Mar 04 07:29:32 +0000 2007
>Last-Modified: Sun Mar 04 07:30:01 +0000 2007
>Originator: Henry Bent
>Release: 4.99.13
>Organization:
Oberlin College CIT
>Environment:
NetBSD hbent3 4.99.9 NetBSD 4.99.9 (GENERIC.MPACPI) #1: Tue Jan 23 14:28:54 EST 2007 root@hbent3:/usr/obj/src-current/sys/arch/i386/compile/GENERIC.MPACPI i386
>Description:
-current from Feb 26 cannot build a kernel on vax if options DIAGNOSTIC is selected. Here is the error, with a config that is simply GENERIC + diagnostic:
# link DGENERIC/netbsd
/usr/obj/src-current/tooldir.NetBSD-4.99.9-i386/bin/vax--netbsdelf-ld -Map netbsd.map --cref -N -Ttext 80000000 -e start -S -o netbsd ${SYSTEM_OBJ} ${EXTRA_OBJ} vers.o
kern_mutex.o: In function `sched_lock_idle':
kern_mutex.c:(.text+0x16a): undefined reference to `Slocktry'
kern_mutex.o: In function `mutex_vector_exit':
kern_mutex.c:(.text+0x229): undefined reference to `Sunlock'
kern_mutex.o: In function `sched_unlock_idle':
kern_mutex.c:(.text+0x2ee): undefined reference to `Sunlock'
kern_mutex.o: In function `mutex_vector_enter':
kern_mutex.c:(.text+0x349): undefined reference to `Slocktry'
kern_mutex.c:(.text+0x3e0): undefined reference to `Slocktry'
kern_mutex.o: In function `mutex_tryenter':
kern_mutex.c:(.text+0x4b9): undefined reference to `Slocktry'
kern_mutex.c:(.text+0x510): undefined reference to `Slocktry'
>How-To-Repeat:
Turn on options DIAGNOSTIC in a vax kernel and try to compile it.
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: ragge@netbsd.org
State-Changed-When: Sun, 04 Mar 2007 07:29:32 +0000
State-Changed-Why:
Fixed, these routines are now included.
From: Anders Magnusson <ragge@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: PR/35866 CVS commit: src/sys/arch/vax
Date: Sun, 4 Mar 2007 07:28:13 +0000 (UTC)
Module Name: src
Committed By: ragge
Date: Sun Mar 4 07:28:13 UTC 2007
Modified Files:
src/sys/arch/vax/include: lock.h
src/sys/arch/vax/vax: subr.S
Log Message:
cpu_simple_lock() calls are emitted in the UP case if DEBUG || DIAGNOSTIC.
This should probably be fixed somewhere else, but currently just include
it here. Fixes PR#35866 from Henry R. Bent.
To generate a diff of this commit:
cvs rdiff -r1.24 -r1.25 src/sys/arch/vax/include/lock.h
cvs rdiff -r1.14 -r1.15 src/sys/arch/vax/vax/subr.S
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.