microsoft / vcpkg

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

[qt] build failure #35769

Open Mr-Second opened 6 months ago

Mr-Second commented 6 months ago

Operating system

win10 19045

Compiler

MSVC (D:\VisualStudio2022\VC\Tools\MSVC\14.38.33130\bin\Hostx64\x64\cl.exe)

Steps to reproduce the behavior

vcpkg install qt

Failure logs

... Installing 25/83 upb[codegen,core]:x64-windows@2022-06-21#1... Building upb[codegen,core]:x64-windows@2022-06-21#1... -- Note: upb only supports static library linkage. Building static library. -- Downloading https://github.com/protocolbuffers/upb/archive/e4635f223e7d36dfbea3b722a4ca4807a7e882e2.tar.gz -> protocolbuffers-upb-e4635f223e7d36dfbea3b722a4ca4807a7e882e2.tar.gz... -- Extracting source E:/vcpkg/downloads/protocolbuffers-upb-e4635f223e7d36dfbea3b722a4ca4807a7e882e2.tar.gz -- Applying patch 0001-make-cmakelists-py.patch -- Applying patch 0002-fix-uwp.patch -- Using source at E:/vcpkg/buildtrees/upb/src/07a7e882e2-67ea24d098.clean -- Found external ninja('1.11.0'). -- Configuring x64-windows -- Building x64-windows-dbg CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message): Command failed: D:/CMake/bin/cmake.exe --build . --config Debug --target install -- -v -j17 Working Directory: E:/vcpkg/buildtrees/upb/x64-windows-dbg See logs for more information: E:\vcpkg\buildtrees\upb\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/upb/portfile.cmake:39 (vcpkg_cmake_install) scripts/ports.cmake:170 (include)

error: building upb:x64-windows failed with: BUILD_FAILED Elapsed time to handle upb:x64-windows: 9.7 s Please ensure you're using the latest port files with git pull and vcpkg update. Then check for known issues at: https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+upb You can submit a new issue at: https://github.com/microsoft/vcpkg/issues/new?title=[upb]+Build+error+on+x64-windows&body=Copy+issue+body+from+E%3A%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md


E:\vcpkg\buildtrees\upb\install-x64-windows-dbg-out.log:


...
[24/44] C:\Windows\system32\cmd.exe /C "cd . && D:\CMake\bin\cmake.exe -E vs_link_exe --intdir=CMakeFiles\protoc-gen-upb.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100226~1.0\x64\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100226~1.0\x64\mt.exe --manifests  -- D:\VisualStudio2022\VC\Tools\MSVC\14.38.33130\bin\Hostx64\x64\link.exe  CMakeFiles\protoc-gen-upb.dir\E_\vcpkg\buildtrees\upb\src\07a7e882e2-67ea24d098.clean\upbc\common.cc.obj CMakeFiles\protoc-gen-upb.dir\E_\vcpkg\buildtrees\upb\src\07a7e882e2-67ea24d098.clean\upbc\protoc-gen-upb.cc.obj  /out:protoc-gen-upb.exe /implib:protoc-gen-upb.lib /pdb:protoc-gen-upb.pdb /version:0.0 /machine:x64 /nologo    /debug /INCREMENTAL /subsystem:console  upb_mini_table.lib  upb.lib  E:\vcpkg\installed\x64-windows\debug\lib\libprotocd.lib  upb.lib  upb_fastdecode.lib  upb_utf8_range.lib  upb_extension_registry.lib  E:\vcpkg\installed\x64-windows\debug\lib\abseil_dll.lib  -ignore:4221  E:\vcpkg\installed\x64-windows\debug\lib\libprotobufd.lib  kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."
[25/44] C:\Windows\system32\cmd.exe /C "cd /D E:\vcpkg\buildtrees\upb\x64-windows-dbg && E:\vcpkg\installed\x64-windows\tools\protobuf\protoc.exe -IE:/vcpkg/installed/x64-windows/include --plugin=protoc-gen-upb=E:/vcpkg/buildtrees/upb/x64-windows-dbg/protoc-gen-upb.exe --plugin=protoc-gen-upbdefs=E:/vcpkg/buildtrees/upb/x64-windows-dbg/protoc-gen-upbdefs.exe --upb_out=E:/vcpkg/buildtrees/upb/x64-windows-dbg --upbdefs_out=E:/vcpkg/buildtrees/upb/x64-windows-dbg E:/vcpkg/installed/x64-windows/include/google/protobuf/descriptor.proto"
FAILED: google/protobuf/descriptor.upb.h google/protobuf/descriptor.upb.c google/protobuf/descriptor.upbdefs.h google/protobuf/descriptor.upbdefs.c E:/vcpkg/buildtrees/upb/x64-windows-dbg/google/protobuf/descriptor.upb.h E:/vcpkg/buildtrees/upb/x64-windows-dbg/google/protobuf/descriptor.upb.c E:/vcpkg/buildtrees/upb/x64-windows-dbg/google/protobuf/descriptor.upbdefs.h E:/vcpkg/buildtrees/upb/x64-windows-dbg/google/protobuf/descriptor.upbdefs.c 
C:\Windows\system32\cmd.exe /C "cd /D E:\vcpkg\buildtrees\upb\x64-windows-dbg && E:\vcpkg\installed\x64-windows\tools\protobuf\protoc.exe -IE:/vcpkg/installed/x64-windows/include --plugin=protoc-gen-upb=E:/vcpkg/buildtrees/upb/x64-windows-dbg/protoc-gen-upb.exe --plugin=protoc-gen-upbdefs=E:/vcpkg/buildtrees/upb/x64-windows-dbg/protoc-gen-upbdefs.exe --upb_out=E:/vcpkg/buildtrees/upb/x64-windows-dbg --upbdefs_out=E:/vcpkg/buildtrees/upb/x64-windows-dbg E:/vcpkg/installed/x64-windows/include/google/protobuf/descriptor.proto"
--upb_out: protoc-gen-upb: Plugin failed with status code 3221225477.

ninja: build stopped: subcommand failed.

Additional context

No response

Adela0814 commented 6 months ago

I encountered a new problem while trying to reproduce it:

    Line 101: E:\4\vcpkg\buildtrees\upb\src\07a7e882e2-67ea24d098.clean\upbc\protoc-gen-upb.cc(558): error C2248: 'google::protobuf::FileDescriptor::syntax': cannot access private member declared in class 'google::protobuf::FileDescriptor'
    Line 104: E:\4\vcpkg\buildtrees\upb\src\07a7e882e2-67ea24d098.clean\upbc\protoc-gen-upb.cc(559): error C2248: 'google::protobuf::FileDescriptor::SYNTAX_PROTO3': cannot access private enumerator declared in class 'google::protobuf::FileDescriptor'
    Line 107: E:\4\vcpkg\buildtrees\upb\src\07a7e882e2-67ea24d098.clean\upbc\protoc-gen-upb.cc(619): error C2248: 'google::protobuf::FileDescriptor::syntax': cannot access private member declared in class 'google::protobuf::FileDescriptor'
    Line 110: E:\4\vcpkg\buildtrees\upb\src\07a7e882e2-67ea24d098.clean\upbc\protoc-gen-upb.cc(619): error C2248: 'google::protobuf::FileDescriptor::SYNTAX_PROTO3': cannot access private enumerator declared in class 'google::protobuf::FileDescriptor'
    Line 113: E:\4\vcpkg\buildtrees\upb\src\07a7e882e2-67ea24d098.clean\upbc\protoc-gen-upb.cc(639): error C2248: 'google::protobuf::FileDescriptor::syntax': cannot access private member declared in class 'google::protobuf::FileDescriptor'
    Line 116: E:\4\vcpkg\buildtrees\upb\src\07a7e882e2-67ea24d098.clean\upbc\protoc-gen-upb.cc(640): error C2248: 'google::protobuf::FileDescriptor::SYNTAX_PROTO2': cannot access private enumerator declared in class 'google::protobuf::FileDescriptor'
    Line 119: E:\4\vcpkg\buildtrees\upb\src\07a7e882e2-67ea24d098.clean\upbc\protoc-gen-upb.cc(1394): error C2248: 'google::protobuf::FileDescriptor::syntax': cannot access private member declared in class 'google::protobuf::FileDescriptor'
    Line 122: E:\4\vcpkg\buildtrees\upb\src\07a7e882e2-67ea24d098.clean\upbc\protoc-gen-upb.cc(1394): error C2248: 'google::protobuf::FileDescriptor::SYNTAX_PROTO2': cannot access private enumerator declared in class 'google::protobuf::FileDescriptor'
    Line 126: E:\4\vcpkg\buildtrees\upb\src\07a7e882e2-67ea24d098.clean\upbc\protoc-gen-upb.cc(1822): error C2248: 'google::protobuf::FileDescriptor::syntax': cannot access private member declared in class 'google::protobuf::FileDescriptor'
    Line 129: E:\4\vcpkg\buildtrees\upb\src\07a7e882e2-67ea24d098.clean\upbc\protoc-gen-upb.cc(1822): error C2248: 'google::protobuf::FileDescriptor::SYNTAX_PROTO2': cannot access private enumerator declared in class 'google::protobuf::FileDescriptor'