lilypond-devel
[Top][All Lists]
Advanced

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

Problems building with gcc 3.2.3/flex 2.5.4a


From: JM Pim
Subject: Problems building with gcc 3.2.3/flex 2.5.4a
Date: 21 Dec 2004 15:58:42 +0000

I've been trying to build Lilypond 2.5.3 with gcc 3.2.3 and flex 2.5.4a

I've seen the warning about using flex 2.5.4a with gcc-3.x in INSTALL.html and have tried to use it but with no success.

make all exits with

... flex -Cfe -p -p -oout/lexer.cc lexer.ll "lexer.ll", line 628: warning, -s option given but default rule can be matched rm -f ./out/lexer.dep; DEPENDENCIES_OUTPUT="./out/lexer.dep ./out/lexer.o" g++ -c -DHAVE_CONFIG_H -DSTRING_UTILS_INLINED -Iinclude -I./out -I../flower/include -I../flower/./out -I../flower/include -O2 -finline-functions -g -pipe -I/usr/share/texmf/include/ -I/usr/include/python2.3 -O2 -finline-functions -g -pipe -I/usr/share/texmf/include/ -I/usr/include/python2.3 -W -Wall -Wconversion -o out/lexer.o out/lexer.cc In file included from /usr/include/c++/3.2.3/backward/iostream.h:31,
                from /usr/local/include/FlexLexer.h:47,
from out/lexer.cc:242: /usr/include/c++/3.2.3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated. In file included from /usr/local/include/FlexLexer.h:47,
                from out/lexer.cc:242:
/usr/include/c++/3.2.3/backward/iostream.h:36: using declaration `istream'
introduced ambiguous type `istream' out/lexer.cc: In member function `virtual int Lily_lexer::yylex()': out/lexer.cc:4496: cannot convert `std::istream*' to `istream*' in assignment out/lexer.cc: In member function `void yyFlexLexer::yy_load_buffer_state()': out/lexer.cc:5019: cannot convert `istream*' to `std::istream*' in assignment out/lexer.cc: In member function `void yyFlexLexer::yy_init_buffer(yy_buffer_state*, std::istream*)': out/lexer.cc:5070: cannot convert `std::istream*' to `istream*' in assignment /usr/include/c++/3.2.3/bits/locale_facets.h: At top level: out/lexer.cc:3482: warning: `int yy_start_stack_ptr' defined but not used out/lexer.cc:3483: warning: `int yy_start_stack_depth' defined but not used out/lexer.cc:3484: warning: `int*yy_start_stack' defined but not used out/lexer.cc:3486: warning: `void yy_push_state(int)' declared `static' but never defined out/lexer.cc:3489: warning: `void yy_pop_state()' declared `static' but never
  defined
out/lexer.cc:3492: 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/mark/lilypond/lilypond-2004-12-03/lilypond-2.5.3/lily' make: *** [all] Error 2

--------------------------------

Any ideas? I've spent quite a while hacking around in lily/out/lexer.cc to try to get it to compile.

The annoying thing is it worked a couple of days ago, but then fell down later because I only had makeinfo 4.5 so the Doc build failed. All I did was update texinfo to 4.7 and reinstall flex 2.5.4a from the GNU source (slackware 9.1 comes with flex 2.5.4a anyway).

AHHHH!

Any help would be great!

Mark




reply via email to

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