fangism/hackt — Issue #3: gawk rejects 'include' as a user-defined variable
Author: fangism
Created: 2012-02-22 22:52:33+00:00
State: open
Labels: build-portability

reported by Daniel Macks, at http://paste.lisp.org/display/127919

/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../src -I../../src -I/sw/include -I/sw/include -I/sw/include -pipe -ansi -pedantic-errors -Wold-style-cast -Woverloaded-virtual -W -Wextra -Wall -Wundef -Wshadow -Wno-unused-parameter -Wpointer-arith -Wcast-qual -Wcast-align -Wconversion -Werror -Wno-unused -Wno-old-style-cast -Wno-shadow -g -O2 -MT parser/libhacktparsers_la-hackt-parse-real.lo -MD -MP -MF parser/.deps/libhacktparsers_la-hackt-parse-real.Tpo -c -o parser/libhacktparsers_la-hackt-parse-real.lo `test -f 'parser/hackt-parse-real.cc' || echo '../../src/'`parser/hackt-parse-real.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../src -I../../src -I/sw/include -I/sw/include -I/sw/include -pipe -ansi -pedantic-errors -Wold-style-cast -Woverloaded-virtual -W -Wextra -Wall -Wundef -Wshadow -Wno-unused-parameter -Wpointer-arith -Wcast-qual -Wcast-align -Wconversion -Werror -Wno-unused -Wno-old-style-cast -Wno-shadow -g -O2 -MT parser/libhacktparsers_la-hackt-parse-real.lo -MD -MP -MF parser/.deps/libhacktparsers_la-hackt-parse-real.Tpo -c parser/hackt-parse-real.cc -fno-common -DPIC -o parser/.libs/libhacktparsers_la-hackt-parse-real.o
mv -f parser/.deps/libhacktparsers_la-hackt-parse-real.Tpo parser/.deps/libhacktparsers_la-hackt-parse-real.Plo
cat parser/hackt-parse.yy | grep -v "#include" | cpp -P | grep -v pragma | sed -e '/^%start/,$d' -e '/%{/,/%}/d' -e '/^[ \t]*$/d' > parser/hackt.types
basename="hackt" ; \
if test ! -s parser/$basename.types ; then /bin/echo "parser/$basename.types is empty!" ; exit 1 ; fi && gawk -f ../../src/parser/common-union-type.awk -f ../../src/parser/bison-union-type.awk -v yaccfile=parser/$basename.types -v include="AST/AST.h parser/$basename-parse-real.h lexer/hac_lex.h" -v namespace="HAC::parser HAC::lexer" -v token_enum=258 parser/$basename-parse.output > parser/hackt-union.cc
gawk: fatal: cannot use gawk builtin `include' as variable name
make[3]: *** [parser/hackt-union.cc] Error 2
make[2]: *** [all-recursive] Error 1