Boost logo

Boost-Build :

From: Greg Landrum (greg.landrum_at_[hidden])
Date: 2008-03-27 17:07:56


The attached tar ball contains a simple project with a bit
of hierarchy. The directory tree is:
   Jamroot <- defines project BoostBuildSample
      Jamfile <- defines project BoostBuildSample/a
         Jamfile <- defines project BoostBuildSample/a/a1
         Jamfile <- defines project BoostBuildSample/a/a2
      Jamfile <- defines project BoostBuildSample/b
         Jamfile <- defines project BoostBuildSample/b/b1

In the file BoostBuildSample/a/a2/Jamfile I define the following
target which I attempt to make dependent on the target a1 in project
/BoostBuildSample/a/a1 and the target a in /BoostBuildSample/a:

lib a2 : a2.cpp
  /BoostBuildSample/a//a # (0) fine!
  #../../a/a1//a1 # (1) this works
  #/BoostBuildSample/a//a1 # (2) this "works"
  /BoostBuildSample/a/a1//a1 # (3) this does not

the first dependency, labeled (0), is no problem. But getting the
dependency on /BoostBuildSample/a/a1//a1 is problematic. I list three
forms, the first two, (1) and (2), work without problems (though form
(2) will build more than just the target a1), but form (3) fails
If I execute bjam in the directory BoostBuildSample or
BoostBuildSample/a things build fine, including that a2
project/target. However, if I execute bjam in directory
BoostBuildSample/a/a2, I get the following error:

~/BoostBuildSample/a/a2 > bjam
Building Boost.Regex with the optional Unicode/ICU support disabled.
Please refer to the Boost.Regex documentation for more information
(don't panic: this is a strictly optional feature).
error: Unable to find file or target named
error: '/BoostBuildSample/a/a1//a1'
error: referred from project at
error: '.'

Am I doing something wrong (not hard to believe) or is this a bug of
some description?

In case it matters, here's the bjam version info:
Boost.Build V2 (Milestone 11)
Boost.Jam 03.1.13

I'm using boost 1.34.1 built from source under Ubuntu 7.10

Sorry if this is answered in the docs, but I haven't been able to find it.

Thanks for any help,

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at