[LLVMdev] tblgen: Assertion failed: "Buffer[Length-1] == '"'", file FileLexer.l, line 114

Henrik Bach henrik_bach_llvm at hotmail.com
Tue Aug 17 15:45:40 PDT 2004


Hi Chris

>From: Chris Lattner <sabre at nondot.org>
>Date: Fri, 13 Aug 2004 16:23:53 -0500 (CDT)
>
>On Fri, 13 Aug 2004, Henrik Bach wrote:
>
> > 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 :O ), 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

>-Chris
>
>--
>http://llvm.cs.uiuc.edu/
>http://nondot.org/sabre/
>
>_______________________________________________
>LLVM Developers mailing list
>LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
>http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev

_________________________________________________________________
Opret en gratis Hotmail-konto  http://www.hotmail.com med udsigt til 250 MB 
lagerkapacitet




More information about the llvm-dev mailing list