Subject: cross build hpcmips on Linux host fails with YACC= nothing
To: None <tech-toolchain@NetBSD.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-toolchain
Date: 04/27/2005 23:42:16
Please CC me on replies.

/bin/sh
/home/reed/netbsd/src/tools/binutils/../../gnu/dist/binutils/gas/../ylwr
ap ""
/home/reed/netbsd/src/tools/binutils/../../gnu/dist/binutils/gas/itbl-pars
e.y y.tab.c itbl-parse.c y.tab.h itbl-parse.h -- -d
/home/reed/netbsd/src/tools/binutils/../../gnu/dist/binutils/gas/../ylwrap:
line
 86: -d: command not found

This can be seen in my
/netbsd/hpcmips/obj/tools/binutils/build/gas/Makefile
which has:

itbl-parse.c itbl-parse.h: $(srcdir)/itbl-parse.y
        $(SHELL) $(YLWRAP) "$(YACC)" $(srcdir)/itbl-parse.y y.tab.c itbl-parse.c y.tab.h itbl-parse.h -- -d

For some reason that $(YACC) is not expanded.

Earlier same Makefile has:

YACC = `if [ -f ../bison/bison ] ; then echo ../bison/bison -y
-L../bison/bison ; else echo /netbsd/hpcmips/tools/bin/nbyacc ; fi`

The config.log (in same directory) says:

ac_cv_prog_YACC=/netbsd/hpcmips/tools/bin/nbyacc
...
YACC='/netbsd/hpcmips/tools/bin/nbyacc'

My build logs show:

YACC=/netbsd/hpcmips/tools/bin/nbyacc

This nbyacc does exist.

Any ideas?

Please carbon copy me on replies. Thank you.

 Jeremy C. Reed

 	  	 	 open source, Unix, *BSD, Linux training
	  	 	 http://www.pugetsoundtechnology.com/