Boost logo

Boost-Build :

Subject: Re: [Boost-build] Boost.Build woes
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2015-12-21 17:07:48


AMDG

On 12/21/2015 02:40 PM, Stefan Seefeld wrote:
> On 21.12.2015 13:10, Steven Watanabe wrote:
>> AMDG
>>
>> On 12/21/2015 08:26 AM, Stefan Seefeld wrote:
>>> <snip>
>>>
>>> `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.
>
>
> That yields
>
>> [stefan_at_quasimodo tutorial]$ bjam
>> 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 /usr/share/boost-build/src ;'
>>
>> but we were unable to find "bootstrap.jam" in the specified directory
>

  There is a src/bootstrap.jam in git, which
is used by Boost's top level boost-build.jam.
This file, however, just forwards to kernel/bootstrap.jam,
so I think your use of src/kernel/bootstrap.jam
is also correct.

>
>> 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.
>
> Removing the file intirely yields:
>
>> [stefan_at_quasimodo tutorial]$ bjam
>> /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'.
>

This is the same error as:

>
>>>> /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.)
>>>

and has the same answer:

>> 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