Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Draft
wants to merge 57 commits into
base: master
Choose a base branch
from

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.

No NETFXSDK installed.

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: 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

@FrankXie05 FrankXie05 added the requires:testing Needs tests added before merging label Nov 13, 2024
ports/msvc/portfile.cmake Outdated Show resolved Hide resolved
ports/msvc/msvc-env.cmake Outdated Show resolved Hide resolved
@Neumann-A Neumann-A force-pushed the windows-triplet-without-installed-msvc branch from 7538913 to 13f4af9 Compare November 13, 2024 22:55
ports/msvc/vcpkg.json Outdated Show resolved Hide resolved
triplets/x64-windows.cmake Outdated Show resolved Hide resolved
@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

@Neumann-A
Copy link
Contributor Author

@dg0yt I see a few test ports failing here due to missing debug stuff. You probably know better than me how to easily make them single config compatible.

@Neumann-A
Copy link
Contributor Author

@dg0yt: Got a new tab for your bazel toolchain tabs: https://pigweed.dev/docs/blog/06-better-cpp-toolchains.html

@Neumann-A
Copy link
Contributor Author

cppmicrososervices: Wrong usage of PRIVATE_HEADERS
physx: single config issue
pdcurse: nmake -> needs to be investigated.

…ithout-installed-msvc

# Conflicts:
#	ports/g2o/portfile.cmake
#	ports/mongo-c-driver/vcpkg.json
…ithout-installed-msvc

# Conflicts:
#	ports/cppmicroservices/devendor_boost_absl.patch
#	ports/crashpad/vcpkg.json
#	ports/curlpp/portfile.cmake
#	ports/fltk/portfile.cmake
#	ports/g2o/fix-absolute.patch
#	ports/krb5/vcpkg.json
#	ports/physx/portfile.cmake
#	ports/usd/vcpkg.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
requires:testing Needs tests added before merging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants