Skip to content

[native_toolchain_c][msvc] Looking up the version for lib.exe fails on GitHub CI #18

@dcharkes

Description

@dcharkes
INFO: 2023-04-26 09:25:11.229031: Running `C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.16.27023\bin\HostX64\x86\lib.exe /version`.

FINE: 2023-04-26 09:25:11.855106:   Microsoft (R) Library Manager Version 14.16.27049.0
Copyright (C) Microsoft Corporation.  All rights reserved.

FINE: 2023-04-26 09:25:11.870726:   LINK : fatal error LNK1171: unable to load mspdbcore.dll (error code: 126)
❌ test\cbuilder\cbuilder_cross_windows_host_test.dart: Cbuilder static library windows_ia32 (failed)

The same succeeds locally with C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215.

Maybe running the executable fails because it requires a vcvars environment.

Currently our version lookup logic does not support passing in custom environments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4A feature or bug we're unlikely to addresspackage:native_toolchain_ctype-code-healthInternal changes to our tools and workflows to make them cleaner, simpler, or more maintainable

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions