[bitc-dev] Build Problem with DoxyLexer.l
Jonathan S. Shapiro
shap at eros-os.org
Mon Feb 20 20:29:45 EST 2006
This is known flex breakage. It has been obscured by a bug fix in the
Fedora distribution that I submitted and they adopted.
The right fix here is definitely not to do a using namespace. It's to
preface all of the cin's with std::
Unfortunately, the flex skeleton code is where the problem is, so this
is difficult.
shap
On Mon, 2006-02-20 at 19:13 -0600, James Graves wrote:
> On Mon, Feb 20, 2006 at 06:43:53PM -0500, Jonathan S. Shapiro wrote:
>
> > Arrghh.
> >
> > Looks like we will abandon flex sooner than planned. Oh well. It was
> > coming anyway. Fortunately the language is now stable enough that doing
> > so is no longer completely insane. I was simply hoping not to do it
> > twice.
> >
> > James: I'm actually thinking here that we need to look forward rather
> > than backward, and since there isn't commonality of function across the
> > releases at the moment it may make sense to stick a stable version of
> > flex into the Coyotos cross tools. Opinion?
>
> Well, I just tried old-flex. Annoyingly, it has a package conflict with
> regular flex, so it un-unstalled the modern one. I'm definitely going
> to install my own copy of flex 2.5.4a as a seperate executable, because
> I don't want to use old-flex as the system default.
>
> Maybe just make flex 2.5.4a part of the cross environment, so as not to
> conflict with a modern version of flex.
>
> Anyway, I now am getting breakage with AMlexer.l. I did do a 'make clean'
> first. Here's that error:
>
> make[1]: Entering directory `/home/jgraves/coyotos/src.coyotos/src/ccs/astmaker'
> if [ ! -d BUILD ]; then \
> mkdir -p BUILD; \
> fi
> (cd BUILD; bison -t -p am -v -d -o AMparser.cxx -y ../AMparser.y)
> flex -d -oBUILD/AMlexer.cxx AMlexer.l
> g++ -fdefault-inline -g -I. -I.. -Wall -Winline -Werror -Wno-format -c BUILD/AMlexer.cxx -o BUILD/AMlexer.o
> BUILD/AMlexer.cxx: In member function `int AMlexer::lex(ParseType*)':
> BUILD/AMlexer.cxx:660: error: `cin' undeclared (first use this function)
> BUILD/AMlexer.cxx:660: error: (Each undeclared identifier is reported only once
> for each function it appears in.)
> BUILD/AMlexer.cxx:663: error: `cout' undeclared (first use this function)
> BUILD/AMlexer.cxx:729: error: `cerr' undeclared (first use this function)
> make[1]: *** [BUILD/AMlexer.o] Error 1
> make[1]: Leaving directory `/home/jgraves/coyotos/src.coyotos/src/ccs/astmaker'
> *** RECURSIVE BUILD STOPS ***
> make: *** [recurse] Error 1
>
> I had to stick in a 'using namespace std;' in all flex files. Patch
> attached.
>
> At any rate, that was the last problem. I've got a bitcc executable
> now. We'll see what happens next.
>
> James Graves
> _______________________________________________
> bitc-dev mailing list
> bitc-dev at coyotos.org
> http://www.coyotos.org/mailman/listinfo/bitc-dev
More information about the bitc-dev
mailing list