Compile issue on Mac OS-X Lion 10.7.5

82 views
Skip to first unread message

ENRICO DAGA

unread,
Jan 9, 2013, 3:59:15 AM1/9/13
to fast-d...@googlegroups.com
Hi all,
first, thank you for your work on Fast Downward!
I have been able to compile and run Fast Downward with OS-X 10.6, now I have a new laptop with Lion 10.7.5 and it looks like it doesn't compile.
Dependency libraries should all be installed.

Here is the output:

host-011:src enricox$ ./build_all 
make: Nothing to be done for `default'.
make: Nothing to be done for `default'.
make: Nothing to be done for `default'.
make: Nothing to be done for `default'.
flex -+ pddl+.lex
bison pddl+.yacc -o pddl+.cpp
pddl+.yacc: conflicts: 1 shift/reduce, 4 reduce/reduce
g++  -g -Wall -iquote -I. -ansi -Wall -c pddl+.cpp -o pddl+.o
pddl+.cpp:1672: error: ‘YYSTYPE’ has not been declared
pddl+.cpp:1706: error: ‘YYSTYPE’ has not been declared
pddl+.cpp:1763: error: variable or field ‘yy_reduce_print’ declared void
pddl+.cpp:1763: error: ‘YYSTYPE’ was not declared in this scope
pddl+.cpp:1763: error: ‘yyvsp’ was not declared in this scope
pddl+.cpp:1763: error: expected primary-expression before ‘int’
pddl+.cpp:1706: warning: ‘void yy_symbol_print(FILE*, int, const int*)’ defined but not used
pddl+.cpp:1732: warning: ‘void yy_stack_print(yytype_int16*, yytype_int16*)’ defined but not used
make: *** [pddl+.o] Error 1
rm pddl+.cpp

Any hint is very welcome!

Thank you,

Enrico

Malte Helmert

unread,
Jan 9, 2013, 4:18:39 AM1/9/13
to fast-d...@googlegroups.com
On 09.01.2013 09:59, ENRICO DAGA wrote:
> Hi all,
> first, thank you for your work on Fast Downward!
> I have been able to compile and run Fast Downward with OS-X 10.6, now I
> have a new laptop with Lion 10.7.5 and it looks like it doesn't compile.
> Dependency libraries should all be installed.

Dear Enrico,

the last stage of "build_all" is to compile the plan validator VAL,
which is not really a part of Fast Downward, but included with the
distribution for convenience. The errors messages you get come from the
validator -- I assume it's some kind of version incompatibility of flex
or bison.

You can use the planner without VAL: everything you need to actually run
the planner has been compiled once you get to the stage where build_all
is trying to compile VAL. It would still be good to get to the bottom of
this, since having a working validator is quite important if you want to
implement new techniques.

Does the newest version of the validator from
http://planning.cis.strath.ac.uk/VAL/ work for you? If yes, please get
back to us and we will see if there is something we need to merge.

If not, I suggest to report the issue to VAL's developers. (Note that
the contact details on the VAL page are out of date -- I don't want to
include the email address here because of spambots, but the person to
get in touch with is Derek Long at King's College London.)

Cheers,
Malte

Florian Pommerening

unread,
Jan 9, 2013, 4:34:27 AM1/9/13
to fast-d...@googlegroups.com
Hi Enrico,

On the VAL homepage there also is a note about compilation issues with
pddl+.cpp (http://planning.cis.strath.ac.uk/VAL/#Compilation). Maybe
recreating this file locally helps in your case.

Cheers,
Florian

Carlos Linares Lopez

unread,
Jan 9, 2013, 4:44:01 AM1/9/13
to fast-d...@googlegroups.com
Please, be aware that the latest version of VAL is not at the webpage of
the strathclyde University, but at the web of the ipc2011. While I do
not think that it will fix your compilation problems, it provides a few
more functionalities:

http://www.plg.inf.uc3m.es/ipc2011-deterministic/Resources



--
Carlos Linares

Andrew Coles

unread,
Jan 9, 2013, 4:50:15 AM1/9/13
to fast-d...@googlegroups.com
As Florian says, try recreating pddl+ locally, and use the current
version of VAL. We ship a pre-built pddl+.cpp, but I've been wondering
for a while if that's a good idea - it saves our users from having to
install flex and bison, but causes 99% of our bug reports. If it still
doesn't work, let me know and I'll talk to our resident 'planning
researcher who uses a Mac'.

Andrew
--
Dr Andrew Coles
Lecturer
Department of Informatics, King's College London
Room: S6.14, Tel: +44 (0) 20 7848 1511


Malte Helmert

unread,
Jan 9, 2013, 4:55:14 AM1/9/13
to fast-d...@googlegroups.com
On 09.01.2013 10:50, Andrew Coles wrote:
> As Florian says, try recreating pddl+ locally, and use the current
> version of VAL. We ship a pre-built pddl+.cpp, but I've been wondering
> for a while if that's a good idea - it saves our users from having to
> install flex and bison, but causes 99% of our bug reports. If it still
> doesn't work, let me know and I'll talk to our resident 'planning
> researcher who uses a Mac'.

If I recall correctly, we changed this in the version of VAL that is
shipped with Fast Downward because the pregenerated files caused too
much trouble.

@Enrico: have you compiled from a clean directory, or is it possible
that some files compiled with the previous OS X were still lying around?
In that case, you could try again with a new clone and see if it makes a
difference.

Cheers,
Malte

ENRICO DAGA

unread,
Jan 9, 2013, 5:47:09 AM1/9/13
to fast-d...@googlegroups.com
Thank you all for your feedbacks.

I will try again with a new clone and downloading the latest version of VAL.

@Andrew I can't locate the pddl+.cpp file anywhere, and then looking to the last line of the output I see "rm pddl+.cpp", so Malte is probably right.

Nice to find a so active community!

Enrico

ENRICO DAGA

unread,
Jan 9, 2013, 6:10:00 AM1/9/13
to fast-d...@googlegroups.com
Ok, the problem is with VAL, the latest distribution reports:

host-011:VAL-4.2.08 enricox$ make
flex++ pddl+.lex ; bison pddl+.yacc -o pddl+.cpp
pddl+.yacc: conflicts: 1 shift/reduce, 4 reduce/reduce
g++  -g -Wall -Werror -iquote -I. -ansi -Wall -c pddl+.cpp -o pddl+.o
pddl+.cpp:1672: error: ‘YYSTYPE’ has not been declared
pddl+.cpp:1706: error: ‘YYSTYPE’ has not been declared
pddl+.cpp:1763: error: variable or field ‘yy_reduce_print’ declared void
pddl+.cpp:1763: error: ‘YYSTYPE’ was not declared in this scope
pddl+.cpp:1763: error: ‘yyvsp’ was not declared in this scope
pddl+.cpp:1763: error: expected primary-expression before ‘int’
cc1plus: warnings being treated as errors
pddl+.cpp:1706: warning: ‘void yy_symbol_print(FILE*, int, const int*)’ defined but not used
pddl+.cpp:1732: warning: ‘void yy_stack_print(yytype_int16*, yytype_int16*)’ defined but not used
make: *** [pddl+.o] Error 1

I will try to report this to the VAL team.

Thank you again for your help!

Enrico

ENRICO DAGA

unread,
Jan 9, 2013, 7:10:14 AM1/9/13
to fast-d...@googlegroups.com
Update.
Downloading the last version 4.2.09 from http://www.plg.inf.uc3m.es/ipc2011-deterministic/Resources as suggested by @Carlos solves the problem.

Thank you all,

Enrico

Malte Helmert

unread,
Jan 9, 2013, 9:36:22 AM1/9/13
to fast-d...@googlegroups.com
On 09.01.2013 13:10, ENRICO DAGA wrote:
> Update.
> Downloading the last version 4.2.09
> from http://www.plg.inf.uc3m.es/ipc2011-deterministic/Resources
> <http://www.plg.inf.uc3m.es/ipc2011-deterministic/Resources> as
> suggested by @Carlos solves the problem.

Thanks! I've updated the version of VAL included with Fast Downward to
this version.

It may or may not work out of the box on your machine. As discussed
before, unlike the original VAL release, we do not include pregenerated
flex/bison files since these often fail to work.

Cheers,
Malte

Reply all
Reply to author
Forward
0 new messages