[Xapian-tickets] [Xapian] #806: Project does not compile on VS2019 with C++20 turned on
Xapian
nobody at xapian.org
Wed Dec 23 08:13:49 GMT 2020
#806: Project does not compile on VS2019 with C++20 turned on
--------------------------+--------------------------------------
Reporter: Mateusz Pusz | Owner: Olly Betts
Type: defect | Status: new
Priority: normal | Milestone: 1.4.18
Component: Other | Version: 1.4.17
Severity: normal | Resolution:
Keywords: | Blocked By:
Blocking: | Operating System: Microsoft Windows
--------------------------+--------------------------------------
Comment (by Mateusz Pusz):
Hi, thanks for a quick answer. To repro std::byte issue please run the
following on a Windows machine with VS2019:
```
pip3 install -U conan
conan install xapian-core/1.4.16@ -s compiler.cppstd=20 -b missing
```
The following error is generated:
```
libtool: compile: C:/Users/mateusz_pusz/.conan/data/xapian-
core/1.4.16/_/_/build/dfa2a09fc744e3c526f0a61f32a9e22cf5aa441f/msvc_cl.sh
-DHAVE_CONFIG_H -I. -I/c/users/mateusz_pusz/.conan/data/xapian-
core/1.4.16/_/_/build/dfa2a09fc744e3c526f0a61f32a9e22cf5aa441f/source_subfolder
-I/c/users/mateusz_pusz/.conan/data/xapian-
core/1.4.16/_/_/build/dfa2a09fc744e3c526f0a61f32a9e22cf5aa441f/source_subfolder/common
-I/c/users/mateusz_pusz/.conan/data/xapian-
core/1.4.16/_/_/build/dfa2a09fc744e3c526f0a61f32a9e22cf5aa441f/source_subfolder/include
-I./include -I/c/users/mateusz_pusz/.conan/data/xapian-
core/1.4.16/_/_/build/dfa2a09fc744e3c526f0a61f32a9e22cf5aa441f/source_subfolder/languages
-Ilanguages -I/c/users/mateusz_pusz/.conan/data/xapian-
core/1.4.16/_/_/build/dfa2a09fc744e3c526f0a61f32a9e22cf5aa441f/source_subfolder/queryparser
-I/c/users/mateusz_pusz/.conan/data/zlib/1.2.11/_/_/package/3fb49604f9c2f729b85ba3115852006824e72cab/include
-DNDEBUG -O2 -Ob2 -MD -EHsc /std:c++latest -c -showIncludes
/c/users/mateusz_pusz/.conan/data/xapian-
core/1.4.16/_/_/build/dfa2a09fc744e3c526f0a61f32a9e22cf5aa441f/source_subfolder/api/replication.cc
-o api/replication.obj
Compiling source
** cl options: "-DHAVE_CONFIG_H -I.
-I/c/users/mateusz_pusz/.conan/data/xapian-
core/1.4.16/_/_/build/dfa2a09fc744e3c526f0a61f32a9e22cf5aa441f/source_subfolder
-I/c/users/mateusz_pusz/.conan/data/xapian-
core/1.4.16/_/_/build/dfa2a09fc744e3c526f0a61f32a9e22cf5aa441f/source_subfolder/common
-I/c/users/mateusz_pusz/.conan/data/xapian-
core/1.4.16/_/_/build/dfa2a09fc744e3c526f0a61f32a9e22cf5aa441f/source_subfolder/include
-I./include -I/c/users/mateusz_pusz/.conan/data/xapian-
core/1.4.16/_/_/build/dfa2a09fc744e3c526f0a61f32a9e22cf5aa441f/source_subfolder/languages
-Ilanguages -I/c/users/mateusz_pusz/.conan/data/xapian-
core/1.4.16/_/_/build/dfa2a09fc744e3c526f0a61f32a9e22cf5aa441f/source_subfolder/queryparser
-I/c/users/mateusz_pusz/.conan/data/zlib/1.2.11/_/_/package/3fb49604f9c2f729b85ba3115852006824e72cab/include
-DNDEBUG -O2 -Ob2 -MD -EHsc /std:c++latest -c -showIncludes
/c/users/mateusz_pusz/.conan/data/xapian-
core/1.4.16/_/_/build/dfa2a09fc744e3c526f0a61f32a9e22cf5aa441f/source_subfolder/api/replication.cc
-Foapi/replication.obj"
replication.cc
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\shared\rpcndr.h(192): error C2872: 'byte':
ambiguous symbol
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\shared\rpcndr.h(191): note: could be
'unsigned char byte'
C:\Program Files (x86)\Microsoft Visual
Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\include\cstddef(29):
note: or 'std::byte'
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\shared\rpcndr.h(962): error C2872: 'byte':
ambiguous symbol
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\shared\rpcndr.h(191): note: could be
'unsigned char byte'
C:\Program Files (x86)\Microsoft Visual
Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\include\cstddef(29):
note: or 'std::byte'
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\shared\rpcndr.h(970): error C2872: 'byte':
ambiguous symbol
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\shared\rpcndr.h(191): note: could be
'unsigned char byte'
C:\Program Files (x86)\Microsoft Visual
Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\include\cstddef(29):
note: or 'std::byte'
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\shared\wtypesbase.h(437): error C2872:
'byte': ambiguous symbol
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\shared\rpcndr.h(191): note: could be
'unsigned char byte'
C:\Program Files (x86)\Microsoft Visual
Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\include\cstddef(29):
note: or 'std::byte'
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\shared\wtypesbase.h(462): error C2872:
'byte': ambiguous symbol
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\shared\rpcndr.h(191): note: could be
'unsigned char byte'
C:\Program Files (x86)\Microsoft Visual
Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\include\cstddef(29):
note: or 'std::byte'
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\shared\wtypesbase.h(479): error C2872:
'byte': ambiguous symbol
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\shared\rpcndr.h(191): note: could be
'unsigned char byte'
C:\Program Files (x86)\Microsoft Visual
Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\include\cstddef(29):
note: or 'std::byte'
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\shared\wtypes.h(77): error C2872: 'byte':
ambiguous symbol
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\shared\rpcndr.h(191): note: could be
'unsigned char byte'
C:\Program Files (x86)\Microsoft Visual
Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\include\cstddef(29):
note: or 'std::byte'
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\shared\wtypes.h(86): error C2872: 'byte':
ambiguous symbol
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\shared\rpcndr.h(191): note: could be
'unsigned char byte'
C:\Program Files (x86)\Microsoft Visual
Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\include\cstddef(29):
note: or 'std::byte'
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\shared\wtypes.h(92): error C2872: 'byte':
ambiguous symbol
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\shared\rpcndr.h(191): note: could be
'unsigned char byte'
C:\Program Files (x86)\Microsoft Visual
Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\include\cstddef(29):
note: or 'std::byte'
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\shared\wtypes.h(98): error C2872: 'byte':
ambiguous symbol
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\shared\rpcndr.h(191): note: could be
'unsigned char byte'
C:\Program Files (x86)\Microsoft Visual
Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\include\cstddef(29):
note: or 'std::byte'
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\shared\wtypes.h(104): error C2872: 'byte':
ambiguous symbol
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\shared\rpcndr.h(191): note: could be
'unsigned char byte'
C:\Program Files (x86)\Microsoft Visual
Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\include\cstddef(29):
note: or 'std::byte'
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\shared\wtypes.h(110): error C2872: 'byte':
ambiguous symbol
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\shared\rpcndr.h(191): note: could be
'unsigned char byte'
C:\Program Files (x86)\Microsoft Visual
Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\include\cstddef(29):
note: or 'std::byte'
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\shared\wtypes.h(485): error C2872: 'byte':
ambiguous symbol
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\shared\rpcndr.h(191): note: could be
'unsigned char byte'
C:\Program Files (x86)\Microsoft Visual
Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\include\cstddef(29):
note: or 'std::byte'
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\um\objidlbase.h(2175): error C2872: 'byte':
ambiguous symbol
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\shared\rpcndr.h(191): note: could be
'unsigned char byte'
C:\Program Files (x86)\Microsoft Visual
Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\include\cstddef(29):
note: or 'std::byte'
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\um\objidlbase.h(2189): error C2872: 'byte':
ambiguous symbol
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\shared\rpcndr.h(191): note: could be
'unsigned char byte'
C:\Program Files (x86)\Microsoft Visual
Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\include\cstddef(29):
note: or 'std::byte'
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\um\objidlbase.h(7881): error C2872: 'byte':
ambiguous symbol
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\shared\rpcndr.h(191): note: could be
'unsigned char byte'
C:\Program Files (x86)\Microsoft Visual
Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\include\cstddef(29):
note: or 'std::byte'
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\um\objidlbase.h(7897): error C2872: 'byte':
ambiguous symbol
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\shared\rpcndr.h(191): note: could be
'unsigned char byte'
C:\Program Files (x86)\Microsoft Visual
Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\include\cstddef(29):
note: or 'std::byte'
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\um\objidl.h(9745): error C2872: 'byte':
ambiguous symbol
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\shared\rpcndr.h(191): note: could be
'unsigned char byte'
C:\Program Files (x86)\Microsoft Visual
Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\include\cstddef(29):
note: or 'std::byte'
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\um\objidl.h(10274): error C2872: 'byte':
ambiguous symbol
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\shared\rpcndr.h(191): note: could be
'unsigned char byte'
C:\Program Files (x86)\Microsoft Visual
Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\include\cstddef(29):
note: or 'std::byte'
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\um\objidl.h(10306): error C2872: 'byte':
ambiguous symbol
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\shared\rpcndr.h(191): note: could be
'unsigned char byte'
C:\Program Files (x86)\Microsoft Visual
Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\include\cstddef(29):
note: or 'std::byte'
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\um\objidl.h(10785): error C2872: 'byte':
ambiguous symbol
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\shared\rpcndr.h(191): note: could be
'unsigned char byte'
C:\Program Files (x86)\Microsoft Visual
Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\include\cstddef(29):
note: or 'std::byte'
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\um\objidl.h(10800): error C2872: 'byte':
ambiguous symbol
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\shared\rpcndr.h(191): note: could be
'unsigned char byte'
C:\Program Files (x86)\Microsoft Visual
Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\include\cstddef(29):
note: or 'std::byte'
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\um\objidl.h(11243): error C2872: 'byte':
ambiguous symbol
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\shared\rpcndr.h(191): note: could be
'unsigned char byte'
C:\Program Files (x86)\Microsoft Visual
Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\include\cstddef(29):
note: or 'std::byte'
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\um\objidl.h(12976): error C2872: 'byte':
ambiguous symbol
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\shared\rpcndr.h(191): note: could be
'unsigned char byte'
C:\Program Files (x86)\Microsoft Visual
Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\include\cstddef(29):
note: or 'std::byte'
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\um\objidl.h(12991): error C2872: 'byte':
ambiguous symbol
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\shared\rpcndr.h(191): note: could be
'unsigned char byte'
C:\Program Files (x86)\Microsoft Visual
Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\include\cstddef(29):
note: or 'std::byte'
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\um\objidl.h(14657): error C2872: 'byte':
ambiguous symbol
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\shared\rpcndr.h(191): note: could be
'unsigned char byte'
C:\Program Files (x86)\Microsoft Visual
Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\include\cstddef(29):
note: or 'std::byte'
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\um\objidl.h(14673): error C2872: 'byte':
ambiguous symbol
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\shared\rpcndr.h(191): note: could be
'unsigned char byte'
C:\Program Files (x86)\Microsoft Visual
Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\include\cstddef(29):
note: or 'std::byte'
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\um\objidl.h(14820): error C2872: 'byte':
ambiguous symbol
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\shared\rpcndr.h(191): note: could be
'unsigned char byte'
C:\Program Files (x86)\Microsoft Visual
Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\include\cstddef(29):
note: or 'std::byte'
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\um\objidl.h(14859): error C2872: 'byte':
ambiguous symbol
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\shared\rpcndr.h(191): note: could be
'unsigned char byte'
C:\Program Files (x86)\Microsoft Visual
Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\include\cstddef(29):
note: or 'std::byte'
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\um\objidl.h(14876): error C2872: 'byte':
ambiguous symbol
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\shared\rpcndr.h(191): note: could be
'unsigned char byte'
C:\Program Files (x86)\Microsoft Visual
Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\include\cstddef(29):
note: or 'std::byte'
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\um\objidl.h(14893): error C2872: 'byte':
ambiguous symbol
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\shared\rpcndr.h(191): note: could be
'unsigned char byte'
C:\Program Files (x86)\Microsoft Visual
Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\include\cstddef(29):
note: or 'std::byte'
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\um\objidl.h(15138): error C2872: 'byte':
ambiguous symbol
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\shared\rpcndr.h(191): note: could be
'unsigned char byte'
C:\Program Files (x86)\Microsoft Visual
Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\include\cstddef(29):
note: or 'std::byte'
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\um\objidl.h(15157): error C2872: 'byte':
ambiguous symbol
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\shared\rpcndr.h(191): note: could be
'unsigned char byte'
C:\Program Files (x86)\Microsoft Visual
Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\include\cstddef(29):
note: or 'std::byte'
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\um\oaidl.h(563): error C2872: 'byte':
ambiguous symbol
C:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\shared\rpcndr.h(191): note: could be
'unsigned char byte'
C:\Program Files (x86)\Microsoft Visual
Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\include\cstddef(29):
note: or 'std::byte'
make[2]: *** [Makefile:2812: api/replication.lo] Error 1
```
--
Ticket URL: <https://trac.xapian.org/ticket/806#comment:3>
Xapian <https://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list