Subject: toolchain/15001: lint.7 is not built when objdirs are in use.
To: None <gnats-bugs@gnats.netbsd.org>
From: Nathan J. Williams <nathanw@speedy-gonzales.putnam>
List: netbsd-bugs
Date: 12/18/2001 17:46:04
>Number:         15001
>Category:       toolchain
>Synopsis:       lint.7 is not built when objdirs are in use.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 18 14:47:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Nathan J. Williams
>Release:        NetBSD 1.5Z
>Organization:
	
>Environment:
	
	
System: NetBSD speedy-gonzales.putnam 1.5Z NetBSD 1.5Z (SPEEDY) #132: Fri Dec 14 16:09:33 EST 2001 nathanw@speedy-gonzales.putnam:/u1/build/SPEEDY macppc
Architecture: powerpc
Machine: macppc
>Description:

When objdirs are in use in the build system, the lint.7 man
page gets created incorrectly; rev 1.21 of
src/usr.bin/xlint/lint1/Makefile stopped using ${.OBJDIR} to find
lint1, but didn't replace it with anything better.


>How-To-Repeat:

Run build.sh with objdirs set up in /etc/mk.conf:

OBJMACHINE=1
USR_OBJMACHINE=1
BSDSRCDIR=/d/nbsd/src
BSDOBJDIR=/build/obj

Note that the installed lint.7 page is a stub, and doesn't actually
list any of the errors (usually generated from "lint1 -m" output).

>Fix:

Use the host-tool lint1 to generate lint.7 to solve this and
be cross-compile safe.

(PR bin/11563 is also open on the topic of lint's cross-safety)
>Release-Note:
>Audit-Trail:
>Unformatted: