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

[expat] Build error on x64-windows #42091

Closed
yaraiton opened this issue Nov 10, 2024 · 2 comments
Closed

[expat] Build error on x64-windows #42091

yaraiton opened this issue Nov 10, 2024 · 2 comments
Assignees
Labels
category:question This issue is a question

Comments

@yaraiton
Copy link

Package: expat:[email protected]

Host Environment

  • Host: x64-windows
  • Compiler: MSVC 19.41.34123.0
  • vcpkg-tool version: 2024-10-18-e392d7347fe72dff56e7857f7571c22301237ae6
    vcpkg-scripts version: 813a241 2024-11-08 (34 hours ago)

To Reproduce

vcpkg install anari

Failure logs

-- Using cached libexpat-libexpat-R_2_6_3.tar.gz.
-- Cleaning sources at E:/github/vcpkg/buildtrees/expat/src/R_2_6_3-d07a3503b4.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source E:/github/vcpkg/downloads/libexpat-libexpat-R_2_6_3.tar.gz
-- Using source at E:/github/vcpkg/buildtrees/expat/src/R_2_6_3-d07a3503b4.clean
-- Configuring x64-windows
-- Building x64-windows-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: C:/msys64/mingw64/bin/cmake.exe --build . --config Debug --target install -- -v -j25
    Working Directory: E:/github/vcpkg/buildtrees/expat/x64-windows-dbg
    See logs for more information:
      E:\github\vcpkg\buildtrees\expat\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/expat/portfile.cmake:28 (vcpkg_cmake_install)
  scripts/ports.cmake:192 (include)



E:\github\vcpkg\buildtrees\expat\install-x64-windows-dbg-out.log
Change Dir: 'E:/github/vcpkg/buildtrees/expat/x64-windows-dbg'

Run Build Command(s): E:/github/vcpkg/downloads/tools/ninja/1.10.2-windows/ninja.exe -v -v -j25 install
[1/6] RC E:\github\vcpkg\buildtrees\expat\x64-windows-dbg\win32\version.rc CMakeFiles\expat.dir\win32\version.rc.res.d CMakeFiles\expat.dir\win32\version.rc.res "Note: including file: " "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.41.34120/bin/Hostx64/x64/cl.exe" C:\PROGRA~2\WI3CF2~1\10\bin\100220~1.0\x64\rc.exe -DVER_FILEVERSION=2,6,3,0 -D_CRT_SECURE_NO_WARNINGS -Dexpat_EXPORTS -I E:\github\vcpkg\buildtrees\expat\x64-windows-dbg -I E:\github\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib -c65001 /DWIN32 -D_DEBUG   -wd4996 /fo CMakeFiles\expat.dir\win32\version.rc.res E:\github\vcpkg\buildtrees\expat\x64-windows-dbg\win32\version.rc
FAILED: CMakeFiles/expat.dir/win32/version.rc.res 
RC E:\github\vcpkg\buildtrees\expat\x64-windows-dbg\win32\version.rc CMakeFiles\expat.dir\win32\version.rc.res.d CMakeFiles\expat.dir\win32\version.rc.res "Note: including file: " "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.41.34120/bin/Hostx64/x64/cl.exe" C:\PROGRA~2\WI3CF2~1\10\bin\100220~1.0\x64\rc.exe -DVER_FILEVERSION=2,6,3,0 -D_CRT_SECURE_NO_WARNINGS -Dexpat_EXPORTS -I E:\github\vcpkg\buildtrees\expat\x64-windows-dbg -I E:\github\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib -c65001 /DWIN32 -D_DEBUG   -wd4996 /fo CMakeFiles\expat.dir\win32\version.rc.res E:\github\vcpkg\buildtrees\expat\x64-windows-dbg\win32\version.rc
Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384

Copyright (C) Microsoft Corporation.  All rights reserved.


fatal error RC1107: invalid usage; use RC /? for Help

[2/6] C:\PROGRA~2\MICROS~3\2022\BUILDT~1\VC\Tools\MSVC\1441~1.341\bin\Hostx64\x64\cl.exe   -DVER_FILEVERSION=2,6,3,0 -D_CRT_SECURE_NO_WARNINGS -Dexpat_EXPORTS -IE:\github\vcpkg\buildtrees\expat\x64-windows-dbg -IE:\github\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib /nologo /DWIN32 /D_WINDOWS /utf-8 /MP   /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1    -wd4996 /showIncludes /FoCMakeFiles\expat.dir\lib\xmlrole.c.obj /FdCMakeFiles\expat.dir\ /FS -c E:\github\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\xmlrole.c
[3/6] C:\PROGRA~2\MICROS~3\2022\BUILDT~1\VC\Tools\MSVC\1441~1.341\bin\Hostx64\x64\cl.exe   -DVER_FILEVERSION=2,6,3,0 -D_CRT_SECURE_NO_WARNINGS -Dexpat_EXPORTS -IE:\github\vcpkg\buildtrees\expat\x64-windows-dbg -IE:\github\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib /nologo /DWIN32 /D_WINDOWS /utf-8 /MP   /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1    -wd4996 /showIncludes /FoCMakeFiles\expat.dir\lib\xmlparse.c.obj /FdCMakeFiles\expat.dir\ /FS -c E:\github\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\xmlparse.c
[4/6] C:\PROGRA~2\MICROS~3\2022\BUILDT~1\VC\Tools\MSVC\1441~1.341\bin\Hostx64\x64\cl.exe   -DVER_FILEVERSION=2,6,3,0 -D_CRT_SECURE_NO_WARNINGS -Dexpat_EXPORTS -IE:\github\vcpkg\buildtrees\expat\x64-windows-dbg -IE:\github\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib /nologo /DWIN32 /D_WINDOWS /utf-8 /MP   /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1    -wd4996 /showIncludes /FoCMakeFiles\expat.dir\lib\xmltok.c.obj /FdCMakeFiles\expat.dir\ /FS -c E:\github\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\xmltok.c
ninja: build stopped: subcommand failed.
@dg0yt
Copy link
Contributor

dg0yt commented Nov 10, 2024

CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: C:/msys64/mingw64/bin/cmake.exe --build . --config Debug --target install -- -v -j25
    Working Directory: E:/github/vcpkg/buildtrees/expat/x64-windows-dbg

This is CMake from MSYS2/mingw64, not genuine CMake. Unexpected, and operating differently by design.

@LilyWangLL
Copy link
Contributor

The solution of this issue is same with #42077, so I am closing this issue for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:question This issue is a question
Projects
None yet
Development

No branches or pull requests

3 participants