dart-lang / dart-lang/native

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

Open
#18 0 comments 0 reactions 0 assignees View on GitHub
P4 package:native_toolchain_c type-code-health
Dominant language
Dart
Stars
275
Forks
144
Avg merge
2d 10h
Merged PRs (30d)
47

Description

```
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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.