Boost logo

Boost-Build :

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


Hi,

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
/home/jens/devel/leda-free/LEDA-6.3-free-fedora-core-8-64-g++-4.1.2-mt

After successfully running all other tests, the one for LEDA fails:

$ ../../../tools/build/v2/bjam -s
LEDA=/home/jens/devel/leda-free/LEDA-6.3-free-fedora-core-8-64-g++-4.1.2-mt/
Performing configuration checks

     - has_icu builds : yes
...patience...
...patience...
...patience...
...found 6503 targets...
...updating 2 targets...
gcc.compile.c++
../../../bin.v2/libs/graph/test/leda_graph_cc.test/gcc-4.6.1/debug/leda_graph_cc.o
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
compilation terminated.

     "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -fPIC
-DBOOST_ALL_NO_LIB=1 -I"../../.." -c -o
"../../../bin.v2/libs/graph/test/leda_graph_cc.test/gcc-4.6.1/debug/leda_graph_cc.o"
"leda_graph_cc.cpp"

...failed gcc.compile.c++
../../../bin.v2/libs/graph/test/leda_graph_cc.test/gcc-4.6.1/debug/leda_graph_cc.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 =
         <include>$(LEDA)/incl
         <library-file>$(LEDA)/libleda.a
         ;

     compile leda_graph_cc.cpp
          $(LEDA_DEPENDENCIES) ;

}

Best,

Jens


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