Hello, I know it's pretty "bleeding-edge", but I have recently upgraded my system to gcc-3.2 and encounter problems when trying to compile lilypond 1.6.2 (as expected after the reading of INSTALL.txt)...
So, I've followed the instructions given for gcc-3.1... : I attache the log file... Has anybody an idea (other than downgrading to gcc 2.95 !!!!) ??? Thanks in advance, Alex.
Script started on Mon Sep 9 18:02:31 2002 1001:root:/usr/src/lilypond-1.6.2# CONF=gcc-3.1 ./lexer-gcc-3.1.sh Copying and fixing /usr/local/include/FlexLexer.h... done Remove config.cache before rerunning ./configure Reconfigure, refix, and make doing something like: rm -f config.cache CPPFLAGS=-I/usr/src/lilypond-1.6.2/lily/out-gcc-3.1 ./configure --enable-config=gcc-3.1 CONF=gcc-3.1 ./lexer-gcc-3.1.sh make conf=gcc-3.1 1002:root:/usr/src/lilypond-1.6.2# rm -f config.cache 1003:root:/usr/src/lilypond-1.6.2# CPPFLAGS=-I/usr/src/lilypond-1.6.2/lily/out-gcc-3.1 ./conf<# CPPFLAGS=-I/usr/src/lilypond-1.6.2/lily/out-gcc-3.1 ./configure --enable-config=gcc-3.1 creating cache ./config.cache checking Package... LILYPOND checking builddir... /usr/src/lilypond-1.6.2 checking for stepmake... ./stepmake (${prefix}/share/stepmake not found) checking host system type... i686-pc-linux-gnu checking for gmake... no checking for make... make checking for find... find checking for tar... tar checking for bash... /bin/sh checking for python... python checking for python... /usr/local/bin/python checking for gcc... /usr/local/gcc/bin/gcc checking whether the C compiler (/usr/local/gcc/bin/gcc -O6 -march=athlon-tbird -pipe ) works... yes checking whether the C compiler (/usr/local/gcc/bin/gcc -O6 -march=athlon-tbird -pipe ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether /usr/local/gcc/bin/gcc accepts -g... yes checking for IEEE-conformance compiler flags... none checking /usr/local/gcc/bin/gcc version... 3.2 checking for c++... /usr/local/gcc/bin/g++ checking whether the C++ compiler (/usr/local/gcc/bin/g++ -O6 -march=athlon-tbird -pipe ) works... yes checking whether the C++ compiler (/usr/local/gcc/bin/g++ -O6 -march=athlon-tbird -pipe ) is a cross-compiler... no checking whether we are using GNU C++... yes checking whether /usr/local/gcc/bin/g++ accepts -g... yes checking /usr/local/gcc/bin/g++ version... 3.2 checking whether explicit instantiation is needed... no checking for ar... ar checking for ranlib... ranlib checking for bison... bison -y checking for bison... bison checking bison version... 1.28 checking for flex... flex checking how to run the C++ preprocessor... /usr/local/gcc/bin/g++ -E checking for FlexLexer.h... yes checking language... English checking for gettext in -lintl... yes checking for gettext... yes checking for msgfmt... msgfmt checking for mf... mf checking for inimf... inimf checking for working metafont mode... ljfour checking for kpsewhich... kpsewhich checking for tfm path... /usr/local/teTeX/share/texmf/fonts/tfm/public/cm /usr/local/teTeX/share/texmf/fonts/tfm/ams/symbols checking for guile-config... guile-config checking guile-config version... 1.4 checking guile compile flags... -I/usr/local/include checking guile link flags... -L/usr/local/lib -lguile -lm checking for kpathsea/kpathsea.h... yes checking for kpse_find_file in -lkpathsea... yes checking for kpse_find_file... yes checking whether to use kpathsea... yes checking for makeinfo... makeinfo checking whether makeinfo can split html by @node... yes checking for python2.2/Python.h... yes checking for python2.1/Python.h... no checking for python2.0/Python.h... no checking for python2/Python.h... no checking for python/Python.h... yes checking for python1.5/Python.h... no checking for Python.h... no checking for assert.h... yes checking for sys/stat.h... yes checking for sstream... yes checking whether stat file-mode macros are broken... no checking for 8-bit clean memcmp... no checking for vprintf... yes checking for memmem... yes checking for snprintf... yes checking for vsnprintf... yes checking for gettext... (cached) yes checking for isinf... yes checking for guile... guile checking for guile... /usr/local/bin/guile checking for perl... perl checking for perl... /usr/bin/perl checking for pktrace... pktrace checking pktrace version... 1.0.4 checking for makeinfo... (cached) makeinfo checking makeinfo version... 4.2 updating cache ./config.cache creating ./config.status creating config-gcc-3.1.make creating config-gcc-3.1.h configuring in stepmake running /bin/sh ./configure --enable-config=gcc-3.1 --cache-file=.././config.cache --srcdir=. loading cache .././config.cache checking Package... Stepmake package! checking builddir... /usr/src/lilypond-1.6.2/stepmake checking host system type... i686-pc-linux-gnu checking for gmake... (cached) make checking for find... (cached) find checking for tar... (cached) tar checking for bash... (cached) /bin/sh checking for python... (cached) python checking for python... (cached) /usr/local/bin/python checking language... English checking for makeinfo... (cached) makeinfo creating ./config.status creating config-gcc-3.1.make creating config-gcc-3.1.h Type: make conf=gcc-3.1 all to build LilyPond make conf=gcc-3.1 install to install LilyPond make conf=gcc-3.1 help to see all possible targets Do not worry if ./Documentation or ./mutopia should not build. 1004:root:/usr/src/lilypond-1.6.2# CONF=gcc-3.1 ./lexer-gcc-3.1.sh Copying and fixing /usr/local/include/FlexLexer.h... done Generating and fixing /usr/local/include/FlexLexer.h... done Remove config.cache before rerunning ./configure Reconfigure, refix, and make doing something like: rm -f config.cache CPPFLAGS=-I/usr/src/lilypond-1.6.2/lily/out-gcc-3.1 ./configure --enable-config=gcc-3.1 CONF=gcc-3.1 ./lexer-gcc-3.1.sh make conf=gcc-3.1 1005:root:/usr/src/lilypond-1.6.2# make conf=gcc-3.1 /usr/src/lilypond-1.6.2/stepmake/stepmake/generic-targets.make:133: out-gcc-3.1/dummy.dep: No such file or directory mkdir -p ./out-gcc-3.1 touch ./out-gcc-3.1/dummy.dep cd /usr/src/lilypond-1.6.2 && rm -rf share mkdir -p /usr/src/lilypond-1.6.2/share/lilypond mkdir -p /usr/src/lilypond-1.6.2/share/lilypond/fonts mkdir -p /usr/src/lilypond-1.6.2/share/lilypond/tex cd /usr/src/lilypond-1.6.2/share/lilypond && \ ln -s /usr/src/lilypond-1.6.2/ly ly && \ ln -s ../../mf/out-gcc-3.1 dvips && \ ln -s ../../mf/out-gcc-3.1 afm && \ ln -s ../../mf/out-gcc-3.1 tfm && \ ln -s /usr/src/lilypond-1.6.2/mf && \ ln -s /usr/src/lilypond-1.6.2/ps && \ ln -s ../../python/out-gcc-3.1 python && \ ln -s /usr/src/lilypond-1.6.2/scm cd /usr/src/lilypond-1.6.2/share/lilypond/tex && \ ln -s /usr/src/lilypond-1.6.2/tex source && \ ln -s ../../../mf/out-gcc-3.1 generate cd /usr/src/lilypond-1.6.2/share/lilypond/fonts && \ ln -s /usr/src/lilypond-1.6.2/mf source && \ ln -s ../../../mf/out-gcc-3.1 afm && \ ln -s ../../../mf/out-gcc-3.1 tfm && \ ln -s ../../../mf/out-gcc-3.1 type1 touch /usr/src/lilypond-1.6.2/share/lilypond-force make --no-builtin-rules PACKAGE=LILYPOND package=lilypond -C buildscripts all && make --no-builtin-rules PACKAGE=LILYPOND package=lilypond -C scripts all && make --no-builtin-rules PACKAGE=LILYPOND package=lilypond -C flower all && make --no-builtin-rules PACKAGE=LILYPOND package=lilypond -C lily all && make --no-builtin-rules PACKAGE=LILYPOND package=lilypond -C mf all && make --no-builtin-rules PACKAGE=LILYPOND package=lilypond -C ly all && make --no-builtin-rules PACKAGE=LILYPOND package=lilypond -C tex all && make --no-builtin-rules PACKAGE=LILYPOND package=lilypond -C ps all && make --no-builtin-rules PACKAGE=LILYPOND package=lilypond -C scm all && make --no-builtin-rules PACKAGE=LILYPOND package=lilypond -C python all && make --no-builtin-rules PACKAGE=LILYPOND package=lilypond -C po all && make --no-builtin-rules PACKAGE=LILYPOND package=lilypond -C make all && make --no-builtin-rules PACKAGE=LILYPOND package=lilypond -C cygwin all && make --no-builtin-rules PACKAGE=LILYPOND package=lilypond -C debian all && make --no-builtin-rules PACKAGE=LILYPOND package=lilypond -C /usr/src/lilypond-1.6.2/stepmake all && make --no-builtin-rules PACKAGE=LILYPOND package=lilypond -C Documentation all && make --no-builtin-rules PACKAGE=LILYPOND package=lilypond -C input all && true make[1]: Entering directory `/usr/src/lilypond-1.6.2/buildscripts' /usr/src/lilypond-1.6.2/stepmake/stepmake/generic-targets.make:133: out-gcc-3.1/dummy.dep: No such file or directory mkdir -p ./out-gcc-3.1 touch ./out-gcc-3.1/dummy.dep make[1]: Leaving directory `/usr/src/lilypond-1.6.2/buildscripts' make[1]: Entering directory `/usr/src/lilypond-1.6.2/buildscripts' cat help2man.pl | sed -e '#' -e 's!@BASH@!/bin/sh!g' -e 's!@DATE@!09SEP02!g' -e 's!@sharedstatedir@!/usr/local/com!g' -e 's!@GUILE@!/usr/local/bin/guile!g' -e 's!@date@!09SEP02!g' -e 's!@datadir@!/usr/local/share!g' -e 's!@local_lilypond_datadir@!/usr/local/share/lilypond/1.6.2!g' -e 's!@localedir@!/usr/local/share/locale!g' -e 's!@PACKAGE@!LILYPOND!g' -e 's!@package@!lilypond!g' -e 's!@PATHSEP@!:!g' -e 's!@PERL@!/usr/bin/perl!g' -e 's!@prefix@!/usr/local!g' -e 's!@program_prefix@!!g' -e 's!@program_suffix@!!g' -e 's!@PYTHON@!/usr/local/bin/python!g' -e 's!@SHELL@!/bin/sh!g' -e 's!@TOPLEVEL_VERSION@!1.6.2!g' -e 's!@step-bindir@!/usr/src/lilypond-1.6.2/stepmake/bin!g' > out-gcc-3.1/help2man chmod 755 out-gcc-3.1/help2man cat bib2html.py | sed -e '#' -e 's!@BASH@!/bin/sh!g' -e 's!@DATE@!09SEP02!g' -e 's!@sharedstatedir@!/usr/local/com!g' -e 's!@GUILE@!/usr/local/bin/guile!g' -e 's!@date@!09SEP02!g' -e 's!@datadir@!/usr/local/share!g' -e 's!@local_lilypond_datadir@!/usr/local/share/lilypond/1.6.2!g' -e 's!@localedir@!/usr/local/share/locale!g' -e 's!@PACKAGE@!LILYPOND!g' -e 's!@package@!lilypond!g' -e 's!@PATHSEP@!:!g' -e 's!@PERL@!/usr/bin/perl!g' -e 's!@prefix@!/usr/local!g' -e 's!@program_prefix@!!g' -e 's!@program_suffix@!!g' -e 's!@PYTHON@!/usr/local/bin/python!g' -e 's!@SHELL@!/bin/sh!g' -e 's!@TOPLEVEL_VERSION@!1.6.2!g' -e 's!@step-bindir@!/usr/src/lilypond-1.6.2/stepmake/bin!g' > out-gcc-3.1/bib2html chmod 755 out-gcc-3.1/bib2html cat lys-to-tely.py | sed -e '#' -e 's!@BASH@!/bin/sh!g' -e 's!@DATE@!09SEP02!g' -e 's!@sharedstatedir@!/usr/local/com!g' -e 's!@GUILE@!/usr/local/bin/guile!g' -e 's!@date@!09SEP02!g' -e 's!@datadir@!/usr/local/share!g' -e 's!@local_lilypond_datadir@!/usr/local/share/lilypond/1.6.2!g' -e 's!@localedir@!/usr/local/share/locale!g' -e 's!@PACKAGE@!LILYPOND!g' -e 's!@package@!lilypond!g' -e 's!@PATHSEP@!:!g' -e 's!@PERL@!/usr/bin/perl!g' -e 's!@prefix@!/usr/local!g' -e 's!@program_prefix@!!g' -e 's!@program_suffix@!!g' -e 's!@PYTHON@!/usr/local/bin/python!g' -e 's!@SHELL@!/bin/sh!g' -e 's!@TOPLEVEL_VERSION@!1.6.2!g' -e 's!@step-bindir@!/usr/src/lilypond-1.6.2/stepmake/bin!g' > out-gcc-3.1/lys-to-tely chmod 755 out-gcc-3.1/lys-to-tely ---------%<------------%<-----------%<---------%<------------%<-----------%<---------%<------------%<--- SNIP, SNIP rm -f ./out-gcc-3.1/warn.dep; DEPENDENCIES_OUTPUT="./out-gcc-3.1/warn.dep ./out-gcc-3.1/warn.o" /usr/local/gcc/bin/g++ -c -O6 -march=athlon-tbird -pipe -DHAVE_CONFIG_H -DSTRING_UTILS_INLINED -Iinclude -I./out-gcc-3.1 -I../flower/include -I../flower/./out-gcc-3.1 -I../flower/include -O6 -march=athlon-tbird -pipe -O2 -finline-functions -g -I/usr/src/lilypond-1.6.2/lily/out-gcc-3.1 -I/usr/local/include -O6 -march=athlon-tbird -pipe -O2 -finline-functions -g -I/usr/src/lilypond-1.6.2/lily/out-gcc-3.1 -I/usr/local/include -Wall -W -Wmissing-prototypes -Wconversion -o out-gcc-3.1/warn.o warn.cc cc1plus: warning: changing search order for system directory "/usr/local/include" cc1plus: warning: as it has already been specified as a non-system directory rm -f ./out-gcc-3.1/lexer.dep; DEPENDENCIES_OUTPUT="./out-gcc-3.1/lexer.dep ./out-gcc-3.1/lexer.o" /usr/local/gcc/bin/g++ -c -O6 -march=athlon-tbird -pipe -DHAVE_CONFIG_H -DSTRING_UTILS_INLINED -Iinclude -I./out-gcc-3.1 -I../flower/include -I../flower/./out-gcc-3.1 -I../flower/include -O6 -march=athlon-tbird -pipe -O2 -finline-functions -g -I/usr/src/lilypond-1.6.2/lily/out-gcc-3.1 -I/usr/local/include -O6 -march=athlon-tbird -pipe -O2 -finline-functions -g -I/usr/src/lilypond-1.6.2/lily/out-gcc-3.1 -I/usr/local/include -Wall -W -Wmissing-prototypes -Wconversion -o out-gcc-3.1/lexer.o out-gcc-3.1/lexer.cc cc1plus: warning: changing search order for system directory "/usr/local/include" cc1plus: warning: as it has already been specified as a non-system directory lexer.ll: In member function `virtual int My_lily_lexer::yylex()': lexer.ll:509: cannot convert `std::istream*' to `istream*' in assignment lexer.ll: At global scope: lexer.ll:617: type specifier omitted for parameter `ostream' lexer.ll:617: parse error before `*' token lexer.ll:620: ISO C++ forbids declaration of `yyout' with no type lexer.ll:620: `arg_yyout' was not declared in this scope lexer.ll:621: ISO C++ forbids declaration of `yy_c_buf_p' with no type lexer.ll:622: ISO C++ forbids declaration of `yy_init' with no type lexer.ll:623: ISO C++ forbids declaration of `yy_start' with no type lexer.ll:624: ISO C++ forbids declaration of `yy_flex_debug' with no type lexer.ll:625: ISO C++ forbids declaration of `yylineno' with no type lexer.ll:627: ISO C++ forbids declaration of `yy_did_buffer_switch_on_eof' with no type lexer.ll:629: ISO C++ forbids declaration of `yy_looking_for_trail_begin' with no type lexer.ll:630: ISO C++ forbids declaration of `yy_more_flag' with no type lexer.ll:631: ISO C++ forbids declaration of `yy_more_len' with no type lexer.ll:632: ISO C++ forbids declaration of `yy_more_offset' with no type lexer.ll:632: invalid use of member `yyFlexLexer::yy_prev_more_offset' lexer.ll:634: ISO C++ forbids declaration of `yy_start_stack_ptr' with no type lexer.ll:634: redefinition of `int yy_start_stack_ptr' lexer.ll:127: `int yy_start_stack_ptr' previously defined here lexer.ll:634: invalid use of member `yyFlexLexer::yy_start_stack_depth' lexer.ll:635: ISO C++ forbids declaration of `yy_start_stack' with no type lexer.ll:635: conflicting types for `int yy_start_stack' lexer.ll:129: previous declaration as `int*yy_start_stack' lexer.ll:637: ISO C++ forbids declaration of `yy_current_buffer' with no type lexer.ll:642: ISO C++ forbids declaration of `yy_state_buf' with no type lexer.ll:644: parse error before `}' token lexer.ll:652: type specifier omitted for parameter `ostream' lexer.ll:652: parse error before `*' token lexer.ll:653: prototype for `void yyFlexLexer::switch_streams(...)' does not match any in class `yyFlexLexer' out-gcc-3.1/FlexLexer.h:117: candidate is: virtual void yyFlexLexer::switch_streams(std::istream*, std::ostream*) lexer.ll: In member function `void yyFlexLexer::switch_streams(...)': lexer.ll:654: `new_in' undeclared (first use this function) lexer.ll:654: (Each undeclared identifier is reported only once for each function it appears in.) lexer.ll:660: `new_out' undeclared (first use this function) lexer.ll: At global scope: lexer.ll:994: prototype for `void yyFlexLexer::yyrestart(istream*)' does not match any in class `yyFlexLexer' out-gcc-3.1/FlexLexer.h:114: candidate is: virtual void yyFlexLexer::yyrestart(std::istream*) lexer.ll: In member function `void yyFlexLexer::yyrestart(istream*)': lexer.ll:998: no matching function for call to `yyFlexLexer::yy_init_buffer( yy_buffer_state*&, istream*&)' out-gcc-3.1/FlexLexer.h:128: candidates are: void yyFlexLexer::yy_init_buffer(yy_buffer_state*, std::istream*) lexer.ll: In member function `void yyFlexLexer::yy_load_buffer_state()': lexer.ll:1032: cannot convert `istream*' to `std::istream*' in assignment lexer.ll: At global scope: lexer.ll:1038: prototype for `yy_buffer_state* yyFlexLexer::yy_create_buffer(istream*, int)' does not match any in class ` yyFlexLexer' out-gcc-3.1/FlexLexer.h:112: candidate is: virtual yy_buffer_state* yyFlexLexer::yy_create_buffer(std::istream*, int) lexer.ll: In member function `yy_buffer_state* yyFlexLexer::yy_create_buffer(istream*, int)': lexer.ll:1056: no matching function for call to `yyFlexLexer::yy_init_buffer( yy_buffer_state*&, istream*&)' out-gcc-3.1/FlexLexer.h:128: candidates are: void yyFlexLexer::yy_init_buffer(yy_buffer_state*, std::istream*) lexer.ll: At global scope: lexer.ll:1080: prototype for `void yyFlexLexer::yy_init_buffer(yy_buffer_state*, istream*)' does not match any in class `yyFlexLexer' out-gcc-3.1/FlexLexer.h:128: candidate is: void yyFlexLexer::yy_init_buffer(yy_buffer_state*, std::istream*) 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:635: 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 defined lexer.ll:137: warning: `int yy_top_state()' declared `static' but never defined {standard input}: Assembler messages: {standard input}:114: Error: symbol `yy_start_stack_ptr' is already defined make[1]: *** [out-gcc-3.1/lexer.o] Error 1 make[1]: Leaving directory `/usr/src/lilypond-1.6.2/lily' make: *** [all] Error 2