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

[zlib] Build error on x64-windows #42276

Open
renduiyang opened this issue Nov 21, 2024 · 1 comment
Open

[zlib] Build error on x64-windows #42276

renduiyang opened this issue Nov 21, 2024 · 1 comment
Assignees
Labels
requires:repro The issue is not currently repro-able

Comments

@renduiyang
Copy link

issue_body.md

@Cheney-W
Copy link
Contributor

Package: zlib:[email protected]

Host Environment

  • Host: x64-windows
  • Compiler: MSVC 19.29.30154.0
  • vcpkg-tool version: 2024-11-12-eb492805e92a2c14a230f5c3deb3e89f6771c321
    vcpkg-scripts version: unknown

To Reproduce

vcpkg install zlib

Failure logs

-- Using cached madler-zlib-v1.3.1.tar.gz.
-- Cleaning sources at D:/workspace/environment/vcpkg-2024.11.16/buildtrees/zlib/src/v1.3.1-2e5db616bf.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source D:/workspace/environment/vcpkg-2024.11.16/downloads/madler-zlib-v1.3.1.tar.gz
-- Applying patch 0001-Prevent-invalid-inclusions-when-HAVE_-is-set-to-0.patch
-- Applying patch 0002-build-static-or-shared-not-both.patch
-- Applying patch 0003-android-and-mingw-fixes.patch
-- Using source at D:/workspace/environment/vcpkg-2024.11.16/buildtrees/zlib/src/v1.3.1-2e5db616bf.clean
-- Found external ninja('1.10.2').
-- Configuring x64-windows
-- Building x64-windows-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: D:/workspace/environment/vcpkg-2024.11.16/downloads/tools/cmake-3.30.1-windows/cmake-3.30.1-windows-i386/bin/cmake.exe --build . --config Debug --target install -- -v -j9
    Working Directory: D:/workspace/environment/vcpkg-2024.11.16/buildtrees/zlib/x64-windows-dbg
    See logs for more information:
      D:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\install-x64-windows-dbg-out.log

Call Stack (most recent call first):
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
  ports/zlib/portfile.cmake:26 (vcpkg_cmake_install)
  scripts/ports.cmake:196 (include)



D:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\install-x64-windows-dbg-out.log
Change Dir: 'D:/workspace/environment/vcpkg-2024.11.16/buildtrees/zlib/x64-windows-dbg'

Run Build Command(s): D:/vs2019/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe -v -v -j9 install
[1/18] D:\vs2019\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe   -DNO_FSEEKO -DZLIB_DLL -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_DEPRECATE -ID:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\src\v1.3.1-2e5db616bf.clean -ID:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\x64-windows-dbg /nologo /DWIN32 /D_WINDOWS /utf-8 /MP  /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  -MDd /showIncludes /FoCMakeFiles\zlib.dir\adler32.c.obj /FdCMakeFiles\zlib.dir\ /FS -c D:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\src\v1.3.1-2e5db616bf.clean\adler32.c
[2/18] D:\vs2019\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe   -DNO_FSEEKO -DZLIB_DLL -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_DEPRECATE -ID:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\src\v1.3.1-2e5db616bf.clean -ID:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\x64-windows-dbg /nologo /DWIN32 /D_WINDOWS /utf-8 /MP  /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  -MDd /showIncludes /FoCMakeFiles\zlib.dir\compress.c.obj /FdCMakeFiles\zlib.dir\ /FS -c D:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\src\v1.3.1-2e5db616bf.clean\compress.c
[3/18] D:\vs2019\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe   -DNO_FSEEKO -DZLIB_DLL -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_DEPRECATE -ID:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\src\v1.3.1-2e5db616bf.clean -ID:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\x64-windows-dbg /nologo /DWIN32 /D_WINDOWS /utf-8 /MP  /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  -MDd /showIncludes /FoCMakeFiles\zlib.dir\infback.c.obj /FdCMakeFiles\zlib.dir\ /FS -c D:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\src\v1.3.1-2e5db616bf.clean\infback.c
[4/18] D:\vs2019\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe   -DNO_FSEEKO -DZLIB_DLL -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_DEPRECATE -ID:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\src\v1.3.1-2e5db616bf.clean -ID:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\x64-windows-dbg /nologo /DWIN32 /D_WINDOWS /utf-8 /MP  /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  -MDd /showIncludes /FoCMakeFiles\zlib.dir\deflate.c.obj /FdCMakeFiles\zlib.dir\ /FS -c D:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\src\v1.3.1-2e5db616bf.clean\deflate.c
[5/18] D:\vs2019\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe   -DNO_FSEEKO -DZLIB_DLL -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_DEPRECATE -ID:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\src\v1.3.1-2e5db616bf.clean -ID:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\x64-windows-dbg /nologo /DWIN32 /D_WINDOWS /utf-8 /MP  /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  -MDd /showIncludes /FoCMakeFiles\zlib.dir\gzread.c.obj /FdCMakeFiles\zlib.dir\ /FS -c D:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\src\v1.3.1-2e5db616bf.clean\gzread.c
[6/18] D:\vs2019\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe   -DNO_FSEEKO -DZLIB_DLL -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_DEPRECATE -ID:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\src\v1.3.1-2e5db616bf.clean -ID:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\x64-windows-dbg /nologo /DWIN32 /D_WINDOWS /utf-8 /MP  /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  -MDd /showIncludes /FoCMakeFiles\zlib.dir\gzclose.c.obj /FdCMakeFiles\zlib.dir\ /FS -c D:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\src\v1.3.1-2e5db616bf.clean\gzclose.c
[7/18] D:\vs2019\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe   -DNO_FSEEKO -DZLIB_DLL -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_DEPRECATE -ID:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\src\v1.3.1-2e5db616bf.clean -ID:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\x64-windows-dbg /nologo /DWIN32 /D_WINDOWS /utf-8 /MP  /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  -MDd /showIncludes /FoCMakeFiles\zlib.dir\gzlib.c.obj /FdCMakeFiles\zlib.dir\ /FS -c D:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\src\v1.3.1-2e5db616bf.clean\gzlib.c
[8/18] D:\vs2019\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe   -DNO_FSEEKO -DZLIB_DLL -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_DEPRECATE -ID:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\src\v1.3.1-2e5db616bf.clean -ID:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\x64-windows-dbg /nologo /DWIN32 /D_WINDOWS /utf-8 /MP  /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  -MDd /showIncludes /FoCMakeFiles\zlib.dir\gzwrite.c.obj /FdCMakeFiles\zlib.dir\ /FS -c D:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\src\v1.3.1-2e5db616bf.clean\gzwrite.c
[9/18] D:\vs2019\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe   -DNO_FSEEKO -DZLIB_DLL -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_DEPRECATE -ID:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\src\v1.3.1-2e5db616bf.clean -ID:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\x64-windows-dbg /nologo /DWIN32 /D_WINDOWS /utf-8 /MP  /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  -MDd /showIncludes /FoCMakeFiles\zlib.dir\crc32.c.obj /FdCMakeFiles\zlib.dir\ /FS -c D:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\src\v1.3.1-2e5db616bf.clean\crc32.c
[10/18] D:\vs2019\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe   -DNO_FSEEKO -DZLIB_DLL -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_DEPRECATE -ID:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\src\v1.3.1-2e5db616bf.clean -ID:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\x64-windows-dbg /nologo /DWIN32 /D_WINDOWS /utf-8 /MP  /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  -MDd /showIncludes /FoCMakeFiles\zlib.dir\uncompr.c.obj /FdCMakeFiles\zlib.dir\ /FS -c D:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\src\v1.3.1-2e5db616bf.clean\uncompr.c
[11/18] D:\vs2019\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe   -DNO_FSEEKO -DZLIB_DLL -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_DEPRECATE -ID:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\src\v1.3.1-2e5db616bf.clean -ID:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\x64-windows-dbg /nologo /DWIN32 /D_WINDOWS /utf-8 /MP  /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  -MDd /showIncludes /FoCMakeFiles\zlib.dir\inftrees.c.obj /FdCMakeFiles\zlib.dir\ /FS -c D:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\src\v1.3.1-2e5db616bf.clean\inftrees.c
[12/18] D:\vs2019\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe   -DNO_FSEEKO -DZLIB_DLL -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_DEPRECATE -ID:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\src\v1.3.1-2e5db616bf.clean -ID:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\x64-windows-dbg /nologo /DWIN32 /D_WINDOWS /utf-8 /MP  /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  -MDd /showIncludes /FoCMakeFiles\zlib.dir\inffast.c.obj /FdCMakeFiles\zlib.dir\ /FS -c D:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\src\v1.3.1-2e5db616bf.clean\inffast.c
[13/18] D:\vs2019\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe   -DNO_FSEEKO -DZLIB_DLL -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_DEPRECATE -ID:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\src\v1.3.1-2e5db616bf.clean -ID:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\x64-windows-dbg /nologo /DWIN32 /D_WINDOWS /utf-8 /MP  /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  -MDd /showIncludes /FoCMakeFiles\zlib.dir\trees.c.obj /FdCMakeFiles\zlib.dir\ /FS -c D:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\src\v1.3.1-2e5db616bf.clean\trees.c
[14/18] D:\vs2019\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe   -DNO_FSEEKO -DZLIB_DLL -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_DEPRECATE -ID:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\src\v1.3.1-2e5db616bf.clean -ID:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\x64-windows-dbg /nologo /DWIN32 /D_WINDOWS /utf-8 /MP  /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  -MDd /showIncludes /FoCMakeFiles\zlib.dir\inflate.c.obj /FdCMakeFiles\zlib.dir\ /FS -c D:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\src\v1.3.1-2e5db616bf.clean\inflate.c
[15/18] D:\vs2019\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe   -DNO_FSEEKO -DZLIB_DLL -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_DEPRECATE -ID:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\src\v1.3.1-2e5db616bf.clean -ID:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\x64-windows-dbg /nologo /DWIN32 /D_WINDOWS /utf-8 /MP  /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  -MDd /showIncludes /FoCMakeFiles\zlib.dir\zutil.c.obj /FdCMakeFiles\zlib.dir\ /FS -c D:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\src\v1.3.1-2e5db616bf.clean\zutil.c
[16/18] D:/WORKSP~1/ENVIRO~1/VCPKG-~1.16/DOWNLO~1/tools/CMAKE-~1.1-W/CMAKE-~1.1-W/bin/cmcldeps.exe RC D:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\src\v1.3.1-2e5db616bf.clean\win32\zlib1.rc CMakeFiles\zlib.dir\win32\zlib1.rc.res.d CMakeFiles\zlib.dir\win32\zlib1.rc.res "Note: including file: " "D:/vs2019/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe" D:\WINDOW~1\10\bin\100190~1.0\x64\rc.exe -DNO_FSEEKO -DZLIB_DLL -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_DEPRECATE -I D:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\src\v1.3.1-2e5db616bf.clean -I D:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\x64-windows-dbg -c65001 /DWIN32 -D_DEBUG /fo CMakeFiles\zlib.dir\win32\zlib1.rc.res D:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\src\v1.3.1-2e5db616bf.clean\win32\zlib1.rc
FAILED: CMakeFiles/zlib.dir/win32/zlib1.rc.res 
D:/WORKSP~1/ENVIRO~1/VCPKG-~1.16/DOWNLO~1/tools/CMAKE-~1.1-W/CMAKE-~1.1-W/bin/cmcldeps.exe RC D:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\src\v1.3.1-2e5db616bf.clean\win32\zlib1.rc CMakeFiles\zlib.dir\win32\zlib1.rc.res.d CMakeFiles\zlib.dir\win32\zlib1.rc.res "Note: including file: " "D:/vs2019/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe" D:\WINDOW~1\10\bin\100190~1.0\x64\rc.exe -DNO_FSEEKO -DZLIB_DLL -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_DEPRECATE -I D:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\src\v1.3.1-2e5db616bf.clean -I D:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\x64-windows-dbg -c65001 /DWIN32 -D_DEBUG /fo CMakeFiles\zlib.dir\win32\zlib1.rc.res D:\workspace\environment\vcpkg-2024.11.16\buildtrees\zlib\src\v1.3.1-2e5db616bf.clean\win32\zlib1.rc
Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384


Copyright (C) Microsoft Corporation.  All rights reserved.




D:\vs2019\VC\Tools\MSVC\14.29.30133\include\unistd.h(8) : fatal error RC1004: unexpected end of file found


ninja: build stopped: subcommand failed.

@Cheney-W Cheney-W added the requires:repro The issue is not currently repro-able label Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
requires:repro The issue is not currently repro-able
Projects
None yet
Development

No branches or pull requests

2 participants