microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
22.8k stars 6.3k forks source link

[zeroc-ice] build failure #30726

Closed ethindp closed 9 months ago

ethindp commented 1 year ago

Operating system

x64-windows

Compiler

MSVC 19.35.32215.0

Steps to reproduce the behavior

`vcpkg install --triplet x64-windows-static-md zeroc-ice[*]`

Failure logs

-- Using cached zeroc-ice-ice-v3.7.7.tar.gz.
-- Extracting source C:/Users/ethin/source/vcpkg/downloads/zeroc-ice-ice-v3.7.7.tar.gz
-- Applying patch md5i_fix.patch
-- Applying patch slice2swift.patch
-- Applying patch mcppd_fix.patch
-- Applying patch no-werror.patch
-- Using source at C:/Users/ethin/source/vcpkg/buildtrees/zeroc-ice/src/v3.7.7-2e74ef0800.clean
-- Modifying hardcoded 'RuntimeLibrary' directives in .vcxproj files
-- Making Ice Builder for MSBuild available
-- Using cached zeroc.icebuilder.msbuild.5.0.7.zip.
-- Extracting source C:/Users/ethin/source/vcpkg/downloads/zeroc.icebuilder.msbuild.5.0.7.zip
-- Using source at C:/Users/ethin/source/vcpkg/buildtrees/zeroc-ice/src/icebuilder-4d99866beb.clean
-- Building cpp/msbuild/ice.v143.sln for Release
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message):
    Command failed: msbuild C:/Users/ethin/source/vcpkg/buildtrees/zeroc-ice/x64-windows-static-md-rel/v3.7.7-2e74ef0800.clean/cpp/msbuild/ice.v143.sln /p:Configuration=Release /p:UseVcpkg=yes /p:IceBuildingSrc=yes /t:C++11\\icessl++11 /t:C++11\\glacier2++11 /t:C++98\\glacier2router /t:C++98\\glacier2cryptpermissionsverifier /t:C++11\\iceboxlib++11 /t:C++11\\icebox++11 /t:C++98\\iceboxadmin /t:C++11\\icegrid++11 /t:C++98\\icegridadmin /t:C++98\\icegridregistry /t:C++98\\icegridnode /t:C++11\\icestorm++11 /t:C++98\\icestormadmin /t:C++98\\icestormservice /t:C++98\\icestormdb /t:C++98\\icebridge /t:C++11\\icediscovery++11 /t:C++11\\ice++11 /p:Platform=x64 /p:PlatformToolset=v143 /p:VCPkgLocalAppDataDisabled=true /p:UseIntelMKL=No /p:WindowsTargetPlatformVersion=10.0.22621.0 /p:VcpkgTriplet=x64-windows-static-md /p:VcpkgInstalledDir=C:/Users/ethin/source/vcpkg/installed /p:VcpkgManifestInstall=false /p:UseMultiToolTask=true /p:MultiProcMaxCount=9 /p:EnforceProcessCountAcrossBuilds=true /m:9 /p:WholeProgramOptimization=false /p:ForceImportBeforeCppTargets=C:/Users/ethin/source/vcpkg/scripts/buildsystems/msbuild/vcpkg.targets /p:VcpkgApplocalDeps=false
    Working Directory: C:/Users/ethin/source/vcpkg/buildtrees/zeroc-ice/x64-windows-static-md-rel/v3.7.7-2e74ef0800.clean
    Error code: 1
    See logs for more information:
      C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\build-x64-windows-static-md-rel-out.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_install_msbuild.cmake:79 (vcpkg_execute_required_process)
  ports/zeroc-ice/portfile.cmake:267 (vcpkg_install_msbuild)
  scripts/ports.cmake:147 (include)
C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\build-x64-windows-static-md-rel-out.log ``` MSBuild version 17.5.0+6f08c67f3 for .NET Framework Build started 4/7/2023 10:48:54 PM. Included response file: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\MSBuild.rsp 1>Project "C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\msbuild\ice.v143.sln" on node 1 (C++11\icessl++11;C++11\glacier2++11;C++98\glacier2router;C++98\glacier2cryptpermissionsverifier;C++11\iceboxlib++11;C++11\icebox++11;C++98\iceboxadmin;C++11\icegrid++11;C++98\icegridadmin;C++98\icegridregistry;C++98\icegridnode;C++11\icestorm++11;C++98\icestormadmin;C++98\icestormservice;C++98\icestormdb;C++98\icebridge;C++11\icediscovery++11;C++11\ice++11 target(s)). 1>ValidateSolutionConfiguration: Building solution configuration "Release|x64". 1>Project "C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\msbuild\ice.v143.sln" (1) is building "C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\src\IceSSL\msbuild\icessl++11\icessl++11.vcxproj.metaproj" (2) on node 1 (default targets). 2>Project "C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\src\IceSSL\msbuild\icessl++11\icessl++11.vcxproj.metaproj" (2) is building "C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\src\Ice\msbuild\ice++11\ice++11.vcxproj.metaproj" (3) on node 1 (default targets). 3>Project "C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\src\Ice\msbuild\ice++11\ice++11.vcxproj.metaproj" (3) is building "C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\src\slice2cpp\msbuild\slice2cpp.vcxproj.metaproj" (4) on node 1 (default targets). 4>Project "C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\src\slice2cpp\msbuild\slice2cpp.vcxproj.metaproj" (4) is building "C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\src\Slice\msbuild\slice.vcxproj.metaproj" (5) on node 1 (default targets). 5>Project "C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\src\Slice\msbuild\slice.vcxproj.metaproj" (5) is building "C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\src\IceUtil\msbuild\iceutil\iceutil.vcxproj" (6) on node 1 (default targets). 6>PrepareForBuild: Creating directory "x64\Release\". Creating directory "C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\msbuild\..\..\cpp\lib\x64\Release\". Creating directory "x64\Release\iceutil.tlog\". InitializeBuildStatus: Creating "x64\Release\iceutil.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified. ... Skipped 1556 lines ... C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\bin\HostX64\x64\CL.exe /c /Ix64\Release\ /I"C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\msbuild\..\..\cpp\include\generated\cpp98\x64\Release" /I"C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\msbuild\..\..\cpp\include" /I"C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\msbuild\..\..\cpp\src" /I"C:/Users/ethin/source/vcpkg/installed\x64-windows-static-md\include" /Zi /nologo /W4 /WX /diagnostics:column /FS /O2 /Oy- /D ICE_BUILDING_SRC /D NDEBUG /D _CONSOLE /D _WIN32_WINNT=0x601 /D WIN32_LEAN_AND_MEAN /Gm- /EHsc /MD /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"x64\Release\\" /Fd"x64\Release\glacier2router-objs.pdb" /external:W4 /Gd /TP /wd4121 /wd4250 /wd4251 /wd4275 /wd4324 /FC /errorReport:queue /bigobj "..\InstrumentationI.cpp" C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\bin\HostX64\x64\CL.exe /c /Ix64\Release\ /I"C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\msbuild\..\..\cpp\include\generated\cpp98\x64\Release" /I"C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\msbuild\..\..\cpp\include" /I"C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\msbuild\..\..\cpp\src" /I"C:/Users/ethin/source/vcpkg/installed\x64-windows-static-md\include" /Zi /nologo /W4 /WX /diagnostics:column /FS /O2 /Oy- /D ICE_BUILDING_SRC /D NDEBUG /D _CONSOLE /D _WIN32_WINNT=0x601 /D WIN32_LEAN_AND_MEAN /Gm- /EHsc /MD /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"x64\Release\\" /Fd"x64\Release\glacier2router-objs.pdb" /external:W4 /Gd /TP /wd4121 /wd4250 /wd4251 /wd4275 /wd4324 /FC /errorReport:queue /bigobj "..\ProxyVerifier.cpp" C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\bin\HostX64\x64\CL.exe /c /Ix64\Release\ /I"C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\msbuild\..\..\cpp\include\generated\cpp98\x64\Release" /I"C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\msbuild\..\..\cpp\include" /I"C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\msbuild\..\..\cpp\src" /I"C:/Users/ethin/source/vcpkg/installed\x64-windows-static-md\include" /Zi /nologo /W4 /WX /diagnostics:column /FS /O2 /Oy- /D ICE_BUILDING_SRC /D NDEBUG /D _CONSOLE /D _WIN32_WINNT=0x601 /D WIN32_LEAN_AND_MEAN /Gm- /EHsc /MD /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"x64\Release\\" /Fd"x64\Release\glacier2router-objs.pdb" /external:W4 /Gd /TP /wd4121 /wd4250 /wd4251 /wd4275 /wd4324 /FC /errorReport:queue /bigobj "..\RequestQueue.cpp" FilterI.cpp InstrumentationI.cpp RequestQueue.cpp Instance.cpp Glacier2Router.cpp ClientBlobject.cpp ProxyVerifier.cpp FilterManager.cpp Blobject.cpp C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\bin\HostX64\x64\CL.exe /c /Ix64\Release\ /I"C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\msbuild\..\..\cpp\include\generated\cpp98\x64\Release" /I"C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\msbuild\..\..\cpp\include" /I"C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\msbuild\..\..\cpp\src" /I"C:/Users/ethin/source/vcpkg/installed\x64-windows-static-md\include" /Zi /nologo /W4 /WX /diagnostics:column /FS /O2 /Oy- /D ICE_BUILDING_SRC /D NDEBUG /D _CONSOLE /D _WIN32_WINNT=0x601 /D WIN32_LEAN_AND_MEAN /Gm- /EHsc /MD /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"x64\Release\\" /Fd"x64\Release\glacier2router-objs.pdb" /external:W4 /Gd /TP /wd4121 /wd4250 /wd4251 /wd4275 /wd4324 /FC /errorReport:queue /bigobj "..\RouterI.cpp" RouterI.cpp C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\bin\HostX64\x64\CL.exe /c /Ix64\Release\ /I"C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\msbuild\..\..\cpp\include\generated\cpp98\x64\Release" /I"C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\msbuild\..\..\cpp\include" /I"C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\msbuild\..\..\cpp\src" /I"C:/Users/ethin/source/vcpkg/installed\x64-windows-static-md\include" /Zi /nologo /W4 /WX /diagnostics:column /FS /O2 /Oy- /D ICE_BUILDING_SRC /D NDEBUG /D _CONSOLE /D _WIN32_WINNT=0x601 /D WIN32_LEAN_AND_MEAN /Gm- /EHsc /MD /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"x64\Release\\" /Fd"x64\Release\glacier2router-objs.pdb" /external:W4 /Gd /TP /wd4121 /wd4250 /wd4251 /wd4275 /wd4324 /FC /errorReport:queue /bigobj "..\RoutingTable.cpp" C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\bin\HostX64\x64\CL.exe /c /Ix64\Release\ /I"C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\msbuild\..\..\cpp\include\generated\cpp98\x64\Release" /I"C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\msbuild\..\..\cpp\include" /I"C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\msbuild\..\..\cpp\src" /I"C:/Users/ethin/source/vcpkg/installed\x64-windows-static-md\include" /Zi /nologo /W4 /WX /diagnostics:column /FS /O2 /Oy- /D ICE_BUILDING_SRC /D NDEBUG /D _CONSOLE /D _WIN32_WINNT=0x601 /D WIN32_LEAN_AND_MEAN /Gm- /EHsc /MD /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"x64\Release\\" /Fd"x64\Release\glacier2router-objs.pdb" /external:W4 /Gd /TP /wd4121 /wd4250 /wd4251 /wd4275 /wd4324 /FC /errorReport:queue /bigobj "..\ServerBlobject.cpp" C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\bin\HostX64\x64\CL.exe /c /Ix64\Release\ /I"C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\msbuild\..\..\cpp\include\generated\cpp98\x64\Release" /I"C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\msbuild\..\..\cpp\include" /I"C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\msbuild\..\..\cpp\src" /I"C:/Users/ethin/source/vcpkg/installed\x64-windows-static-md\include" /Zi /nologo /W4 /WX /diagnostics:column /FS /O2 /Oy- /D ICE_BUILDING_SRC /D NDEBUG /D _CONSOLE /D _WIN32_WINNT=0x601 /D WIN32_LEAN_AND_MEAN /Gm- /EHsc /MD /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"x64\Release\\" /Fd"x64\Release\glacier2router-objs.pdb" /external:W4 /Gd /TP /wd4121 /wd4250 /wd4251 /wd4275 /wd4324 /FC /errorReport:queue /bigobj "..\SessionRouterI.cpp" C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\bin\HostX64\x64\CL.exe /c /Ix64\Release\ /I"C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\msbuild\..\..\cpp\include\generated\cpp98\x64\Release" /I"C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\msbuild\..\..\cpp\include" /I"C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\msbuild\..\..\cpp\src" /I"C:/Users/ethin/source/vcpkg/installed\x64-windows-static-md\include" /Zi /nologo /W4 /WX /diagnostics:column /FS /O2 /Oy- /D ICE_BUILDING_SRC /D NDEBUG /D _CONSOLE /D _WIN32_WINNT=0x601 /D WIN32_LEAN_AND_MEAN /Gm- /EHsc /MD /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"x64\Release\\" /Fd"x64\Release\glacier2router-objs.pdb" /external:W4 /Gd /TP /wd4121 /wd4250 /wd4251 /wd4275 /wd4324 /FC /errorReport:queue /bigobj "x64\Release\Instrumentation.cpp" RoutingTable.cpp ServerBlobject.cpp SessionRouterI.cpp Instrumentation.cpp ResourceCompile: C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64\rc.exe /l"0x0409" /I"C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\msbuild\..\..\cpp\include" /I"C:/Users/ethin/source/vcpkg/installed\x64-windows-static-md\include" /nologo /fo"x64\Release\Glacier2Router.res" ..\Glacier2Router.rc Link: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\bin\HostX64\x64\link.exe /ERRORREPORT:QUEUE /OUT:"C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\msbuild\..\..\cpp\bin\x64\Release\glacier2router.exe" /INCREMENTAL:NO /NOLOGO /LIBPATH:"C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\msbuild\..\..\cpp\lib\x64\Release" /LIBPATH:"C:/Users/ethin/source/vcpkg/installed\x64-windows-static-md\lib" /LIBPATH:"C:/Users/ethin/source/vcpkg/installed\x64-windows-static-md\lib\manual-link" wsetargv.obj "C:/Users/ethin/source/vcpkg/installed\x64-windows-static-md\lib\*.lib" /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG:FULL /PDB:"C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\msbuild\..\..\cpp\bin\x64\Release\glacier2router.pdb" /OPT:REF /OPT:ICF /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\msbuild\..\..\cpp\bin\x64\Release\glacier2router.lib" /MACHINE:X64 /OPT:NOLBR x64\Release\Glacier2Router.res x64\Release\Blobject.obj x64\Release\ClientBlobject.obj x64\Release\FilterI.obj x64\Release\FilterManager.obj x64\Release\Glacier2Router.obj x64\Release\Instance.obj x64\Release\InstrumentationI.obj x64\Release\ProxyVerifier.obj x64\Release\RequestQueue.obj x64\Release\RouterI.obj x64\Release\RoutingTable.obj x64\Release\ServerBlobject.obj x64\Release\SessionRouterI.obj x64\Release\Instrumentation.obj 20>LINK : fatal error LNK1104: cannot open file 'Ice37.lib' [C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\src\Glacier2\msbuild\glacier2router.vcxproj] 20>Done Building Project "C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\src\Glacier2\msbuild\glacier2router.vcxproj" (default targets) -- FAILED. 13>Done Building Project "C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\src\Glacier2\msbuild\glacier2router.vcxproj.metaproj" (default targets) -- FAILED. 1>Done Building Project "C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\msbuild\ice.v143.sln" (C++11\icessl++11;C++11\glacier2++11;C++98\glacier2router;C++98\glacier2cryptpermissionsverifier;C++11\iceboxlib++11;C++11\icebox++11;C++98\iceboxadmin;C++11\icegrid++11;C++98\icegridadmin;C++98\icegridregistry;C++98\icegridnode;C++11\icestorm++11;C++98\icestormadmin;C++98\icestormservice;C++98\icestormdb;C++98\icebridge;C++11\icediscovery++11;C++11\ice++11 target(s)) -- FAILED. Build FAILED. "C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\msbuild\ice.v143.sln" (C++11\icessl++11;C++11\glacier2++11;C++98\glacier2router;C++98\glacier2cryptpermissionsverifier;C++11\iceboxlib++11;C++11\icebox++11;C++98\iceboxadmin;C++11\icegrid++11;C++98\icegridadmin;C++98\icegridregistry;C++98\icegridnode;C++11\icestorm++11;C++98\icestormadmin;C++98\icestormservice;C++98\icestormdb;C++98\icebridge;C++11\icediscovery++11;C++11\ice++11 target) (1) -> "C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\src\Glacier2\msbuild\glacier2router.vcxproj.metaproj" (default target) (13) -> "C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\src\Glacier2\msbuild\glacier2router.vcxproj" (default target) (20) -> (Link target) -> LINK : fatal error LNK1104: cannot open file 'Ice37.lib' [C:\Users\ethin\source\vcpkg\buildtrees\zeroc-ice\x64-windows-static-md-rel\v3.7.7-2e74ef0800.clean\cpp\src\Glacier2\msbuild\glacier2router.vcxproj] 0 Warning(s) 1 Error(s) Time Elapsed 00:04:07.84 ```

Additional context

The official x64-windows-static triplet doesn't work because that triplet uses a static CRT, and the dynamic CRT is required.

Cheney-W commented 1 year ago

LINK : fatal error LNK1104: cannot open file 'Ice37.lib' This issue could be reproduced with vcpkg 2023-04-07-bedcba5172f5e4b91caac660ab7afe92c27a9895 and VS2022 17.4.5.

bold84 commented 1 year ago

I will have a look at it in a few hours.

bold84 commented 1 year ago

It looks like Ice doesn't support linking against static libraries for its executables.

I have made changes accordingly and updated to 3.7.9. https://github.com/microsoft/vcpkg/pull/31119

bold84 commented 1 year ago

@ethindp You can install static libs with

vcpkg.exe install zeroc-ice[glacier2lib,iceboxlib,icegridlib,icestormlib]:x64-windows-static-md

ethindp commented 1 year ago

Ah okay, thanks.

PhoebeHui commented 1 year ago

Hi @ethindp, verified with vcpkg latest source, vcpkg.exe install zeroc-ice[glacier2lib,icegridlib,icestormlib]:x64-windows-static-md install successfully, feature 'iceboxlib' doesn't support, does that work for you? can we close this issue now?

github-actions[bot] commented 9 months ago

This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 180 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.