Boost logo

Boost-Build :

Subject: Re: [Boost-build] Boost.Build woes
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2015-12-21 13:10:42


AMDG

On 12/21/2015 08:26 AM, Stefan Seefeld wrote:
>
> <snip>
> Installing the various Boost packages on my Fedora machines, I get a
> "boost-examples" package containing, well, examples.
> However, the build files aren't properly adjusted to the separate
> install location, so I get this error:
>
>> Unable to load Boost.Build: could not find build system.
>> ---------------------------------------------------------
>> /usr/share/doc/boost-examples/libs/python/example/boost-build.jam
>> attempted to load the build system by invoking
>>
>> 'boost-build ../../../tools/build/v2 ;'
>> but we were unable to find "bootstrap.jam" in the specified directory
>
> However, it isn't immediately clear what the correct path is. Searching
> for bootstrap.jam I find
> /usr/share/boost-build/src/kernel/bootstrap.jam (part of the
> "boost-build" package). However, replacing the above faulty line by
>
> `boost-build /usr/share/boost-build/src/kernel ;`
>
> still doesn't work. I get this error instead:

  The correct path should be .../src/, I believe.
Actually, if you're working with an installed
Boost.Build you're better off just deleting
boost-build.jam. I believe that python/example/boost-build.jam
should be removed from the repository.
- If you are running inside the full boost
  distribution, it will work, but is useless,
  because the top level $BOOST_ROOT/boost-build.jam
  works just as well. (Actually it won't work,
  because it uses an out-of-date path, but that's
  another issue.)
- If you are using this part of Boost.Python standalone,
  (as you appear to be doing), the path will be wrong,
  and it will fail, with the error that you're seeing.

>> /usr/share/boost-build/src/build/project.jam:262: in find-jamfile from
>> module project
>> error: Unable to load Jamfile.
>> error: Could not find a Jamfile in directory '../../../..'.
>> error: Attempted to find it with pattern '[Bb]uild.jam [Jj]amfile.v2
>> [Jj]amfile [Jj]amfile.jam'.
>> error: Please consult the documentation at 'http://www.boost.org'.
>> /usr/share/boost-build/src/build/project.jam:280: in load-jamfile from
>> module project
>> ...
>> /usr/share/doc/boost-examples/libs/python/example/boost-build.jam:8:
>> in module scope from module
>
> (What is the '../../../..' in the error above ? It doesn't come from my
> modified boost-build.jam file.)
>

  This is a later problem. The jamfile for your
example is trying to reference the BOOST_ROOT
project.

In Christ,
Steven Watanabe


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