[build2] build2 0.9.0 bootstrap build failure

Boris Kolpackov boris at codesynthesis.com
Fri Feb 22 11:18:46 UTC 2019

Matthew Krupcale <mkrupcale at matthewkrupcale.com> writes:

> I'm glad to see the latest release of build2. I've started building it
> on Fedora[1], [...]

Thanks and it's great to see you are back on it.

> The line of issue appears to be libbutl/diagnostics.cxx:137 inside
> ~diag_stream_lock where diag_term is accessed but is empty:

Yeah, that's our bug, thanks for the report. Here is the patch:


> I'm not entirely sure what the issue here is because it looks like the
> libbutl/diagnostics.{c,m}xx files haven't been touched in a while, and
> the 0.8.0 builds didn't fail in this way.

I think this is a combination of two things:

1. We switched to using std::optional where it's available (like GCC 8).


I would prefer not to go through a bugfix release just yet in case
anything else shakes out. Do you think you can apply the patch as
part of your build?

More information about the users mailing list