Subject: Re: should lint define __GNUC__?
To: john heasley <heas@shrubbery.net>
From: Todd Vierling <tv@wasabisystems.com>
List: current-users
Date: 10/22/2000 01:31:46
On Sat, 21 Oct 2000, john heasley wrote:
: i'm running 1.5A2 snapshot from ~6/20, and trying to build netbsd-1-5-BETA
: cvs sources from yesterday. /usr/bin/lint (from the snapshot or 1.5B) does
: not define __GNUC__; thus MKLINT=yes causes the build to bomb such as:
:
: lint -chapbxzF -d /u5/release-1.5B/usr/include -I/u5/1.5B/src/gnu/lib/libgcc/../../usr.bin/egcs/arch/sparc -I/u5/1.5B/src/gnu/lib/libgcc/../../usr.bin/egcs/arch -I/u5/1.5B/src/gnu/lib/libgcc/../../dist/gcc/config -I/u5/1.5B/src/gnu/lib/libgcc/../../dist/gcc/cp -I/u5/1.5B/src/gnu/lib/libgcc/../../dist/gcc -i /u5/1.5B/src/gnu/lib/libgcc/../../dist/gcc/frame.c
: In file included from /u5/1.5B/src/gnu/lib/libgcc/../../dist/gcc/config/sparc/xm-netbsd.h:3,
: from /u5/1.5B/src/gnu/lib/libgcc/../../usr.bin/egcs/arch/sparc/tconfig.h:3,
: from /u5/1.5B/src/gnu/lib/libgcc/../../dist/gcc/frame.c:34:
: /u5/1.5B/src/gnu/lib/libgcc/../../dist/gcc/config/sparc/xm-sparc.h:48: alloca.h: No such file or directory
: In file included from /u5/1.5B/src/gnu/lib/libgcc/../../dist/gcc/frame.c:49:
: /u5/1.5B/src/gnu/lib/libgcc/../../dist/gcc/gansidecl.h:50: warning: `__attribute__' redefined
: /u5/release-1.5B/usr/include/sys/cdefs.h:157: warning: this is the location of the previous definition
egcs 1.1.x is definitely not lint-clean; that much said:
: cc defines __GNUC__. why wouldnt/shouldnt lint?
Because lint doesn't understand a variety of GCC extensions.
: is MKLINT=yes not normal practice?
MKLINT=yes is turned on in places where it is supposed to work
automatically. It should not be in mk.conf; it is in <bsd.lib.mk> and some
specific Makefiles.
--
-- Todd Vierling <tv@wasabisystems.com> * http://www.wasabisystems.com/
-- Speed, stability, security, and support. Wasabi NetBSD: Run with it.