[Top][All Lists]

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

2 compilation bugs

From: Pascal Maillard
Subject: 2 compilation bugs
Date: Fri, 5 Sep 2003 12:50:01 +0200
User-agent: KMail/1.5.1

Hi folks!

I encountered 2 bugs during compilation of lilypond 1.8.1.

I've got an x86 machine running under SuSE Linux 8.2 (kernel 2.4.20). My glibc 
is version 2.3.2.

gcc -v says this:
Reading specs from /usr/lib/gcc-lib/i486-suse-linux/3.3/specs
Configured with: ../configure --enable-threads=posix --prefix=/usr 
--with-local-prefix=/usr/local --infodir=/usr/share/info 
--mandir=/usr/share/man --libdir=/usr/lib 
--enable-languages=c,c++,f77,objc,java,ada --disable-checking --enable-libgcj 
--with-gxx-include-dir=/usr/include/g++ --with-slibdir=/lib 
--with-system-zlib --enable-shared --enable-__cxa_atexit i486-suse-linux
Thread model: posix
gcc version 3.3 20030226 (prerelease) (SuSE Linux)

My flex version is 2.5.4a, my bison version is 1.75.

The bugs:
1.) configure didn't detect that my glibc had the functions snprintf and 
vsnprintf. I had to change the values in config.h manually

2.) I got the follwing warnings / errors during compilation of the 

flex -Cfe -p -p -t lexer.ll > out/lexer.cc
"lexer.ll", line 493: warning, rule cannot be matched
"lexer.ll", line 579: warning, -s option given but default rule can be matched
rm -f ./out/lexer.dep; DEPENDENCIES_OUTPUT="./out/lexer.dep ./out/lexer.o" g++ 
-I../flower/include -I../flower/./out -I../flower/include -O2 
-finline-functions -g   -I/usr/include/python2.2      -O2 -finline-functions 
-g   -I/usr/include/python2.2  -Wall  -W -Wmissing-prototypes -Wconversion  
-o out/lexer.o out/lexer.cc
In file included from /usr/include/g++/backward/iostream.h:31,
                 from out/lexer.cc:24:
/usr/include/g++/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 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.
lexer.ll:135: warning: `int yy_start_stack_ptr' defined but not used
lexer.ll:136: warning: `int yy_start_stack_depth' defined but not used
lexer.ll:137: warning: `int*yy_start_stack' defined but not used
lexer.ll:139: warning: `void yy_push_state(int)' declared `static' but never
lexer.ll:142: warning: `void yy_pop_state()' declared `static' but never
lexer.ll:145: warning: `int yy_top_state()' declared `static' but never 
rm -f ./out/parser.dep; DEPENDENCIES_OUTPUT="./out/parser.dep ./out/parser.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   -I/usr/include/python2.2      -O2 -finline-functions 
-g   -I/usr/include/python2.2  -Wall  -W -Wmissing-prototypes -Wconversion  
-o out/parser.o out/parser.cc
parser.yy: In function `int yyparse(void*)':
parser.yy:1882: error: parse error before `}' token
make: *** [out/parser.o] Fehler 1

I read what you wrote about flex conflicting with gcc-3.1.1 but the changes 
lexer-gcc-3.1.sh does to FlexLexer.h had already been applied to my 
FlexLexer.h, so this should not be the problem. I also fixed lexer.cc this 
way, but this didn't work either.

Hope this could help you and I wish you happy coding,
Pascal Maillard

reply via email to

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