On Thu, Aug 17, 2017 at 10:39:15PM -0400, Alain Toussaint wrote:
> Quick recommendation, if you build bison before flex and then, build
> flex after, delete the bison source tree and restart the build from
> scratch. I have found out that the configure script for bison need to
> pick up flex for the testsuite to run.
> 
> Alain
> 

(I've left the failure below, since Alain accidentally top-posted).
But I'm not interested in rebuilding bison just so that it will pass
its testsuite - the book says:

"There is a circular dependency between bison and flex with regard to
the checks. If desired, after installing flex in the next section,
the bison checks can be run with make check."

Should we not add that the calc++-scanner.cc test program *will* fail
to compile because flex was not around when it was configured ?

> 2017-08-17 22:15 GMT-04:00 Ken Moffat <[email protected]>:
> > On Thu, Aug 17, 2017 at 05:29:29AM +0100, Ken Moffat wrote:
> >
> > 3. I thought I'd botched bison and tried to run the tests before
> > flex, but I was mistaken and I did run the tests *after* flex.
> > But they failed -
> >
> > make[3]: 'tests/atlocal' is up to date.
> > make[3]: Entering directory '/building/bison-3.0.4'
> >   YACC     examples/calc++/calc++-parser.stamp
> > make[3]: Leaving directory '/building/bison-3.0.4'
> > make[3]: Entering directory '/building/bison-3.0.4'
> >   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]: *** [Makefile:4081:
> > examples/calc++/examples_calc___calc__-calc++-scanner.o] Error 1
> >
> > Again (point 2 above) I see that parallel jobs were running, I'll
> > try forcing -j1 here.

That didn't help.

ĸen
-- 
Truth, in front of her huge walk-in wardrobe, selected black leather
boots with stiletto heels for such a barefaced truth.
                                     - Unseen Academicals
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to