AsmParser/Lexer.l error

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

AsmParser/Lexer.l error

Basile Starynkevitch
Hello

With the latest LLVM from Subversion (rev48737 from
http://llvm.org/svn/llvm-project/llvm/trunk) I'm getting
make[2]: Entering directory `/usr/src/Lang/llvm/_Obj/lib/AsmParser'
llvm[2]: Flexing Lexer.l
llvm[2]: Compiling Lexer.cpp for Debug build
/usr/src/Lang/llvm/lib/AsmParser/Lexer.l: In function 'int llvmAsmlex()':
/usr/src/Lang/llvm/lib/AsmParser/Lexer.l:278: error: 'PURE' was not
declared in this scope
/usr/src/Lang/llvm/lib/AsmParser/Lexer.l:279: error: 'CONST' was not
declared in this scope
Lexer.cpp: In function 'int yy_get_next_buffer()':


I'm on Debian/Sid/AMD64, build directory is /usr/src/Lang/llvm/_Obj (a
subdir of the source). Even by removing
/usr/src/Lang/llvm/lib/AsmParser/Lexer.cpp as suggested
inhttp://lists.cs.uiuc.edu/pipermail/cfe-dev/2007-November/000483.html
I'm getting the same message.

I'm quite sure it is a common mistake of mine, but I thought that
removing the generated /usr/src/Lang/llvm/lib/AsmParser/Lexer.cpp would
be enough.
flex --version :: flex 2.5.34
g++ --version :: g++ (GCC) 4.2.3 (Debian 4.2.3-2)

Regards
--
Basile STARYNKEVITCH         http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***
_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: AsmParser/Lexer.l error

Duncan Sands
Hi,

> /usr/src/Lang/llvm/lib/AsmParser/Lexer.l: In function 'int llvmAsmlex()':
> /usr/src/Lang/llvm/lib/AsmParser/Lexer.l:278: error: 'PURE' was not
> declared in this scope
> /usr/src/Lang/llvm/lib/AsmParser/Lexer.l:279: error: 'CONST' was not
> declared in this scope
> Lexer.cpp: In function 'int yy_get_next_buffer()':

these don't exist any more so you must have old files hanging around.

> I'm on Debian/Sid/AMD64, build directory is /usr/src/Lang/llvm/_Obj (a
> subdir of the source). Even by removing
> /usr/src/Lang/llvm/lib/AsmParser/Lexer.cpp as suggested
> inhttp://lists.cs.uiuc.edu/pipermail/cfe-dev/2007-November/000483.html
> I'm getting the same message.
>
> I'm quite sure it is a common mistake of mine, but I thought that
> removing the generated /usr/src/Lang/llvm/lib/AsmParser/Lexer.cpp would
> be enough.

If you do
        svn status
it should tell you (with a ?) about files that aren't in the repository.

Ciao,

Duncan.
_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev