[build2] Crash on Windows v0.6.1

Klaim - Joël Lamotte mjklaim at gmail.com
Thu Dec 7 16:32:42 UTC 2017


I am back on getting back on experimenting with build2
and I was trying to re-do the tutorial but hit an assert violation.
In the tutorial it's when we try to bind a new project to a build directory
containing
the dependencies of that project. Here is my log and attempts:

G:\perso\experiments\lol>b config.cxx=cl
config.import.libhello=../lol-vs2017-debug
Assertion failed: rt != nullptr, file
G:\perso\build2-build\build2-toolchain-0.6.2.tar\build2-toolchain-0.6\build2-0.6.1\build2\algorithm.cxx,
line 1231
Assertion failed: rt != nullptr, file
G:\perso\build2-build\build2-toolchain-0.6.2.tar\build2-toolchain-0.6\build2-0.6.1\build2\algorithm.cxx,
line 1231

G:\perso\experiments\lol>b config.cxx=cl
config.import.libhello=G:\perso\experiments\lol-vs2017-debug
Assertion failed: rt != nullptr, file
G:\perso\build2-build\build2-toolchain-0.6.2.tar\build2-toolchain-0.6\build2-0.6.1\build2\algorithm.cxx,
line 1231
Assertion failed: rt != nullptr, file
G:\perso\build2-build\build2-toolchain-0.6.2.tar\build2-toolchain-0.6\build2-0.6.1\build2\algorithm.cxx,
line 1231
 10% of targets updated
G:\perso\experiments\lol>b config.cxx=cl
config.import.libhello="G:\\perso\\experiments\\lol-vs2017-debug"
Assertion failed: rt != nullptr, file
G:\perso\build2-build\build2-toolchain-0.6.2.tar\build2-toolchain-0.6\build2-0.6.1\build2\algorithm.cxx,
line 1231
Assertion failed: rt != nullptr, file
G:\perso\build2-build\build2-toolchain-0.6.2.tar\build2-toolchain-0.6\build2-0.6.1\build2\algorithm.cxx,
line 1231
 20% of targets updated
G:\perso\experiments\lol>b config.cxx=cl
config.import.libhello="G:\perso\experiments\lol-vs2017-debug"
Assertion failed: rt != nullptr, file
G:\perso\build2-build\build2-toolchain-0.6.2.tar\build2-toolchain-0.6\build2-0.6.1\build2\algorithm.cxx,
line 1231
Assertion failed: rt != nullptr, file
G:\perso\build2-build\build2-toolchain-0.6.2.tar\build2-toolchain-0.6\build2-0.6.1\build2\algorithm.cxx,
line 1231
 10% of targets updated
G:\perso\experiments\lol>b --version
build2 0.6.1
libbutl 0.6.0
host x86_64-microsoft-win32-msvc14.0
Copyright (c) 2014-2017 Code Synthesis Ltd
This is free software released under the MIT license.



Looking quickly at the code (I'm not familiar with it yet), I suspect that:
 - it might be a "correct" state that should have lead to an error message
if the assert was not
triggered, aka in non-debug build of build2?
 - if the issue is that the path is incorrect, then I should have that info
instead of an assert,
   even if debug?
 - I'm not sure which path syntax is acceptable on Windows for build2 (all
my attempts failed anyway);

Note that everything previous to this point int the tutorial happened as
expected (except that the dependencies of hello project changed apparently).


A. Joël Lamotte
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.build2.org/archives/users/attachments/20171207/5dca406f/attachment.html>


More information about the users mailing list