Bruce Dubbs wrote: > Ken Moffat wrote: > >> On Thu, Aug 15, 2013 at 11:06:45AM -0500, Bruce Dubbs wrote: >>> bison. 1 failure. >>> 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. >>> >>> This matches what Ken saw a couple of days ago. May be specific to >>> building in chroot. >>> >> >> I'm still massaging my buildscripts and haven't managed to get >> bison > 2.7.1 to build with them. Only a few more functions to >> rename as km_, and then I'll have to go back to looking at the diff >> of the source. >> >> That last sentence of yours makes me wonder what might be different >> in chroot. Usually that comes down either to mounts, or to runtime >> deps. I start to wonder if something needs to be built sooner. But >> looking at the full text (wrapped by my mailer) I can't see anything >> missing : >> >> /bin/sh ./build-aux/ylwrap `test -f >> 'examples/calc++/calc++-scanner.ll' || echo >> './'`examples/calc++/calc++-scanner.ll .c >> examples/calc++/calc++-scanner.cc -- : >> g++ -I./examples/calc++ -g -O2 -MT >> examples/calc++/examples_calc___calc__-calc++-scanner.o -MD -MP -MF >> examples/calc++/.deps/examples_calc___calc__-calc++-scanner.Tpo -c >> -o examples/calc++/examples_calc___calc__-calc++-scanner.o `test -f >> 'examples/calc++/calc++-scanner.cc' || echo >> './'`examples/calc++/calc++-scanner.cc >> g++: error: ./examples/calc++/calc++-scanner.cc: No such file or >> directory >> g++: fatal error: no input files >> compilation terminated. >> >> It seems to me that build-aux/ylwrap is failing. That's a script >> which creates temporary files and always deletes them on exit. I >> don't see anything in it except /bin/sh, sed, and some coreutils >> programs. And we've got all of those. > > I think I may have it. It appears that it needs flex. There now seems > to be a circular dependency bison needs flex and flex needs bison. At > least for tests. > > I went into chroot where flex has already been built and all tests are > OK. Looking at the Makefile, I don't see an easy way to disable the > test. Perhaps it just needs a note saying that the test fails because > flex is not yet available.
This worked for me. I deleted bison, lex, and flex from /usr/bin and then built flex: sed -i -e '/test-bison/d' tests/Makefile.in ./configure --prefix=/usr \ --docdir=/usr/share/doc/flex-2.5.37 make make check make install ... All the checks that are run pass. There are 3 bison related tests suppressed and I had already commented out two of them due to errors. Then for bison: ./configure --prefix=/usr make make check was clean. What we've done here is drop a patch and replace it with a sed for flex, and move flex up to just before bison. I think that cleans up all issues. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page