Vcpkg: arrow:x64-windows does not compile with VC2019

Created on 4 Apr 2019  路  8Comments  路  Source: microsoft/vcpkg

Hello,

I could not compile arrow:x64-windows with VC2019.

Here is an extract of the error messages:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.20.27508\include\xstring(382): error C2027: use of undefined type 'std::basic_ostream<char,std::char_traits<char>>' C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.20.27508\include\iosfwd(212): note: see declaration of 'std::basic_ostream<char,std::char_traits<char>>' C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.20.27508\include\xstring(4238): note: see reference to function template instantiation 'std::basic_ostream<char,std::char_traits<char>> &std::_Insert_string<char,std::char_traits<char>,unsigned __int64>(std::basic_ostream<char,std::char_traits<char>> &,const _Elem *const ,const _SizeT)' being compiled with [ _Elem=char, _SizeT=unsigned __int64 ]

And the full log file:
install-x64-windows-dbg-out.log

Thanks for any help !
Jean

repro

All 8 comments

try [*]
install arrow[*]:x64-windows

FAILED
[3/83] C:\PROGRA~2\MICROS~2\2019\ENTERP~1\VC\Tools\MSVC\1420~1.275\bin\Hostx64\x64\cl.exe /TP -DARROW_EXPORTING -DARROW_WITH_BROTLI -DARROW_WITH_LZ4 -DARROW_WITH_SNAPPY -DARROW_WITH_ZLIB -DARROW_WITH_ZSTD -DBOOST_ALL_DYN_LINK -DBOOST_ALL_NO_LIB -D_CRT_SECURE_NO_WARNINGS -Darrow_shared_EXPORTS -Isrc -IF:\vcpkg\buildtrees\arrow\src\row-0.11.1-ae9256889c\cpp\src -IF:\vcpkg\installed\x64-windows\include -IF:\vcpkg\installed\x64-windows\include\double-conversion -IF:\vcpkg\buildtrees\arrow\src\row-0.11.1-ae9256889c\cpp\thirdparty\hadoop\include -IF:\vcpkg\installed\x64-windows\include\thrift /DWIN32 /D_WINDOWS /GR /EHsc /MP /D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING /EHsc /bigobj /W3 /wd4800 /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1 /showIncludes /Fosrc\arrow\CMakeFiles\arrow_shared.dir\util\compression_zstd.cc.obj /Fdsrc\arrow\CMakeFiles\arrow_shared.dir\ /FS -c F:\vcpkg\buildtrees\arrow\src\row-0.11.1-ae9256889c\cpp\src\arrow\util\compression_zstd.cc

zstd
FAILED: src/arrow/CMakeFiles/arrow_shared.dir/util/compression_zstd.cc.obj

Do we know Arrow builds on VS2019 outside of vcpkg? It seems unlikely that your error is related to an issue with the port itself. I have a pending PR to move to Arrow 0.13 (the latest release), maybe that will fix it.

I'm getting the same compiler error when attempting to compile some non-arrow software, I'm guessing we may need to wait on Microsoft to patch this before upgrading our build system.

[251/581] Compiling CECppEssentials\test\Util_test.cpp
Util_test.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.20.27508\include\xstring(382): error C2027: use of undefined type 'std::basic_ostream<char,std::char_traits<char>>'
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.20.27508\include\iosfwd(212): note: see declaration of 'std::basic_ostream<char,std::char_traits<char>>'
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.20.27508\include\xstring(4238): note: see reference to function template instantiation 'std::basic_ostream<char,std::char_traits<char>> &std::_Insert_string<char,std::char_traits<char>,unsigned __int64>(std::basic_ostream<char,std::char_traits<char>> &,const _Elem *const ,const _SizeT)' being compiled
        with
        [
            _Elem=char,
            _SizeT=unsigned __int64
        ]

I installed the latest version 16.0.1 (released today) and the issue persists.
I reported the issue to Microsoft:
https://developercommunity.visualstudio.com/content/problem/525532/visual-studio-2019-compilation-issue.html

Arrow is probably missing an #include <sstream>.

I've been compiling Arrow 0.14 fine with VS2019 using this PR #7211.

@jeanga, I can't repro this issue with latest source and VS2019 16.6.0, it should be fixed now. Does it still be a problem for you?

Please reopen this issue if it still be a problem for you.

Was this page helpful?
0 / 5 - 0 ratings