./configure /home/xx/avalanche-0.6.0
when that is done and i use the "make" command, it throws the
following error
Making all in parser
make[4]: Entering directory `/home/xx/avalanche-0.6.0/stp-
ver-0.1-11-18-2008/parser'
g++ -DHAVE_CONFIG_H -I. -I.. -I../sat/mtl -I../sat/core -I../sat/
simp -g -O2 -MT lexPL.o -MD -MP -MF .deps/lexPL.Tpo -c -o lexPL.o
lexPL.cpp
In file included from /usr/include/c++/4.4/ext/hash_map:60,
from ../AST/AST.h:19,
from PL.lex:10:
/usr/include/c++/4.4/backward/backward_warning.h:28: warning: #warning
This file includes at least one deprecated or antiquated header which
may be removed without further notice at a future date. Please use a
non-deprecated interface with equivalent functionality instead. For a
listing of replacement headers and interfaces, consult the file
backward_warning.h. To disable this warning use -Wno-deprecated.
In file included from ../AST/AST.h:35,
from PL.lex:10:
../AST/../sat/core/Solver.h: In function ‘int
MINISAT::memReadStat(int)’:
../AST/../sat/core/Solver.h:63: warning: ignoring return value of ‘int
fscanf(FILE*, const char*, ...)’, declared with attribute
warn_unused_result
mv -f .deps/lexPL.Tpo .deps/lexPL.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I../sat/mtl -I../sat/core -I../sat/
simp -g -O2 -MT parsePL.o -MD -MP -MF .deps/parsePL.Tpo -c -o
parsePL.o parsePL.cpp
In file included from /usr/include/c++/4.4/ext/hash_map:60,
from ../AST/AST.h:19,
from PL.y:11:
/usr/include/c++/4.4/backward/backward_warning.h:28: warning: #warning
This file includes at least one deprecated or antiquated header which
may be removed without further notice at a future date. Please use a
non-deprecated interface with equivalent functionality instead. For a
listing of replacement headers and interfaces, consult the file
backward_warning.h. To disable this warning use -Wno-deprecated.
In file included from ../AST/AST.h:35,
from PL.y:11:
../AST/../sat/core/Solver.h: In function ‘int
MINISAT::memReadStat(int)’:
../AST/../sat/core/Solver.h:63: warning: ignoring return value of ‘int
fscanf(FILE*, const char*, ...)’, declared with attribute
warn_unused_result
PL.y: In function ‘int yyparse()’:
PL.y:180: error: expected unqualified-id before numeric constant
PL.y:185: error: expected unqualified-id before numeric constant
PL.y:196: error: expected unqualified-id before numeric constant
PL.y:445: error: expected unqualified-id before numeric constant
PL.y:450: error: expected unqualified-id before numeric constant
PL.y:456: error: expected unqualified-id before numeric constant
PL.y:462: error: expected unqualified-id before numeric constant
PL.y:468: error: expected unqualified-id before numeric constant
PL.y:486: error: expected unqualified-id before numeric constant
PL.y:492: error: expected unqualified-id before numeric constant
PL.y:500: error: expected unqualified-id before numeric constant
PL.y:508: error: expected unqualified-id before numeric constant
PL.y:516: error: expected unqualified-id before numeric constant
PL.y:524: error: expected unqualified-id before numeric constant
PL.y:532: error: expected unqualified-id before numeric constant
PL.y:540: error: expected unqualified-id before numeric constant
PL.y:548: error: expected unqualified-id before numeric constant
PL.y:557: error: expected unqualified-id before numeric constant
PL.y:563: error: expected unqualified-id before numeric constant
PL.y:703: error: expected unqualified-id before numeric constant
PL.y:715: error: expected unqualified-id before numeric constant
PL.y:728: error: expected unqualified-id before numeric constant
PL.y:741: error: expected unqualified-id before numeric constant
PL.y:760: error: expected unqualified-id before numeric constant
PL.y:809: error: expected unqualified-id before numeric constant
PL.y:817: error: expected unqualified-id before numeric constant
PL.y:827: error: expected unqualified-id before numeric constant
PL.y:834: error: expected unqualified-id before numeric constant
PL.y:843: error: expected unqualified-id before numeric constant
PL.y:852: error: expected unqualified-id before numeric constant
PL.y:861: error: expected unqualified-id before numeric constant
PL.y:870: error: expected unqualified-id before numeric constant
make[4]: *** [parsePL.o] Error 1
make[4]: Leaving directory `/home/xx/avalanche-0.6.0/stp-
ver-0.1-11-18-2008/parser'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/xx/avalanche-0.6.0/stp-
ver-0.1-11-18-2008'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/xx/avalanche-0.6.0/stp-
ver-0.1-11-18-2008'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/xx/avalanche-0.6.0'
make: *** [all] Error 2
Does anyone know what the problem could be?
Thanks
This is the exact command you've been using? It shouldn't have passed
configure step successfully - you should use --prefix=/home/xx/
avalanche-0.6.0 to install in this directory.
Can you run your configure command and show the STP part of its output
(starting with '=== configuring in stp-ver-0.1-11-18-2008')?
If you don't mind removing byacc and switching to bison (http://
www.gnu.org/s/bison/), you can do it and then proceed to the
following:
1) run ./configure again
2) go to stp-ver-0.1-11-18-2008/parser and do
rm parsePL.cpp parsePL_defs.h lexPL.cpp
3) run make again
If I understand correctly, this should remove those errors.
I'll try to investigate the parser generator compatibility.
Download it to avalanche root directory and do the following:
patch -p0 -i STP_PL_patch
After that 'make' should complete successfully.
On Dec 19, 2:43 pm, Michael <erm...@yandex.ru> wrote:
> Hmm, the problem is indeed with yacc. Looks like using byacc instead
> of bison (which we are all using) causes these errors.
>
> If you don't mind removing byacc and switching to bison (http://www.gnu.org/s/bison/), you can do it and then proceed to the
> ...
>
> read more »