Boost logo

Boost Users :

From: Angus Leeming (yg-boost-users_at_[hidden])
Date: 2003-08-05 06:39:51


Dear all,

I'm a bjam newbie trying to build the BGL in boost 1.30.0 on a DEC
Alpha running linux. However, the build process is failing to
generate the graphviz parser and lexer:

$ cd libs/graph/build
$ bjam "-sTOOLS=gcc"
...found 437 targets...
...using 2 temp targets...
...updating 3 targets...
...using
<libs!graph!build/liblibbgl-viz.a/gcc/debug/inlining-on/runtime-link-dynamic>graphviz_graph_lex.o...
...using
<libs!graph!build/liblibbgl-viz.a/gcc/debug/inlining-on/runtime-link-dynamic>graphviz_digraph_lex.o...
gcc-C++-action
../../../libs/graph/build/bin/liblibbgl-viz.a/gcc/debug/inlining-on/runtime-link-dynamic/graphviz_graph_parser.o
graphviz_parser.y:44:2: #error Need to define the GRAPHVIZ_GRAPH
macro to either GraphvizGraph or GraphvizDigraph.
graphviz_parser.y:61: error: `GRAPHVIZ_GRAPH' was not declared in
this scope
graphviz_parser.y:61: error: template argument 1 is invalid
graphviz_parser.y:61: error: syntax error before `;' token
graphviz_parser.y:62: error: `GRAPHVIZ_GRAPH' was not declared in
this scope
graphviz_parser.y:62: error: template argument 1 is invalid
graphviz_parser.y:62: error: syntax error before `;' token
graphviz_parser.y:63: error: syntax error before `;' token
[snip]

This all seems very reasonable, but I do not know how to resolve the
problem. I see that Jamfile.v2 has explicit rules to build
graphviz_graph_lex.o, graphviz_digraph_lex.o, setting GRAPHVIZ_GRAPH
appropriately. However, my version of bjam (3.1.4) does not
understand Jamfile.v2 and I lack the knowledge to do the equivalent
in Jamfile.

I did try to append some rules to the Jamfile(see below), but
unsurprisingly without success.

Could anyone provide me with pointers on how to proceed?

Kind regards,
Angus

Lex graphviz_graph_lex.cpp : graphviz_lex.l
    : <define>GRAPHVIZ_DIRECTED=0 <dependency>graphviz_graph_parser ;

Yacc graphviz_graph_parser.cpp : graphviz_parser.y
    : <define>GRAPHVIZ_DIRECTED=0 ;

Lex graphviz_digraph_lex.cpp : graphviz_lex.l
    : <define>GRAPHVIZ_DIRECTED=1 <dependency>graphviz_digraph_parser
;

Yacc graphviz_digraph_parser.cpp : graphviz_parser.y
    : <define>GRAPHVIZ_DIRECTED=1 ;

Object graphviz_graph_lex.o : graphviz_graph_lex.cpp ;
Object graphviz_graph_parser.o : graphviz_graph_parser.cpp ;
Object graphviz_digraph_lex.o : graphviz_digraph_lex.cpp ;
Object graphviz_digraph_parser.o : graphviz_digraph_parser.cpp ;


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net