Subject: [Boost-build] Trouble running test in the Boost Graph library
From: Jens MÃ¼ller (blog_at_[hidden])
Date: 2011-12-14 18:44:10
I already posted this to the Boost developer mailing list, so sorry if
you already saw it. But it seems like a problem with Jam, so I try here.
I tried to run the tests for the LEDA adapter in the Boost Graph library.
I checked out the latest trunk from SVN. I made the Boost.Build v2,
works fine. When running ./../../tools/build/v2/bjam in libs/graph/test,
all tests run fine.
I installed LEDA (free version) in
After successfully running all other tests, the one for LEDA fails:
$ ../../../tools/build/v2/bjam -s
Performing configuration checks
- has_icu builds : yes
...found 6503 targets...
...updating 2 targets...
In file included from leda_graph_cc.cpp:10:0:
../../../boost/graph/leda_graph.hpp:20:30: fatal error:
LEDA/graph/graph.h: No such file or directory
"g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -fPIC
-DBOOST_ALL_NO_LIB=1 -I"../../.." -c -o
...failed updating 1 target...
...skipped 1 target...
Note that I edited boost/graph/leda_graph.hpp, fixing a syntax error and
making it point to the now location of the LEDA header files (which
contains an additional "graph" sub-directory).
But the problem seems to be that the include directory is not at all
passed to the compiler. What is going wrong here?
The respective part of Jamfile.v2 is:
# Run LEDA tests only when -sLEDA= is set.
if [ modules.peek : LEDA ] != ""
local LEDA_DEPENDENCIES =
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk