Skip to content

[POC|Invalid] Testing vcpkg without installed MSVC#42129

Draft
Neumann-A wants to merge 119 commits intomicrosoft:masterfrom
Neumann-A:windows-triplet-without-installed-msvc
Draft

[POC|Invalid] Testing vcpkg without installed MSVC#42129
Neumann-A wants to merge 119 commits intomicrosoft:masterfrom
Neumann-A:windows-triplet-without-installed-msvc

Conversation

@Neumann-A
Copy link
Contributor

@Neumann-A Neumann-A commented Nov 12, 2024

Hijacking x64-windows CI for this.

wished somebody would make Visual Studio truly portable. MSBuild looking up all those reg keys is a bit annoying.

Also what are all those different versions about and why don't any of those correlate to the folder version names.

Build system check:

  • cmake
  • autotools
  • meson
  • bazel
  • qmake (seems to just work)
  • msbuild (needs ENV{WindowsSDKVersion} fixed) fixed it here

Already pretty good:

development of failures
SUMMARY FOR x64-windows
  SUCCEEDED: 859
  BUILD_FAILED: 2
REGRESSIONS:
REGRESSION: cppwinrt:x64-windows failed with BUILD_FAILED. If expected, add cppwinrt:x64-windows=fail to D:\a\_work\1\s\scripts\azure-pipelines/../ci.baseline.txt. # unable to reproduce locally
REGRESSION: kfr:x64-windows failed with BUILD_FAILED. If expected, add kfr:x64-windows=fail to D:\a\_work\1\s\scripts\azure-pipelines/../ci.baseline.txt. # dont even now how this works in CI
REGRESSION: qt:x64-windows cascaded, but it is required to pass. (D:\a\_work\1\s\scripts\azure-pipelines/../ci.baseline.txt). # because qtwebengine is deactivated in this PR

-> Overall it works. 
SUMMARY FOR x64-windows
  SUCCEEDED: 2120
  BUILD_FAILED: 36
  POST_BUILD_CHECKS_FAILED: 10
  CASCADED_DUE_TO_MISSING_DEPENDENCIES: 225
SUMMARY FOR x64-windows
  SUCCEEDED: 2144
  BUILD_FAILED: 57
  POST_BUILD_CHECKS_FAILED: 9
  CASCADED_DUE_TO_MISSING_DEPENDENCIES: 182

SUMMARY FOR x64-windows
  SUCCEEDED: 2264
  BUILD_FAILED: 35
  POST_BUILD_CHECKS_FAILED: 9
  CASCADED_DUE_TO_MISSING_DEPENDENCIES: 90

SUMMARY FOR x64-windows
  SUCCEEDED: 2268
  BUILD_FAILED: 35
  POST_BUILD_CHECKS_FAILED: 9
  CASCADED_DUE_TO_MISSING_DEPENDENCIES: 89

 SUCCEEDED: 1464
  BUILD_FAILED: 26
  POST_BUILD_CHECKS_FAILED: 7
  CASCADED_DUE_TO_MISSING_DEPENDENCIES: 84
SUMMARY FOR x64-windows
  SUCCEEDED: 731
  BUILD_FAILED: 27
  CASCADED_DUE_TO_MISSING_DEPENDENCIES: 62
SUMMARY FOR x64-windows
  SUCCEEDED: 2314
  BUILD_FAILED: 27
  CASCADED_DUE_TO_MISSING_DEPENDENCIES: 61
SUMMARY FOR x64-windows
  SUCCEEDED: 2184
  BUILD_FAILED: 26
  POST_BUILD_CHECKS_FAILED: 1
  CASCADED_DUE_TO_MISSING_DEPENDENCIES: 16
SUMMARY FOR x64-windows
  SUCCEEDED: 859 # not full rebuild, just what was broken/changed
  BUILD_FAILED: 2 # kfr & cppwinrt (which works locally). 
SUMMARY FOR x64-windows
  SUCCEEDED: 2406
  BUILD_FAILED: 4
REGRESSIONS:
REGRESSION: apriltag:x64-windows failed with BUILD_FAILED. If expected, add apriltag:x64-windows=fail to D:\a\_work\1\s\scripts\azure-pipelines/../ci.baseline.txt.
REGRESSION: cppwinrt:x64-windows failed with BUILD_FAILED. If expected, add cppwinrt:x64-windows=fail to D:\a\_work\1\s\scripts\azure-pipelines/../ci.baseline.txt.
REGRESSION: kfr:x64-windows failed with BUILD_FAILED. If expected, add kfr:x64-windows=fail to D:\a\_work\1\s\scripts\azure-pipelines/../ci.baseline.txt.
REGRESSION: openvino:x64-windows failed with BUILD_FAILED. If expected, add openvino:x64-windows=fail to D:\a\_work\1\s\scripts\azure-pipelines/../ci.baseline.txt.
REGRESSION: qt:x64-windows cascaded, but it is required to pass. (D:\a\_work\1\s\scripts\azure-pipelines/../ci.baseline.txt).

Current Status:

SUMMARY FOR x64-windows
  SUCCEEDED: 2406
  BUILD_FAILED: 4
REGRESSIONS:
REGRESSION: apriltag:x64-windows failed with BUILD_FAILED.
REGRESSION: cppwinrt:x64-windows failed with BUILD_FAILED.  (works locally)
REGRESSION: kfr:x64-windows failed with BUILD_FAILED. (works locally)
REGRESSION: openvino:x64-windows failed with BUILD_FAILED. (baseline?)
REGRESSION: qt:x64-windows cascaded, (qtwebengine disabled).

@Neumann-A Neumann-A force-pushed the windows-triplet-without-installed-msvc branch from 7538913 to 13f4af9 Compare November 13, 2024 22:55
@Neumann-A
Copy link
Contributor Author

Neumann-A commented Nov 17, 2024

Already pretty good:

development of failures
SUMMARY FOR x64-windows
  SUCCEEDED: 2120
  BUILD_FAILED: 36
  POST_BUILD_CHECKS_FAILED: 10
  CASCADED_DUE_TO_MISSING_DEPENDENCIES: 225
SUMMARY FOR x64-windows
  SUCCEEDED: 2144
  BUILD_FAILED: 57
  POST_BUILD_CHECKS_FAILED: 9
  CASCADED_DUE_TO_MISSING_DEPENDENCIES: 182

SUMMARY FOR x64-windows
  SUCCEEDED: 2264
  BUILD_FAILED: 35
  POST_BUILD_CHECKS_FAILED: 9
  CASCADED_DUE_TO_MISSING_DEPENDENCIES: 90

SUMMARY FOR x64-windows
  SUCCEEDED: 2268
  BUILD_FAILED: 35
  POST_BUILD_CHECKS_FAILED: 9
  CASCADED_DUE_TO_MISSING_DEPENDENCIES: 89

 SUCCEEDED: 1464
  BUILD_FAILED: 26
  POST_BUILD_CHECKS_FAILED: 7
  CASCADED_DUE_TO_MISSING_DEPENDENCIES: 84
SUMMARY FOR x64-windows
  SUCCEEDED: 731
  BUILD_FAILED: 27
  CASCADED_DUE_TO_MISSING_DEPENDENCIES: 62
SUMMARY FOR x64-windows
  SUCCEEDED: 2314
  BUILD_FAILED: 27
  CASCADED_DUE_TO_MISSING_DEPENDENCIES: 61
SUMMARY FOR x64-windows
  SUCCEEDED: 2184
  BUILD_FAILED: 26
  POST_BUILD_CHECKS_FAILED: 1
  CASCADED_DUE_TO_MISSING_DEPENDENCIES: 16

Current Status:

SUMMARY FOR x64-windows
  SUCCEEDED: 2377
  BUILD_FAILED: 20
  POST_BUILD_CHECKS_FAILED: 2
  CASCADED_DUE_TO_MISSING_DEPENDENCIES: 2

@Neumann-A
Copy link
Contributor Author

Neumann-A commented Nov 21, 2024

Fix for using the Visual Studio Generator:

a) Install /VC/Auxiliary/Build/Microsoft.VCToolsVersion.default.txt from the v143 version
b)

   set(CMAKE_GENERATOR_INSTANCE "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/VS/,version=17.12.35410.122" CACHE INTERNAL "")
   set(CMAKE_VS_VERSION_BUILD_NUMBER 17.12.35410.122)

c) list(APPEND CMAKE_TRY_COMPILE_PLATFORM_VARIABLES _VCPKG_INSTALLED_DIR) (for setting CMAKE_GENERATOR_INSTANCE)
d) Update CMake v3.31.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-stale Issue will not be marked as stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants