bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compiling under mdk 9.0 beta, this time from cvs


From: Carlo Salinari
Subject: Re: compiling under mdk 9.0 beta, this time from cvs
Date: 08 Aug 2002 15:15:50 +0200

On Thu, 2002-08-08 at 00:13, Han-Wen Nienhuys wrote:

> I've upgraded to gcc-3 (nice speed improvements over here,
> unfortunately not with lily), and fixed the sources so they compile
> with gcc 3.

Sorry, still bad news :-)
(today's cvs):

$ ./autogen.sh
$ ./configure
$ ./ make all

...
lexer.ll: In member function `virtual int My_lily_lexer::yylex()':
lexer.ll:195: `cerr' undeclared (first use this function)
lexer.ll:195: (Each undeclared identifier is reported only once for each
function it appears in.)
/usr/include/g++-v31/bits/locale_facets.h: At top level:
lexer.ll:127: warning: `int yy_start_stack_ptr' defined but not used
lexer.ll:128: warning: `int yy_start_stack_depth' defined but not used
lexer.ll:129: warning: `int*yy_start_stack' defined but not used
lexer.ll:131: warning: `void yy_push_state(int)' declared `static' but
never defined
lexer.ll:134: warning: `void yy_pop_state()' declared `static' but never
definedlexer.ll:137: warning: `int yy_top_state()' declared `static' but
never defined
make[1]: *** [out/lexer.o] Error 1
rm out/lexer.cc
make[1]: Leaving directory `/home/carlo/z/lilypond/lily'
make: *** [all] Error 2
Command exited with non-zero status 2


then tried:

$ make distclean
$ ./lexer-gcc-3.1.sh  # btw: isn't the EOF message a bit recursive?
$ ./autogen.sh
$ ./configure
$ make all

...
In file included from include/includable-lexer.hh:13,
                 from includable-lexer.cc:13:
out/FlexLexer.h:64: no class template named `std' in `std'
out/FlexLexer.h:64: `s' was not declared in this scope
out/FlexLexer.h:64: parse error before `)' token
out/FlexLexer.h:66: no class template named `std' in `std'
out/FlexLexer.h:66: `s' was not declared in this scope
out/FlexLexer.h:66: virtual outside class declaration
out/FlexLexer.h:66: variable or field `yyrestart' declared void
out/FlexLexer.h:71: no class template named `std' in `std'
out/FlexLexer.h:71: `new_in' was not declared in this scope
out/FlexLexer.h:71: no class template named `std' in `std'
out/FlexLexer.h:71: `new_out' was not declared in this scope
out/FlexLexer.h:72: initializer list being treated as compound
expression
out/FlexLexer.h:72: syntax error before `{' token
out/FlexLexer.h: In member function `const char* FlexLexer::YYText()':
out/FlexLexer.h:58: `yytext' undeclared (first use this function)
out/FlexLexer.h:58: (Each undeclared identifier is reported only once
for each function it appears in.)
out/FlexLexer.h: In member function `int FlexLexer::YYLeng()':
out/FlexLexer.h:59: `yyleng' undeclared (first use this function)
out/FlexLexer.h: At global scope:
out/FlexLexer.h:79: warning: `virtual' is not at beginning of
declaration
out/FlexLexer.h:79: no class template named `std' in `std'
out/FlexLexer.h:79: `new_in' was not declared in this scope
out/FlexLexer.h:80: no class template named `std' in `std'
out/FlexLexer.h:80: `new_out' was not declared in this scope
out/FlexLexer.h:80: two or more data types in declaration of
`switch_streams'
out/FlexLexer.h:80: virtual outside class declaration
out/FlexLexer.h:80: cannot declare variable `switch_streams' to be of
type `FlexLexer'
out/FlexLexer.h:80:   because the following virtual functions are
abstract:
out/FlexLexer.h:68:     virtual int FlexLexer::yylex()
out/FlexLexer.h:65:     virtual void
FlexLexer::yy_delete_buffer(yy_buffer_state*)
out/FlexLexer.h:64:     virtual yy_buffer_state*
FlexLexer::yy_create_buffer(...)
out/FlexLexer.h:62:     virtual void
FlexLexer::yy_switch_to_buffer(yy_buffer_state*)
out/FlexLexer.h:80: assignment (not initialization) in declaration
out/FlexLexer.h:82: non-member function `int lineno()' cannot have
`const' method qualifier
out/FlexLexer.h: In function `int lineno()':
out/FlexLexer.h:82: `yylineno' undeclared (first use this function)
out/FlexLexer.h: At global scope:
out/FlexLexer.h:84: non-member function `int debug()' cannot have
`const' method qualifier
out/FlexLexer.h: In function `int debug()':
out/FlexLexer.h:84: `yy_flex_debug' undeclared (first use this function)
out/FlexLexer.h: At global scope:
out/FlexLexer.h:87: parse error before `protected'
out/FlexLexer.h:89: `int yyleng' used prior to declaration
out/FlexLexer.h:90: `int yylineno' used prior to declaration
out/FlexLexer.h:91: `int yy_flex_debug' used prior to declaration
out/FlexLexer.h:94: parse error before `}' token
out/FlexLexer.h:107: no class template named `std' in `std'
out/FlexLexer.h:107: parse error before `*' token
out/FlexLexer.h:112: no class template named `std' in `std'
out/FlexLexer.h:112: `s' was not declared in this scope
out/FlexLexer.h:112: parse error before `)' token
out/FlexLexer.h:114: no class template named `std' in `std'
out/FlexLexer.h:114: `s' was not declared in this scope
out/FlexLexer.h:114: invalid data member initialization
out/FlexLexer.h:114: (use `=' to initialize static data members)
out/FlexLexer.h:114: variable or field `yyrestart' declared void
out/FlexLexer.h:117: no class template named `std' in `std'
out/FlexLexer.h:117: `new_in' was not declared in this scope
out/FlexLexer.h:117: no class template named `std' in `std'
out/FlexLexer.h:117: `new_out' was not declared in this scope
out/FlexLexer.h:117: invalid data member initialization
out/FlexLexer.h:117: variable or field `switch_streams' declared void
out/FlexLexer.h:117: `switch_streams' declared as a `virtual' field
out/FlexLexer.h:128: no class template named `std' in `std'
out/FlexLexer.h:128: no type `istream' in `<type error>'
out/FlexLexer.h:128: parse error before `*' token
out/FlexLexer.h:143: no class template named `std' in `std'
out/FlexLexer.h:143: syntax error before `*' token
out/FlexLexer.h:144: no class template named `std' in `std'
out/FlexLexer.h:144: syntax error before `*' token
make[1]: *** [out/includable-lexer.o] Error 1
make[1]: Leaving directory `/home/carlo/z/lilypond/lily'
make: *** [all] Error 2
Command exited with non-zero status 2

using:
flex 2.5.4
gcc 3.1.1


        Carlo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]