Boost logo

Boost-Build :

Subject: Re: [Boost-build] Bug concerning --help, --version, etc.
From: Michael Rolle (m_at_[hidden])
Date: 2014-11-17 16:27:16

1. I believe bjam couldn't find the build system because of the mistake in libs/python/examle/boost-build.jam, which I have reported elsewhere.

2. I didn't notice the -h or -v switches. I now see that --help lists -v. But there is no -h. -v is different from --version in its output.

3. I see that I get the same problem whether there is a jamfile or not. bjam first looks for boost-build.jam, so if I run bjam from, say, C:\, I get the message about no build system, and no --help.

4. If bjam.exe will process -v before trying to load the build system, then couldn't you also look for --help and --verbose as well, rather than passing those args to the build system once it is found? So I beg to disagree with you when you say my proposed change can't be done.

Thanks for answering me quickly.

Michael Rolle
(408) 313-8149
  ----- Original Message -----
  From: Rene Rivera
  To: Boost.Build developer's and user's list
  Sent: Monday, November 17, 2014 8:14 AM
  Subject: Re: [Boost-build] Bug concerning --help, --version, etc.

  By the way.. Thanks for reporting on your experiences. Getting first time impressions of build usage it some we wish had more of...

  On Sun, Nov 16, 2014 at 8:56 PM, Michael Rolle <m_at_[hidden]> wrote:

    I was trying to build something when I didn't have my environment set up correctly. Basically there was a problem initializing the boot system, which the bjam command reported. I tried 'bjam --help', and I got the same error message.

  I'm guessing it was complaining that it couldn't find the build system? Could you post the commands you followed to get this stage?
    If there is no jamfile, the --help and --version options work fine. But in the case where there is a jamfile or jamroot present, bjam tries to initialize the build system first, before checking for --help or --version. These command line arguments are supposed to only print the corresponding information and nothing else.

    So what I would like you to fix is for bjam to check these options on the command line and then exit, before trying to perform the build.

  Unfortunately it's not possible. All the "--[ooption]" arguments are parsed after the base b2 is loaded. I.e. they are parsed as part of the BBv2 build system which is external to the executable. And hence it needs to find and load the build system (as opposed to just the interpreter core) before handling those. But since you didn't get that far all it can say is that it failed to find the build system. Note, the single dash options like "-h" and "-v" still work.


  -- Rene Rivera
  -- Grafik - Don't Assume Anything
  -- Robot Dreams -
  -- rrivera/ (msn) - grafikrobot/aim,yahoo,skype,efnet,gmail


  Unsubscribe & other changes:

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