[
https://issues.apache.org/jira/browse/MESOS-8990?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16562237#comment-16562237
]
Andrew Schwartzmeyer commented on MESOS-8990:
---------------------------------------------
Yes! Got a repro:
{noformat}
C:\Users\andschwa\src\mesos\build\gtest\3rdparty\googletest-1.8.0\src\googletest-1.8.0\googletest\include\gtest/gtest-printers.h(249):
error C2593: 'operator <<' is ambiguous
C:\Program Files (x86)\Microsoft Visual
Studio\Preview\BuildTools\VC\Tools\MSVC\14.15.26720\include\ostream(502): note:
could be 'std::basic_ostream<char,std::char_traits<char>>
&std::basic_ostream<char,std::char_traits<char>>::operator
<<<void>(std::nullptr_t)'
{noformat}
This was specifically using the Preview build tools and the following settings:
{noformat}
# Set the default standard to C++11 for all targets.
-set(CMAKE_CXX_STANDARD 11)
-set(CMAKE_CXX_STANDARD_REQUIRED ON)
+# set(CMAKE_CXX_STANDARD 11)
+# set(CMAKE_CXX_STANDARD_REQUIRED ON)
# Do not use, for example, `-std=gnu++11`.
-set(CMAKE_CXX_EXTENSIONS OFF)
+# set(CMAKE_CXX_EXTENSIONS OFF)
+add_compile_options(/std:c++latest)
+add_definitions(-D_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING)
+add_definitions(-D_HAS_AUTO_PTR_ETC=1)
+add_definitions(-D_HAS_TR1_NAMESPACE=1)
+add_definitions(-D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING)
+add_definitions(-D_SILENCE_CXX17_ITERATOR_BASE_CLASS_DEPRECATION_WARNING)
{noformat}
> Build failure of the google-test dependency on Windows using MSVC.
> -------------------------------------------------------------------
>
> Key: MESOS-8990
> URL: https://issues.apache.org/jira/browse/MESOS-8990
> Project: Mesos
> Issue Type: Task
> Components: build
> Reporter: PhoebeHui
> Assignee: Andrew Schwartzmeyer
> Priority: Blocker
> Labels: agent, build, dependency, windows
> Attachments: googletest-release-f66ab00.patch
>
>
> Build Mesos with msvc on windows currently blocked by the following issue,
> this issue has fixed on Goolgetest, could you help pick up it in Mesos?
> The next release msvc toolset will have this behavior.
> See background in
> [{color:#0066cc}https://github.com/google/googletest/issues/1616{color}], and
> the fix
> [{color:#0066cc}https://github.com/google/googletest/pull/1620{color}].
> The failures like:
> {noformat}
>
> d:\mesos\build_x64\3rdparty\googletest-1.8.0\src\googletest-1.8.0\googletest\include\gtest\gtest-printers.h(249,1):
> error C2593: 'operator <<' is ambiguous
> [D:\Mesos\build_x64\src\tests\mesos-tests.vcxproj]
> d:\mesos\build_x64\3rdparty\googletest-1.8.0\src\googletest-1.8.0\googletest\include\gtest\gtest-printers.h(249,1):
> error C2593: *os << value;
> [D:\Mesos\build_x64\src\tests\mesos-tests.vcxproj]
> d:\mesos\build_x64\3rdparty\googletest-1.8.0\src\googletest-1.8.0\googletest\include\gtest\gtest-printers.h(249,1):
> error C2593: ^ (compiling source file
> D:\Mesos\src\src\tests\command_executor_tests.cpp)
> [D:\Mesos\build_x64\src\tests\mesos-tests.vcxproj]
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)