microsoft / vcpkg

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

[Package: boost-config:x86-windows] build failure, lack of windows sdk #19266

Closed HongGan closed 3 years ago

HongGan commented 3 years ago

Host Environment

To Reproduce Steps to reproduce the behavior: ./vcpkg install xxxx

Failure logs -Cut and past the appropriate build messages from the console output. -Please attach any additional failure logs mentioned in the console output.

Additional context Add any other context about the problem here, such as what you have already tried to resolve the issue.

autoantwort commented 3 years ago

Please fill out the issue template :)

PhoebeHui commented 3 years ago

@HongGan, could you attach the full failure logs?

HongGan commented 3 years ago

There is the GitCMD information: D:\src\vcpkg>vcpkg install pcl Computing installation plan... The following packages will be built and installed:

Call Stack (most recent call first): ports/boost-build/portfile.cmake:63 (vcpkg_execute_required_process) scripts/ports.cmake:141 (include)

Error: Building package boost-build:x64-windows failed with: BUILD_FAILED Please ensure you're using the latest portfiles with .\vcpkg update, then submit an issue at https://github.com/Microsoft/vcpkg/issues including: Package: boost-build:x64-windows Vcpkg version: 2021-07-26-9425cf5f512f242c0bcbabac31f08832825aee81

Additionally, attach any relevant sections from the log files above.

HongGan commented 3 years ago

It‘s logs information: Building the B2 engine.. Call_If_Exists "bin\VCVARS32.BAT"

Using 'msvc' toolset.

D:\src\vcpkg\packages\boost-build_x64-windows\tools\boost-build\src\engine>cl /nologo /MP /MT /TP /Feb2 /wd4996 /O2 /GL -DNDEBUG builtins.cpp class.cpp command.cpp compile.cpp constants.cpp cwd.cpp debug.cpp debugger.cpp execcmd.cpp execnt.cpp filent.cpp filesys.cpp frames.cpp function.cpp glob.cpp hash.cpp hcache.cpp hdrmacro.cpp headers.cpp jam.cpp jamgram.cpp lists.cpp make.cpp make1.cpp md5.cpp mem.cpp modules.cpp native.cpp object.cpp option.cpp output.cpp parse.cpp pathnt.cpp pathsys.cpp regexp.cpp rules.cpp scan.cpp search.cpp jam_strings.cpp startup.cpp subst.cpp sysinfo.cpp timestamp.cpp variable.cpp w32_getreg.cpp modules/order.cpp modules/path.cpp modules/property-set.cpp modules/regex.cpp modules/sequence.cpp modules/set.cpp /link kernel32.lib advapi32.lib user32.lib builtins.cpp class.cpp command.cpp compile.cpp C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include\crtdefs.h(10): fatal error C1083: Cannot open include file: 'corecrt.h': No such file or directory (compiling source file class.cpp) D:\src\vcpkg\packages\boost-build_x64-windows\tools\boost-build\src\engine\jam.h(73): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source file compile.cpp) constants.cpp D:\src\vcpkg\packages\boost-build_x64-windows\tools\boost-build\src\engine\jam.h(73): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source file command.cpp) cwd.cpp D:\src\vcpkg\packages\boost-build_x64-windows\tools\boost-build\src\engine\jam.h(73): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source file builtins.cpp) debug.cpp C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include\crtdefs.h(10): fatal error C1083: Cannot open include file: 'corecrt.h': No such file or directory (compiling source file constants.cpp) debugger.cpp C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include\crtdefs.h(10): fatal error C1083: Cannot open include file: 'corecrt.h': No such file or directory (compiling source file cwd.cpp) execcmd.cpp D:\src\vcpkg\packages\boost-build_x64-windows\tools\boost-build\src\engine\jam.h(73): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source file debug.cpp) execnt.cpp filent.cpp D:\src\vcpkg\packages\boost-build_x64-windows\tools\boost-build\src\engine\jam.h(73): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source file execcmd.cpp) D:\src\vcpkg\packages\boost-build_x64-windows\tools\boost-build\src\engine\jam.h(73): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source file filent.cpp) filesys.cpp C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include\crtdefs.h(10): fatal error C1083: Cannot open include file: 'corecrt.h': No such file or directory (compiling source file debugger.cpp) frames.cpp function.cpp D:\src\vcpkg\packages\boost-build_x64-windows\tools\boost-build\src\engine\jam.h(73): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source file execnt.cpp) D:\src\vcpkg\packages\boost-build_x64-windows\tools\boost-build\src\engine\jam.h(73): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source file frames.cpp) glob.cpp D:\src\vcpkg\packages\boost-build_x64-windows\tools\boost-build\src\engine\jam.h(73): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source file filesys.cpp) hash.cpp hcache.cpp D:\src\vcpkg\packages\boost-build_x64-windows\tools\boost-build\src\engine\jam.h(73): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source file glob.cpp) hdrmacro.cpp D:\src\vcpkg\packages\boost-build_x64-windows\tools\boost-build\src\engine\jam.h(73): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source file hash.cpp) headers.cpp D:\src\vcpkg\packages\boost-build_x64-windows\tools\boost-build\src\engine\jam.h(73): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source file function.cpp) D:\src\vcpkg\packages\boost-build_x64-windows\tools\boost-build\src\engine\jam.h(73): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source file hcache.cpp) jam.cpp jamgram.cpp D:\src\vcpkg\packages\boost-build_x64-windows\tools\boost-build\src\engine\jam.h(73): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source file headers.cpp) D:\src\vcpkg\packages\boost-build_x64-windows\tools\boost-build\src\engine\jam.h(73): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source file hdrmacro.cpp) lists.cpp make.cpp D:\src\vcpkg\packages\boost-build_x64-windows\tools\boost-build\src\engine\jam.h(73): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source file jamgram.cpp) make1.cpp D:\src\vcpkg\packages\boost-build_x64-windows\tools\boost-build\src\engine\jam.h(73): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source file jam.cpp) D:\src\vcpkg\packages\boost-build_x64-windows\tools\boost-build\src\engine\jam.h(73): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source file lists.cpp) md5.cpp D:\src\vcpkg\packages\boost-build_x64-windows\tools\boost-build\src\engine\jam.h(73): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source file make1.cpp) mem.cpp modules.cpp D:\src\vcpkg\packages\boost-build_x64-windows\tools\boost-build\src\engine\jam.h(73): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source file make.cpp) md5.cpp(55): fatal error C1083: Cannot open include file: 'string.h': No such file or directory native.cpp D:\src\vcpkg\packages\boost-build_x64-windows\tools\boost-build\src\engine\jam.h(73): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source file mem.cpp) object.cpp D:\src\vcpkg\packages\boost-build_x64-windows\tools\boost-build\src\engine\jam.h(73): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source file modules.cpp) option.cpp C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include\crtdefs.h(10): fatal error C1083: Cannot open include file: 'corecrt.h': No such file or directory (compiling source file native.cpp) D:\src\vcpkg\packages\boost-build_x64-windows\tools\boost-build\src\engine\jam.h(73): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source file object.cpp) output.cpp parse.cpp pathnt.cpp D:\src\vcpkg\packages\boost-build_x64-windows\tools\boost-build\src\engine\jam.h(73): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source file option.cpp) D:\src\vcpkg\packages\boost-build_x64-windows\tools\boost-build\src\engine\jam.h(73): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source file pathnt.cpp) D:\src\vcpkg\packages\boost-build_x64-windows\tools\boost-build\src\engine\jam.h(73): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source file output.cpp) pathsys.cpp regexp.cpp rules.cpp D:\src\vcpkg\packages\boost-build_x64-windows\tools\boost-build\src\engine\jam.h(73): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source file pathsys.cpp) scan.cpp D:\src\vcpkg\packages\boost-build_x64-windows\tools\boost-build\src\engine\jam.h(73): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source file rules.cpp) search.cpp D:\src\vcpkg\packages\boost-build_x64-windows\tools\boost-build\src\engine\jam.h(73): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source file parse.cpp) D:\src\vcpkg\packages\boost-build_x64-windows\tools\boost-build\src\engine\jam.h(73): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source file regexp.cpp) jam_strings.cpp startup.cpp D:\src\vcpkg\packages\boost-build_x64-windows\tools\boost-build\src\engine\jam.h(73): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source file scan.cpp) D:\src\vcpkg\packages\boost-build_x64-windows\tools\boost-build\src\engine\jam.h(73): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source file search.cpp) subst.cpp sysinfo.cpp D:\src\vcpkg\packages\boost-build_x64-windows\tools\boost-build\src\engine\jam.h(73): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source file subst.cpp) timestamp.cpp D:\src\vcpkg\packages\boost-build_x64-windows\tools\boost-build\src\engine\jam.h(73): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source file jam_strings.cpp) variable.cpp C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include\crtdefs.h(10): fatal error C1083: Cannot open include file: 'corecrt.h': No such file or directory (compiling source file startup.cpp) w32_getreg.cpp D:\src\vcpkg\packages\boost-build_x64-windows\tools\boost-build\src\engine\jam.h(73): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source file sysinfo.cpp) order.cpp D:\src\vcpkg\packages\boost-build_x64-windows\tools\boost-build\src\engine\jam.h(73): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source file timestamp.cpp) path.cpp D:\src\vcpkg\packages\boost-build_x64-windows\tools\boost-build\src\engine\jam.h(73): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source file variable.cpp) property-set.cpp D:\src\vcpkg\packages\boost-build_x64-windows\tools\boost-build\src\engine\jam.h(73): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory (compiling source file w32_getreg.cpp) C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include\crtdefs.h(10): fatal error C1083: Cannot open include file: 'corecrt.h': No such file or directory (compiling source file modules/order.cpp) regex.cpp sequence.cpp C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include\crtdefs.h(10): fatal error C1083: Cannot open include file: 'corecrt.h': No such file or directory (compiling source file modules/path.cpp) C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include\crtdefs.h(10): fatal error C1083: Cannot open include file: 'corecrt.h': No such file or directory (compiling source file modules/property-set.cpp) set.cpp D:\src\vcpkg\packages\boost-build_x64-windows\tools\boost-build\src\engine\modules../mem.h(14): fatal error C1083: Cannot open include file: 'stdlib.h': No such file or directory (compiling source file modules/regex.cpp) C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include\crtdefs.h(10): fatal error C1083: Cannot open include file: 'corecrt.h': No such file or directory (compiling source file modules/sequence.cpp) C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include\crtdefs.h(10): fatal error C1083: Cannot open include file: 'corecrt.h': No such file or directory (compiling source file modules/set.cpp)

D:\src\vcpkg\packages\boost-build_x64-windows\tools\boost-build\src\engine>dir *.exe Volume in drive D is 软件 Volume Serial Number is C14D-581B

Directory of D:\src\vcpkg\packages\boost-build_x64-windows\tools\boost-build\src\engine

D:\src\vcpkg\packages\boost-build_x64-windows\tools\boost-build\src\engine>copy /b .\b2.exe .\bjam.exe The system cannot find the file specified.

Failed to build the B2 engine.

autoantwort commented 3 years ago

Have you installed the windows SDK?

HongGan commented 3 years ago

err log: File Not Found

HongGan commented 3 years ago

I have try to installed the windows SDK, but it's still not work, I want to reinstall VS 2019,What components do I need to install?

PhoebeHui commented 3 years ago

@HongGan, it looks you need reinstall windows SDK, could you reinstall it via VS installer? See https://github.com/microsoft/vcpkg/issues/19544#issuecomment-900830415

For me the missing headers locate in "C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt.h".

PhoebeHui commented 3 years ago

@HongGan, have you solved the problem?

PhoebeHui commented 3 years ago

@HongGan, please reopen this issue if it still be a problem for you.

BTW, we have many blogs in https://www.cnblogs.com/vcpkg/ about vcpkg for Chinese users, you can reference them if you needed.