Hi Chris
From: Chris Lattner <sabre@nondot.org>
Date: Fri, 13 Aug 2004 16:23:53 -0500 (CDT)> I got this error:
> -------------------------------
> gmake[3]: Entering directory `/usr/local/src/llvm/lib/Target/X86'
> Building X86.td register information header with tblgen
> tblgen: Assertion failed: "Buffer[Length-1] == '"'", file FileLexer.l, line
> 114
> gmake[3]: *** [X86GenRegisterInfo.h.inc] Abort trap (core dumped)
> gmake[3]: Leaving directory `/usr/local/src/llvm/lib/Target/X86'
> gmake[2]: *** [all] Error 1
> gmake[2]: Leaving directory `/usr/local/src/llvm/lib/Target'
> gmake[1]: *** [Target/.makeall] Error 2
> gmake[1]: Leaving directory `/usr/local/src/llvm/lib'
> gmake: *** [all] Error 1
> -------------------------------I have no idea off hand, but it looks like your version of flex is doing
something funny. Can you go into the debugger, and find out what is in
"Buffer" and what "Length" is?
I think I've found the error:
The Buffer contains: include "../Target.td" and length is 23.
The file that tablegen is looking for is therefore: "../Target.td".
However, in the assertion you assert an empty buffer and that is not what you want, I suppose. If you change line 114 to != instead ==, then the assertion doesn't fail.
The next problem, on my system (Interix - you remember - Hey, some LLVM program is working ), is however, that it cannot find the ../Target.td file. At the moment I see some more bugs luring ahead in the TableGen code. More on that later.
/Henrik