So I'm following the Linux From Scratch book and am in chapter 5.17 Bison-3.0.4.
The book instructs us to do a make check
after make
to test the result of the compiled Bison package.
Initially, I was getting the following error:
make[3]: Entering directory `/sources/bison-3.0'
LEX examples/calc++/calc++-scanner.cc
CXX
examples/calc++/examples_calc___calc__-calc++-scanner.o
g++: error: ./examples/calc++/calc++-scanner.cc: No such file or directory
g++: fatal error: no input files
compilation terminated.
make[3]: ***
[examples/calc++/examples_calc___calc__-calc++-scanner.o] Error 1
make[3]: Leaving directory `/sources/bison-3.0'
make[2]: *** [check-am] Error 2
make[2]: Leaving directory `/sources/bison-3.0'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/sources/bison-3.0'
make: *** [check] Error 2
But got a solution on this website. Which told me to do the following before issuing make check
:
cp Makefile Makefile.bak
sed -i '/calc++/d' Makefile
make check
This solved the issue and all checks were getting a green ok
apart from the following three FAILED
checks:
430: Variants lalr1.cc parse.assert api.token.constructor FAILED (c++.at:374)
431: Variants lalr1.cc parse.assert api.token.constructor api.token.prefix={TOK_} FAILED (c++.at:375)
432: Variants lalr1.cc parse.assert api.token.constructor api.token.prefix={TOK_} %locations FAILED (c++.at:376)
I tried searching on Google but get nothing.
Any ideas?