Hi all, Trying to build 1.2.0.3 and get: erikd@miles > make linux-alsa make -f makefile.alsa make[1]: Entering directory `/home/erikd/chuck-1.2.0.3/src' bison -dv -b chuck chuck.y gcc -D__LINUX_ALSA__ -O3 -c -D__CK_SNDFILE_NATIVE__ chuck.tab.c flex -ochuck.yy.c chuck.lex gcc -D__LINUX_ALSA__ -O3 -c -D__CK_SNDFILE_NATIVE__ chuck.yy.c chuck.lex: In function 'comment': chuck.lex:246: warning: comparison is always true due to limited range of data type chuck.lex: In function 'block_comment': chuck.lex:262: warning: comparison is always true due to limited range of data type chuck.lex:272: warning: comparison is always false due to limited range of data type chuck.lex:280: error: 'yytext_ptr' undeclared (first use in this function) chuck.lex:280: error: (Each undeclared identifier is reported only once chuck.lex:280: error: for each function it appears in.) make[1]: *** [chuck.yy.o] Error 1 make[1]: Leaving directory `/home/erikd/chuck-1.2.0.3/src' make: [linux-alsa] Error 2 (ignored) The system is an Apple iBook running Debian testing. Versions of stuff are as follows: erikd@miles > gcc --version gcc (GCC) 4.0.2 (Debian 4.0.2-2) Copyright (C) 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. erikd@miles > flex --version flex 2.5.31 erikd@miles > bison --version bison (GNU Bison) 1.875d Written by Robert Corbett and Richard Stallman. Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Erik -- +-----------------------------------------------------------+ Erik de Castro Lopo +-----------------------------------------------------------+ "Even Napoleon had his Watergate" -- Michael Spautz -- +-----------------------------------------------------------+ Erik de Castro Lopo +-----------------------------------------------------------+ "No Silicon Heaven? Preposterous! Where would all the calculators go?" -- Kryten, Red Dwarf
Hi Erik and all,
gcc -D__LINUX_ALSA__ -O3 -c -D__CK_SNDFILE_NATIVE__ chuck.yy.c chuck.lex: In function 'comment': chuck.lex:246: warning: comparison is always true due to limited range of data type chuck.lex: In function 'block_comment': chuck.lex:262: warning: comparison is always true due to limited range of data type chuck.lex:272: warning: comparison is always false due to limited range of data type chuck.lex:280: error: 'yytext_ptr' undeclared (first use in this function)
This problem seems to be appearing on some linux systems - some versions of flex seems to have different requirements for where the unput macro is used in. I can't reproduce the error on the one FC3 system I can access right now (and currently in Beijing), but I put a modified chuck.lex file here: http://chuck.cs.princeton.edu/release/files/snapshot/ Please download/replace chuck.lex and see if that helps (it may do no good). Please let me know how it turns out. Thanks! Best, Ge!
Ge Wang wrote:
This problem seems to be appearing on some linux systems - some versions of flex seems to have different requirements for where the unput macro is used in.
Last time i looked, that flex in Debian Testing was a much more recent version that the FC one.
I can't reproduce the error on the one FC3 system I can access right now (and currently in Beijing), but I put a modified chuck.lex file here:
http://chuck.cs.princeton.edu/release/files/snapshot/
Please download/replace chuck.lex and see if that helps (it may do no good). Please let me know how it turns out.
Thanks Ge. The new one still has the warning about the signed/unsigned comparison, but does error out with the undeclared yytext_ptr. Erik -- +-----------------------------------------------------------+ Erik de Castro Lopo +-----------------------------------------------------------+ "When your hammer is C++, everything begins to look like a thumb." -- Steve Haflich, in comp.lang.c++
Erik de Castro Lopo wrote:
Thanks Ge. The new one still has the warning about the signed/unsigned comparison, but does error out with the undeclared yytext_ptr.
Sorry, "does **not** error out with ...". I now have a working chuck version 1.2.0.3. Erik -- +-----------------------------------------------------------+ Erik de Castro Lopo +-----------------------------------------------------------+ "The earth is degenerating these days. Bribery and corruption abound. Children no longer mind parents ...and it is evident that the end of the world is approaching fast." -- Assyrian Tablet Engraved in 2800 B.C.
participants (2)
-
Erik de Castro Lopo
-
Ge Wang