Re: Yacc in 2.4.3 causes kernel compile to fail (aicasm_gram.y)

H. Peter Anvin (hpa@zytor.com)
13 Apr 2001 12:38:04 -0700


Followup to: <061f01c0c3d8$c34e8870$5c044589@legato.com>
By author: "David E. Weekly" <dweekly@legato.com>
In newsgroup: linux.dev.kernel
>
> This is the first time I remember seeing a Yacc file in the Linux kernel
> source code, but I'm young and stupid.
>
> Since the default Makefile mapping for .y files is to call yacc, and since I
> have bison on my system instead, compiling the aic7xxx code into 2.4.3 broke
> my build.
>

It's a good idea if you have bison installed to have a /usr/bin/yacc
containing:

#!/bin/sh -
exec bison -y "$@"

I think there is a reasonably good expectation that the command "yacc"
should do what is expected, without needing any special hacks for
bison -- unless, of course, you're using bison special features.

-hpa

-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/