Subject: Re: [Boost-build] What controls the error messages from"check-target-builds"?
From: Vladimir Prus (ghost_at_[hidden])
Date: 2010-07-31 06:26:55
On Saturday 31 July 2010 12:47:26 John Maddock wrote:
> > All compiler messages are supposed to go to config.log -- does that seem
> > OK?
> Yep, ideal, for future reference where is that file located?
When building Boost C++ Libraries, it's <root>/bin.v2/config.log
> > If so, do you have a recipe where those messages end up in stdout instead?
> Apparently it happens when bjam is invoked from Visual Studio as a custom
> build step, I've personally seen it outside of that when running bjam from
> the command line, but not in a way I can reproduce at present :-(
Strange. The code that redirects output to the file is as follows:
int fd = atoi(log->string);
/* Redirect stdout and stderr, temporary, to the log file. */
original_stdout = dup (0);
original_stderr = dup (1);
dup2 (fd, 0);
dup2 (fd, 1);
I think this is pretty standard solution. Do you think an older version
of bjam may be in use -- in theory, no test will be even compiled in that
case, but maybe it's compiled in a regular way instead.
-- Vladimir Prus http://vladimir_prus.blogspot.com Boost.Build: http://boost.org/boost-build2
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