Skip to content

Build graph lib failed to run weighted_matching_test2.exe on Windows with MSVC #426

Open
@LinWrSpace

Description

@LinWrSpace

Issue Description:
Found Boost\libs\graph failed to build due to run weighted_matching_test2.exe on Windows with MSVC, this issue can be reproduced on 6f50c3c commit of Boost master branch. Could you please take a look? Thanks in advance.

Reproduce Steps:

  1. git clone -c core.autocrlf=true --recursive ​https://github.com/boostorg/boost.git f:\Boost
  2. open a VS 2022 x64 command prompt and browse to f:\Boost
  3. .\bootstrap
  4. .\b2 headers variant=debug--build-dir=C:\gitP\boostorg\boost\amd64 address-model=64 architecture=x86
  5. .\b2 variant=debug--build-dir=C:\gitP\boostorg\boost\amd64 address-model=64 architecture=x86
  6. .\b2 -j16 variant=debug --build-dir=C:\gitP\boostorg\boost\amd64 libs\graph\test address-model=64

graph_test.log

ErrorMessage:
...
msvc.link C:\gitP\boostorg\boost\amd64\boost\bin.v2\libs\graph\test\weighted_matching_test2.test\msvc-14.3\debug\x86_64\threading-multi\weighted_matching_test2.exe
testing.capture-output C:\gitP\boostorg\boost\amd64\boost\bin.v2\libs\graph\test\weighted_matching_test.test\msvc-14.3\debug\x86_64\threading-multi\weighted_matching_test.run
====== BEGIN OUTPUT ======
libs\graph\test\weighted_matching_test.cpp(142): test 'in_file.good()' failed in function 'int __cdecl main(int,char *[])'
1 error detected.

EXIT STATUS: 1
====== END OUTPUT ======
"C:\gitP\boostorg\boost\amd64\boost\bin.v2\libs\graph\test\weighted_matching_test.test\msvc-14.3\debug\x86_64\threading-multi\weighted_matching_test.exe" > "C:\gitP\boostorg\boost\amd64\boost\bin.v2\libs\graph\test\weighted_matching_test.test\msvc-14.3\debug\x86_64\threading-multi\weighted_matching_test.output" 2>&1
set status=%ERRORLEVEL%
echo. >> "C:\gitP\boostorg\boost\amd64\boost\bin.v2\libs\graph\test\weighted_matching_test.test\msvc-14.3\debug\x86_64\threading-multi\weighted_matching_test.output"
echo EXIT STATUS: %status% >> "C:\gitP\boostorg\boost\amd64\boost\bin.v2\libs\graph\test\weighted_matching_test.test\msvc-14.3\debug\x86_64\threading-multi\weighted_matching_test.output"
if %status% EQU 0 (
copy "C:\gitP\boostorg\boost\amd64\boost\bin.v2\libs\graph\test\weighted_matching_test.test\msvc-14.3\debug\x86_64\threading-multi\weighted_matching_test.output" "C:\gitP\boostorg\boost\amd64\boost\bin.v2\libs\graph\test\weighted_matching_test.test\msvc-14.3\debug\x86_64\threading-multi\weighted_matching_test.run" >NUL
)
set verbose=0
if %status% NEQ 0 (
set verbose=1
)
if %verbose% EQU 1 (
echo ====== BEGIN OUTPUT ======
type "C:\gitP\boostorg\boost\amd64\boost\bin.v2\libs\graph\test\weighted_matching_test.test\msvc-14.3\debug\x86_64\threading-multi\weighted_matching_test.output"
echo ====== END OUTPUT ======
)
exit %status%

...failed testing.capture-output C:\gitP\boostorg\boost\amd64\boost\bin.v2\libs\graph\test\weighted_matching_test.test\msvc-14.3\debug\x86_64\threading-multi\weighted_matching_test.run...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions