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

Exit code 0xc0000409 ninja: build stopped: subcommand failed. #44312

Open
YiFraternity opened this issue Mar 11, 2025 · 1 comment
Open

Exit code 0xc0000409 ninja: build stopped: subcommand failed. #44312

YiFraternity opened this issue Mar 11, 2025 · 1 comment
Assignees
Labels
requires:more-information This Issue requires more information to solve

Comments

@YiFraternity
Copy link

System: Win11

Instruction: 错误 MSB3073 命令“"F:\vcpkg\vcpkg.exe" install --x-wait-for-lock --triplet "x64-windows" --vcpkg-root "F:\vcpkg\\" "--x-manifest-root=C:\Users\亦哲君\Desktop\git\WeChatFerry\WeChatFerry\\" "--x-install-root=C:\Users\亦哲君\Desktop\git\WeChatFerry\WeChatFerry\vcpkg_installed\x64-windows\\" ”已退出,代码为 1。 sdk F:\vcpkg\scripts\buildsystems\msbuild\vcpkg.targets 183

Log:

config-x64-windows-out.log

-- 29.1.0
-- Performing Test protobuf_HAVE_LD_VERSION_SCRIPT
-- Performing Test protobuf_HAVE_LD_VERSION_SCRIPT - Success
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
-- Found Threads: TRUE
Exit code 0xc0000409

ninja: build stopped: subcommand failed.

config-x64-windows-rel-CMakeConfigureLog.yaml.log

        FAILED: cmTC_0c280.exe 
        C:\\WINDOWS\\system32\\cmd.exe /C "cd . && F:\\vcpkg\\downloads\\tools\\cmake-3.30.1-windows\\cmake-3.30.1-windows-i386\\bin\\cmake.exe -E vs_link_exe --intdir=CMakeFiles\\cmTC_0c280.dir --rc=C:\\PROGRA~2\\WI3CF2~1\\10\\bin\\100190~1.0\\x64\\rc.exe --mt=C:\\PROGRA~2\\WI3CF2~1\\10\\bin\\100190~1.0\\x64\\mt.exe --manifests  -- C:\\PROGRA~2\\MICROS~3\\2019\\COMMUN~1\\VC\\Tools\\MSVC\\1429~1.301\\bin\\Hostx64\\x64\\link.exe /nologo CMakeFiles\\cmTC_0c280.dir\\CheckFunctionExists.c.obj  /out:cmTC_0c280.exe /implib:cmTC_0c280.lib /pdb:cmTC_0c280.pdb /version:0.0 /machine:x64  /nologo    /debug /INCREMENTAL /subsystem:console  pthread.lib  kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."
        LINK Pass 1: command "C:\\PROGRA~2\\MICROS~3\\2019\\COMMUN~1\\VC\\Tools\\MSVC\\1429~1.301\\bin\\Hostx64\\x64\\link.exe /nologo CMakeFiles\\cmTC_0c280.dir\\CheckFunctionExists.c.obj /out:cmTC_0c280.exe /implib:cmTC_0c280.lib /pdb:cmTC_0c280.pdb /version:0.0 /machine:x64 /nologo /debug /INCREMENTAL /subsystem:console pthread.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTFILE:CMakeFiles\\cmTC_0c280.dir/intermediate.manifest CMakeFiles\\cmTC_0c280.dir/manifest.res" failed (exit code 1104) with the following output:
        LINK : fatal error LNK1104: 无法打开文件“pthread.lib”\x0d
        ninja: build stopped: subcommand failed.
        
      exitCode: 1

config-x64-windows-dbg-CMakeConfigureLog.yaml.log

        FAILED: cmTC_99536.exe 
        C:\\WINDOWS\\system32\\cmd.exe /C "cd . && F:\\vcpkg\\downloads\\tools\\cmake-3.30.1-windows\\cmake-3.30.1-windows-i386\\bin\\cmake.exe -E vs_link_exe --intdir=CMakeFiles\\cmTC_99536.dir --rc=C:\\PROGRA~2\\WI3CF2~1\\10\\bin\\100190~1.0\\x64\\rc.exe --mt=C:\\PROGRA~2\\WI3CF2~1\\10\\bin\\100190~1.0\\x64\\mt.exe --manifests  -- C:\\PROGRA~2\\MICROS~3\\2019\\COMMUN~1\\VC\\Tools\\MSVC\\1429~1.301\\bin\\Hostx64\\x64\\link.exe /nologo CMakeFiles\\cmTC_99536.dir\\CheckFunctionExists.c.obj  /out:cmTC_99536.exe /implib:cmTC_99536.lib /pdb:cmTC_99536.pdb /version:0.0 /machine:x64  /nologo    /debug /INCREMENTAL /subsystem:console  pthread.lib  kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."
        LINK Pass 1: command "C:\\PROGRA~2\\MICROS~3\\2019\\COMMUN~1\\VC\\Tools\\MSVC\\1429~1.301\\bin\\Hostx64\\x64\\link.exe /nologo CMakeFiles\\cmTC_99536.dir\\CheckFunctionExists.c.obj /out:cmTC_99536.exe /implib:cmTC_99536.lib /pdb:cmTC_99536.pdb /version:0.0 /machine:x64 /nologo /debug /INCREMENTAL /subsystem:console pthread.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTFILE:CMakeFiles\\cmTC_99536.dir/intermediate.manifest CMakeFiles\\cmTC_99536.dir/manifest.res" failed (exit code 1104) with the following output:
        LINK : fatal error LNK1104: 无法打开文件“pthread.lib”\x0d
        ninja: build stopped: subcommand failed.
        
      exitCode: 1
@jimwang118 jimwang118 self-assigned this Mar 12, 2025
@jimwang118 jimwang118 added the requires:more-information This Issue requires more information to solve label Mar 12, 2025
@jimwang118
Copy link
Contributor

Do not include Chinese characters in the path and change the VS language pack to English.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
requires:more-information This Issue requires more information to solve
Projects
None yet
Development

No branches or pull requests

2 participants