You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/01/10 19:14:03 UTC
[GitHub] [arrow] MironAtHome commented on issue #12114: Build just doesn't work on windows with MSVC 2017. Any chance to put together decent .vcproj files?
MironAtHome commented on issue #12114:
URL: https://github.com/apache/arrow/issues/12114#issuecomment-1009259206
Here is repro.
Install Microsoft Visual Studio 2017 with C/C++ compiler ( version 141 )
Make sure to install all features related to cmake build tools
Install vspkg, run initialization script, as per requirements
Perform steps described in the build guide document: arrow/docs/source/developers/cpp/building.rst
---------
Expected result: product builds without issues.
--------
Actual result: messages with error description
- example -
-- Selecting Windows SDK version to target Windows 10.0.14393.
-- The C compiler identification is unknown
CMake Warning (dev) at CMakeFiles/3.12.18081601-MSVC_2/CMakeCCompiler.cmake:23:
Syntax Warning in cmake code at column 20
Argument not separated from preceding token by whitespace.
Call Stack (most recent call first):
CMakeLists.txt
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at CMakeFiles/3.12.18081601-MSVC_2/CMakeCCompiler.cmake:23:
Syntax Warning in cmake code at column 42
Argument not separated from preceding token by whitespace.
Call Stack (most recent call first):
CMakeLists.txt
This warning is for project developers. Use -Wno-dev to suppress it.
-- The CXX compiler identification is unknown
CMake Warning (dev) at CMakeFiles/3.12.18081601-MSVC_2/CMakeCXXCompiler.cmake:25:
Syntax Warning in cmake code at column 137
Argument not separated from preceding token by whitespace.
Call Stack (most recent call first):
CMakeLists.txt
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Error in CMakeLists.txt:
No CMAKE_C_COMPILER could be found.
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x64/cl.exe
CMake Warning (dev) at F:/HL/dev/git/arrow/cpp/src/parquet/CMakeFiles/3.12.18081601-MSVC_2/CMakeCXXCompiler.cmake:25:
Syntax Warning in cmake code at column 137
Argument not separated from preceding token by whitespace.
Call Stack (most recent call first):
F:/HL/dev/git/arrow/cpp/src/parquet/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x64/cl.exe -- broken
CMake Error at C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.12/Modules/CMakeTestCXXCompiler.cmake:45 (message):
The C++ compiler
"C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x64/cl.exe"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: F:/HL/dev/git/arrow/cpp/src/parquet/CMakeFiles/CMakeTmp
Run Build Command:"C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/MSBuild/15.0/Bin/MSBuild.exe" "cmTC_567b6.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=15.0"
Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 10.01.2022 4:58:34.
Project "F:\HL\dev\git\arrow\cpp\src\parquet\CMakeFiles\CMakeTmp\cmTC_567b6.vcxproj" on node 1 (default targets).
PrepareForBuild:
Creating directory "cmTC_567b6.dir\Debug\".
Creating directory "F:\HL\dev\git\arrow\cpp\src\parquet\CMakeFiles\CMakeTmp\Debug\".
Creating directory "cmTC_567b6.dir\Debug\cmTC_567b6.tlog\".
InitializeBuildStatus:
Creating "cmTC_567b6.dir\Debug\cmTC_567b6.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
VcpkgTripletSelection:
Using triplet "x86-windows" from "F:\HL\dev\git\vcpkg\installed\x86-windows\"
VcpkgCheckManifestRoot:
The vcpkg manifest was disabled, but we found a manifest file in F:\HL\dev\git\arrow\cpp\. You may want to enable vcpkg manifests in your properties page or pass /p:VcpkgEnableManifest=true to the msbuild invocation.
ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\CL.exe /c /I"F:\HL\dev\git\vcpkg\installed\x86-windows\include" /W1 /WX- /diagnostics:classic /O2 /Oy- /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /MD /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_567b6.dir\Debug\\" /Fd"cmTC_567b6.dir\Debug\vc141.pdb" /Gd /TP /analyze- /FC /errorReport:queue F:\HL\dev\git\arrow\cpp\src\parquet\CMakeFiles\CMakeTmp\testCXXCompiler.cxx
Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27031.1 for x86
Copyright (C) Microsoft Corporation. All rights reserved.
cl /c /I"F:\HL\dev\git\vcpkg\installed\x86-windows\include" /W1 /WX- /diagnostics:classic /O2 /Oy- /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /MD /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_567b6.dir\Debug\\" /Fd"cmTC_567b6.dir\Debug\vc141.pdb" /Gd /TP /analyze- /FC /errorReport:queue F:\HL\dev\git\arrow\cpp\src\parquet\CMakeFiles\CMakeTmp\testCXXCompiler.cxx
testCXXCompiler.cxx
Link:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\link.exe /ERRORREPORT:QUEUE /OUT:"F:\HL\dev\git\arrow\cpp\src\parquet\CMakeFiles\CMakeTmp\Debug\cmTC_567b6.exe" /INCREMENTAL /NOLOGO /LIBPATH:"F:\HL\dev\git\vcpkg\installed\x86-windows\debug\lib" /LIBPATH:"F:\HL\dev\git\vcpkg\installed\x86-windows\debug\lib\manual-link" "F:\HL\dev\git\vcpkg\installed\x86-windows\debug\lib\*.lib" /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:"F:/HL/dev/git/arrow/cpp/src/parquet/CMakeFiles/CMakeTmp/Debug/cmTC_567b6.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"F:/HL/dev/git/arrow/cpp/src/parquet/CMakeFiles/CMakeTmp/Debug/cmTC_567b6.lib" /MACHINE:X86 /SAFESEH cmTC_567b6.dir\Debug\testCXXCompiler.obj
LINK : fatal error LNK1104: cannot open file 'ucrt.lib' [F:\HL\dev\git\arrow\cpp\src\parquet\CMakeFiles\CMakeTmp\cmTC_567b6.vcxproj]
Done Building Project "F:\HL\dev\git\arrow\cpp\src\parquet\CMakeFiles\CMakeTmp\cmTC_567b6.vcxproj" (default targets) -- FAILED.
Build FAILED.
"F:\HL\dev\git\arrow\cpp\src\parquet\CMakeFiles\CMakeTmp\cmTC_567b6.vcxproj" (default target) (1) ->
(Link target) ->
LINK : fatal error LNK1104: cannot open file 'ucrt.lib' [F:\HL\dev\git\arrow\cpp\src\parquet\CMakeFiles\CMakeTmp\cmTC_567b6.vcxproj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:01.45
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 3.12)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring incomplete, errors occurred!
See also "F:/HL/dev/git/arrow/cpp/src/parquet/CMakeFiles/CMakeOutput.log".
See also "F:/HL/dev/git/arrow/cpp/src/parquet/CMakeFiles/CMakeError.log"
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org