...patience... ...found 2439 targets... ...updating 34 targets... clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/acl/module_manager/create_module_rdp.o In file included from src/acl/module_manager/create_module_rdp.cpp:25: In file included from src/acl/module_manager.hpp:32: src/core/session_reactor.hpp:1941:28: warning: parameter 'p' shadows member inherited from type 'SharedPtr' [-Wshadow-field] TopSharedPtr(Data* p = nullptr) noexcept ^ src/core/session_reactor.hpp:1817:25: note: declared here SharedDataBase* p; ^ src/core/session_reactor.hpp:1979:40: warning: parameter 'p' shadows member inherited from type 'SharedPtr' [-Wshadow-field] TimerSharedPtr(SharedDataBase* p = nullptr) noexcept ^ src/core/session_reactor.hpp:1817:25: note: declared here SharedDataBase* p; ^ In file included from src/acl/module_manager/create_module_rdp.cpp:25: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:42: In file included from src/core/RDP/GraphicUpdatePDU.hpp:27: In file included from src/core/RDP/RDPSerializer.hpp:94: In file included from src/core/RDP/bitmapupdate.hpp:26: src/core/RDP/capabilities/general.hpp:254:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/acl/module_manager/create_module_rdp.cpp:25: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:42: In file included from src/core/RDP/GraphicUpdatePDU.hpp:27: In file included from src/core/RDP/RDPSerializer.hpp:107: In file included from src/core/RDP/caches/bmpcache.hpp:30: In file included from src/core/RDP/orders/RDPOrdersSecondaryBmpCache.hpp:31: src/utils/sugar/numerics/safe_conversions.hpp:152:65: error: no template named 'is_enum_v' in namespace 'std'; did you mean 'is_enum'? struct underlying_type_or_integral>> ~~~~~^~~~~~~~~ is_enum /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:434:12: note: 'is_enum' declared here struct is_enum ^ In file included from src/acl/module_manager/create_module_rdp.cpp:25: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:42: In file included from src/core/RDP/GraphicUpdatePDU.hpp:27: In file included from src/core/RDP/RDPSerializer.hpp:107: In file included from src/core/RDP/caches/bmpcache.hpp:30: In file included from src/core/RDP/orders/RDPOrdersSecondaryBmpCache.hpp:31: src/utils/sugar/numerics/safe_conversions.hpp:152:60: error: template argument for non-type template parameter must be an expression struct underlying_type_or_integral>> ^~~~~~~~~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:2522:17: note: template parameter is declared here template ^ In file included from src/acl/module_manager/create_module_rdp.cpp:25: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:42: In file included from src/core/RDP/GraphicUpdatePDU.hpp:27: In file included from src/core/RDP/RDPSerializer.hpp:107: In file included from src/core/RDP/caches/bmpcache.hpp:30: src/core/RDP/orders/RDPOrdersSecondaryBmpCache.hpp:526:26: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] stream.out_uint8(safe_int(this->bmp.bpp())); ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ In file included from src/acl/module_manager/create_module_rdp.cpp:25: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:42: In file included from src/core/RDP/GraphicUpdatePDU.hpp:27: In file included from src/core/RDP/RDPSerializer.hpp:107: In file included from src/core/RDP/caches/bmpcache.hpp:30: src/core/RDP/orders/RDPOrdersSecondaryBmpCache.hpp:590:26: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] stream.out_uint8(safe_int(this->bmp.bpp())); ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ In file included from src/acl/module_manager/create_module_rdp.cpp:25: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:42: In file included from src/core/RDP/GraphicUpdatePDU.hpp:27: In file included from src/core/RDP/RDPSerializer.hpp:109: In file included from src/core/RDP/caches/glyphcache.hpp:26: src/core/RDP/capabilities/cap_glyphcache.hpp:200:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/acl/module_manager/create_module_rdp.cpp:25: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:42: In file included from src/core/RDP/GraphicUpdatePDU.hpp:27: src/core/RDP/RDPSerializer.hpp:280:10: warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt] }; ^ In file included from src/acl/module_manager/create_module_rdp.cpp:25: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:42: In file included from src/core/RDP/GraphicUpdatePDU.hpp:28: In file included from src/core/RDP/gcc.hpp:45: src/core/RDP/gcc/userdata/sc_core.hpp:176:10: warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt] }; ^ In file included from src/acl/module_manager/create_module_rdp.cpp:25: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:42: In file included from src/core/RDP/GraphicUpdatePDU.hpp:31: src/core/RDP/x224.hpp:368:18: warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt] }; ^ In file included from src/acl/module_manager/create_module_rdp.cpp:25: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:42: src/core/RDP/GraphicUpdatePDU.hpp:441:35: warning: parameter 'bmp_cache' shadows member inherited from type 'RDPSerializer' [-Wshadow-field] , BmpCache & bmp_cache ^ src/core/RDP/RDPSerializer.hpp:157:21: note: declared here BmpCache & bmp_cache; ^ In file included from src/acl/module_manager/create_module_rdp.cpp:25: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:42: src/core/RDP/GraphicUpdatePDU.hpp:443:39: warning: parameter 'pointer_cache' shadows member inherited from type 'RDPSerializer' [-Wshadow-field] , PointerCache & pointer_cache ^ src/core/RDP/RDPSerializer.hpp:159:21: note: declared here PointerCache & pointer_cache; ^ In file included from src/acl/module_manager/create_module_rdp.cpp:25: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:42: src/core/RDP/GraphicUpdatePDU.hpp:453:32: warning: parameter 'verbose' shadows member inherited from type 'RDPSerializer' [-Wshadow-field] , Verbose verbose ^ src/core/RDP/RDPSerializer.hpp:164:41: note: declared here REDEMPTION_VERBOSE_FLAGS(protected, verbose) ^ In file included from src/acl/module_manager/create_module_rdp.cpp:25: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:48: src/core/RDP/caches/bmpcachepersister.hpp:207:29: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] , safe_int(original_info.width), safe_int(original_info.height) ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ In file included from src/acl/module_manager/create_module_rdp.cpp:25: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:48: src/core/RDP/caches/bmpcachepersister.hpp:207:60: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] , safe_int(original_info.width), safe_int(original_info.height) ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ In file included from src/acl/module_manager/create_module_rdp.cpp:25: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:48: src/core/RDP/caches/bmpcachepersister.hpp:356:29: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] , safe_int(original_info.width), safe_int(original_info.height) ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ In file included from src/acl/module_manager/create_module_rdp.cpp:25: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:48: src/core/RDP/caches/bmpcachepersister.hpp:356:60: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] , safe_int(original_info.width), safe_int(original_info.height) ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ In file included from src/acl/module_manager/create_module_rdp.cpp:25: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:48: src/core/RDP/caches/bmpcachepersister.hpp:443:34: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] stream.out_uint8(safe_int(bmp.bpp())); ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ In file included from src/acl/module_manager/create_module_rdp.cpp:25: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:52: src/core/RDP/capabilities/bitmapcachehostsupport.hpp:78:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/acl/module_manager/create_module_rdp.cpp:25: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:53: src/core/RDP/capabilities/bmpcache2.hpp:159:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/acl/module_manager/create_module_rdp.cpp:25: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:54: src/core/RDP/capabilities/cap_bmpcache.hpp:118:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/acl/module_manager/create_module_rdp.cpp:25: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:55: src/core/RDP/capabilities/cap_brushcache.hpp:85:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/acl/module_manager/create_module_rdp.cpp:25: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:56: src/core/RDP/capabilities/cap_font.hpp:78:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/acl/module_manager/create_module_rdp.cpp:25: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:58: src/core/RDP/capabilities/cap_share.hpp:74:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/acl/module_manager/create_module_rdp.cpp:25: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:59: src/core/RDP/capabilities/colcache.hpp:78:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/acl/module_manager/create_module_rdp.cpp:25: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:60: src/core/RDP/capabilities/compdesk.hpp:73:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/acl/module_manager/create_module_rdp.cpp:25: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:61: src/core/RDP/capabilities/input.hpp:118:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/acl/module_manager/create_module_rdp.cpp:25: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:62: src/core/RDP/capabilities/largepointer.hpp:84:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/acl/module_manager/create_module_rdp.cpp:25: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:63: src/core/RDP/capabilities/multifragmentupdate.hpp:69:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/acl/module_manager/create_module_rdp.cpp:25: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:64: src/core/RDP/capabilities/offscreencache.hpp:77:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/acl/module_manager/create_module_rdp.cpp:25: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:65: src/core/RDP/capabilities/pointer.hpp:94:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/acl/module_manager/create_module_rdp.cpp:25: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:66: src/core/RDP/capabilities/rail.hpp:172:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/acl/module_manager/create_module_rdp.cpp:25: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:67: In file included from src/core/RDP/capabilities/window.hpp:28: src/core/RDP/capabilities/virchan.hpp:86:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/acl/module_manager/create_module_rdp.cpp:25: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:67: src/core/RDP/capabilities/window.hpp:134:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/acl/module_manager/create_module_rdp.cpp:25: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:83: In file included from src/core/client_info.hpp:33: src/core/RDP/logon.hpp:612:9: warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt] ; ^ In file included from src/acl/module_manager/create_module_rdp.cpp:25: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:83: In file included from src/core/client_info.hpp:35: src/core/RDP/capabilities/cap_bitmap.hpp:172:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/acl/module_manager/create_module_rdp.cpp:25: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:83: In file included from src/core/client_info.hpp:41: src/core/RDP/capabilities/order.hpp:384:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/acl/module_manager/create_module_rdp.cpp:25: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:83: In file included from src/core/client_info.hpp:44: src/core/RDP/capabilities/bitmapcodecs.hpp:33:10: fatal error: 'variant' file not found #include ^~~~~~~~~ 36 warnings and 3 errors generated. "clang++" -c -x c++ -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -O3 -Wno-inline -Wall -fPIC -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -DNDEBUG -DZLIB_CONST -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I"include" -I"modules/includes" -I"modules/ppocr/includes/mln" -I"modules/ppocr/src" -I"projects/ocr1/include" -I"projects/redemption_configs/autogen/include" -I"projects/redemption_configs/redemption_src" -I"src" -I"src/system/linux" -o "bin/clang-linux-9.0.0/release/src/acl/module_manager/create_module_rdp.o" "src/acl/module_manager/create_module_rdp.cpp" ...failed clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/acl/module_manager/create_module_rdp.o... clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/acl/module_manager/create_module_vnc.o In file included from src/acl/module_manager/create_module_vnc.cpp:26: In file included from src/core/client_info.hpp:32: In file included from src/core/RDP/gcc.hpp:45: src/core/RDP/gcc/userdata/sc_core.hpp:176:10: warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt] }; ^ In file included from src/acl/module_manager/create_module_vnc.cpp:26: In file included from src/core/client_info.hpp:33: src/core/RDP/logon.hpp:612:9: warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt] ; ^ In file included from src/acl/module_manager/create_module_vnc.cpp:26: In file included from src/core/client_info.hpp:34: src/core/RDP/capabilities/bmpcache2.hpp:159:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/acl/module_manager/create_module_vnc.cpp:26: In file included from src/core/client_info.hpp:35: src/core/RDP/capabilities/cap_bitmap.hpp:172:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/acl/module_manager/create_module_vnc.cpp:26: In file included from src/core/client_info.hpp:36: src/core/RDP/capabilities/cap_bmpcache.hpp:118:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/acl/module_manager/create_module_vnc.cpp:26: In file included from src/core/client_info.hpp:37: src/core/RDP/capabilities/cap_glyphcache.hpp:200:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/acl/module_manager/create_module_vnc.cpp:26: In file included from src/core/client_info.hpp:38: src/core/RDP/capabilities/general.hpp:254:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/acl/module_manager/create_module_vnc.cpp:26: In file included from src/core/client_info.hpp:39: src/core/RDP/capabilities/largepointer.hpp:84:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/acl/module_manager/create_module_vnc.cpp:26: In file included from src/core/client_info.hpp:40: src/core/RDP/capabilities/offscreencache.hpp:77:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/acl/module_manager/create_module_vnc.cpp:26: In file included from src/core/client_info.hpp:41: src/core/RDP/capabilities/order.hpp:384:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/acl/module_manager/create_module_vnc.cpp:26: In file included from src/core/client_info.hpp:42: src/core/RDP/capabilities/multifragmentupdate.hpp:69:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/acl/module_manager/create_module_vnc.cpp:26: In file included from src/core/client_info.hpp:43: src/core/RDP/capabilities/rail.hpp:172:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/acl/module_manager/create_module_vnc.cpp:26: In file included from src/core/client_info.hpp:44: src/core/RDP/capabilities/bitmapcodecs.hpp:33:10: fatal error: 'variant' file not found #include ^~~~~~~~~ 12 warnings and 1 error generated. "clang++" -c -x c++ -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -O3 -Wno-inline -Wall -fPIC -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -DNDEBUG -DZLIB_CONST -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I"include" -I"modules/includes" -I"modules/ppocr/includes/mln" -I"modules/ppocr/src" -I"projects/ocr1/include" -I"projects/redemption_configs/autogen/include" -I"projects/redemption_configs/redemption_src" -I"src" -I"src/system/linux" -o "bin/clang-linux-9.0.0/release/src/acl/module_manager/create_module_vnc.o" "src/acl/module_manager/create_module_vnc.cpp" ...failed clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/acl/module_manager/create_module_vnc.o... clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/capture/capture.o In file included from src/capture/capture.cpp:36: In file included from src/core/RDP/RDPDrawable.hpp:26: src/core/RDP/capabilities/cap_glyphcache.hpp:200:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/capture/capture.cpp:54: In file included from src/utils/timestamp_tracer.hpp:23: src/utils/sugar/numerics/safe_conversions.hpp:152:65: error: no template named 'is_enum_v' in namespace 'std'; did you mean 'is_enum'? struct underlying_type_or_integral>> ~~~~~^~~~~~~~~ is_enum /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:434:12: note: 'is_enum' declared here struct is_enum ^ In file included from src/capture/capture.cpp:54: In file included from src/utils/timestamp_tracer.hpp:23: src/utils/sugar/numerics/safe_conversions.hpp:152:60: error: template argument for non-type template parameter must be an expression struct underlying_type_or_integral>> ^~~~~~~~~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:2522:17: note: template parameter is declared here template ^ In file included from src/capture/capture.cpp:54: src/utils/timestamp_tracer.hpp:62:23: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] , bytes_per_pixel(safe_int(image_view.bytes_per_pixel())) ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ In file included from src/capture/capture.cpp:80: In file included from src/capture/wrm_capture.hpp:24: src/capture/wrm_meta_chunk.hpp:34:26: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] header.out_uint16_le(safe_int(chunktype)); ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ In file included from src/capture/capture.cpp:80: In file included from src/capture/wrm_capture.hpp:24: src/capture/wrm_meta_chunk.hpp:80:31: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] payload.out_uint16_le(safe_int(WrmChunkType::META_FILE)); ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ In file included from src/capture/capture.cpp:80: In file included from src/capture/wrm_capture.hpp:24: src/capture/wrm_meta_chunk.hpp:88:31: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] payload.out_uint16_le(safe_int(this->bpp)); ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ In file included from src/capture/capture.cpp:80: In file included from src/capture/wrm_capture.hpp:24: src/capture/wrm_meta_chunk.hpp:132:42: warning: 'checked_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] this->bpp = checked_int(stream.in_uint16_le()); ^ src/utils/sugar/numerics/safe_conversions.hpp:51:8: note: add a deduction guide to suppress this warning struct checked_int ^ In file included from src/capture/capture.cpp:80: In file included from src/capture/wrm_capture.hpp:29: In file included from src/core/RDP/RDPSerializer.hpp:94: In file included from src/core/RDP/bitmapupdate.hpp:26: src/core/RDP/capabilities/general.hpp:254:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/capture/capture.cpp:80: In file included from src/capture/wrm_capture.hpp:29: In file included from src/core/RDP/RDPSerializer.hpp:107: In file included from src/core/RDP/caches/bmpcache.hpp:30: src/core/RDP/orders/RDPOrdersSecondaryBmpCache.hpp:526:26: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] stream.out_uint8(safe_int(this->bmp.bpp())); ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ In file included from src/capture/capture.cpp:80: In file included from src/capture/wrm_capture.hpp:29: In file included from src/core/RDP/RDPSerializer.hpp:107: In file included from src/core/RDP/caches/bmpcache.hpp:30: src/core/RDP/orders/RDPOrdersSecondaryBmpCache.hpp:590:26: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] stream.out_uint8(safe_int(this->bmp.bpp())); ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ In file included from src/capture/capture.cpp:80: In file included from src/capture/wrm_capture.hpp:29: src/core/RDP/RDPSerializer.hpp:280:10: warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt] }; ^ In file included from src/capture/capture.cpp:80: src/capture/wrm_capture.hpp:137:38: warning: parameter 'capture_bpp' shadows member inherited from type 'RDPSerializer' [-Wshadow-field] , const BitsPerPixel capture_bpp ^ src/core/RDP/RDPSerializer.hpp:132:24: note: declared here const BitsPerPixel capture_bpp; ^ In file included from src/capture/capture.cpp:80: src/capture/wrm_capture.hpp:140:30: warning: parameter 'bmp_cache' shadows member inherited from type 'RDPSerializer' [-Wshadow-field] , BmpCache & bmp_cache ^ src/core/RDP/RDPSerializer.hpp:157:21: note: declared here BmpCache & bmp_cache; ^ In file included from src/capture/capture.cpp:80: src/capture/wrm_capture.hpp:146:27: warning: parameter 'verbose' shadows member inherited from type 'RDPSerializer' [-Wshadow-field] , Verbose verbose = Verbose::none) ^ src/core/RDP/RDPSerializer.hpp:164:41: note: declared here REDEMPTION_VERBOSE_FLAGS(protected, verbose) ^ In file included from src/capture/capture.cpp:80: src/capture/wrm_capture.hpp:494:38: warning: parameter 'capture_bpp' shadows member inherited from type 'RDPSerializer' [-Wshadow-field] , const BitsPerPixel capture_bpp ^ src/core/RDP/RDPSerializer.hpp:132:24: note: declared here const BitsPerPixel capture_bpp; ^ In file included from src/capture/capture.cpp:80: src/capture/wrm_capture.hpp:496:30: warning: parameter 'bmp_cache' shadows member inherited from type 'RDPSerializer' [-Wshadow-field] , BmpCache & bmp_cache ^ src/core/RDP/RDPSerializer.hpp:157:21: note: declared here BmpCache & bmp_cache; ^ In file included from src/capture/capture.cpp:80: src/capture/wrm_capture.hpp:502:42: warning: parameter 'verbose' shadows member inherited from type 'RDPSerializer' [-Wshadow-field] , GraphicToFile::Verbose verbose) ^ src/core/RDP/RDPSerializer.hpp:164:41: note: declared here REDEMPTION_VERBOSE_FLAGS(protected, verbose) ^ In file included from src/capture/capture.cpp:80: src/capture/wrm_capture.hpp:521:53: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] target_bitmap_data.bits_per_pixel = safe_int(bmp.bpp()); ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/capture/capture.cpp:776:23: warning: parameter 'drawable' shadows member inherited from type 'PngCapture' [-Wshadow-field] RDPDrawable & drawable, gdi::ImageFrameApi & imageFrameApi) ^ src/capture/capture.cpp:642:19: note: declared here RDPDrawable & drawable; ^ In file included from src/capture/capture.cpp:80: In file included from src/capture/wrm_capture.hpp:29: In file included from src/core/RDP/RDPSerializer.hpp:91: src/utils/sugar/finally.hpp:38:12: warning: aggregate initialization of type 'basic_finally<(lambda at src/core/RDP/RDPSerializer.hpp:419:33)>' with user-declared constructors is incompatible with C++2a [-Wc++2a-compat] return {static_cast(f)}; ^~~~~~~~~~~~~~~~~~~~~ src/core/RDP/RDPSerializer.hpp:419:25: note: in instantiation of function template specialization 'finally<(lambda at src/core/RDP/RDPSerializer.hpp:419:33)>' requested here auto finally_ = finally([&]{ fc.data = std::move(cmd.aj); }); ^ 19 warnings and 2 errors generated. "clang++" -c -x c++ -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-deprecated-declarations -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -O3 -Wno-inline -Wall -fPIC -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-deprecated-declarations -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -DNDEBUG -DZLIB_CONST -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I"include" -I"modules/includes" -I"modules/ppocr/includes/mln" -I"modules/ppocr/src" -I"projects/ocr1/include" -I"projects/redemption_configs/autogen/include" -I"projects/redemption_configs/redemption_src" -I"src" -I"src/system/linux" -o "bin/clang-linux-9.0.0/release/src/capture/capture.o" "src/capture/capture.cpp" ...failed clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/capture/capture.o... clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/capture/file_to_graphic.o In file included from src/capture/file_to_graphic.cpp:28: In file included from src/capture/file_to_graphic.hpp:24: In file included from src/capture/wrm_meta_chunk.hpp:27: src/utils/sugar/numerics/safe_conversions.hpp:152:65: error: no template named 'is_enum_v' in namespace 'std'; did you mean 'is_enum'? struct underlying_type_or_integral>> ~~~~~^~~~~~~~~ is_enum /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:434:12: note: 'is_enum' declared here struct is_enum ^ In file included from src/capture/file_to_graphic.cpp:28: In file included from src/capture/file_to_graphic.hpp:24: In file included from src/capture/wrm_meta_chunk.hpp:27: src/utils/sugar/numerics/safe_conversions.hpp:152:60: error: template argument for non-type template parameter must be an expression struct underlying_type_or_integral>> ^~~~~~~~~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:2522:17: note: template parameter is declared here template ^ In file included from src/capture/file_to_graphic.cpp:28: In file included from src/capture/file_to_graphic.hpp:24: src/capture/wrm_meta_chunk.hpp:34:26: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] header.out_uint16_le(safe_int(chunktype)); ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ In file included from src/capture/file_to_graphic.cpp:28: In file included from src/capture/file_to_graphic.hpp:24: src/capture/wrm_meta_chunk.hpp:80:31: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] payload.out_uint16_le(safe_int(WrmChunkType::META_FILE)); ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ In file included from src/capture/file_to_graphic.cpp:28: In file included from src/capture/file_to_graphic.hpp:24: src/capture/wrm_meta_chunk.hpp:88:31: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] payload.out_uint16_le(safe_int(this->bpp)); ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ In file included from src/capture/file_to_graphic.cpp:28: In file included from src/capture/file_to_graphic.hpp:24: src/capture/wrm_meta_chunk.hpp:132:42: warning: 'checked_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] this->bpp = checked_int(stream.in_uint16_le()); ^ src/utils/sugar/numerics/safe_conversions.hpp:51:8: note: add a deduction guide to suppress this warning struct checked_int ^ In file included from src/capture/file_to_graphic.cpp:28: In file included from src/capture/file_to_graphic.hpp:25: In file included from src/core/RDP/caches/glyphcache.hpp:26: src/core/RDP/capabilities/cap_glyphcache.hpp:200:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/capture/file_to_graphic.cpp:35: In file included from src/core/RDP/caches/bmpcache.hpp:30: src/core/RDP/orders/RDPOrdersSecondaryBmpCache.hpp:526:26: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] stream.out_uint8(safe_int(this->bmp.bpp())); ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ In file included from src/capture/file_to_graphic.cpp:35: In file included from src/core/RDP/caches/bmpcache.hpp:30: src/core/RDP/orders/RDPOrdersSecondaryBmpCache.hpp:590:26: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] stream.out_uint8(safe_int(this->bmp.bpp())); ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ In file included from src/capture/file_to_graphic.cpp:36: In file included from src/core/RDP/bitmapupdate.hpp:26: src/core/RDP/capabilities/general.hpp:254:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/capture/file_to_graphic.cpp:28: In file included from src/capture/file_to_graphic.hpp:24: In file included from src/capture/wrm_meta_chunk.hpp:27: src/utils/sugar/numerics/safe_conversions.hpp:269:5: error: static_assert failed due to requirement 'integral_constant::value' "Unsafe conversion." static_assert(is_safe_convertible::value, "Unsafe conversion."); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/capture/file_to_graphic.cpp:154:28: note: in instantiation of function template specialization 'safe_cast' requested here this->chunk_type = safe_cast(header.in_uint16_le()); ^ src/capture/file_to_graphic.cpp:648:33: warning: 'checked_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] , checked_int(bitmap_data.bits_per_pixel) ^ src/utils/sugar/numerics/safe_conversions.hpp:51:8: note: add a deduction guide to suppress this warning struct checked_int ^ src/capture/file_to_graphic.cpp:677:24: warning: 'checked_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] , checked_int(bitmap_data.bits_per_pixel) ^ src/utils/sugar/numerics/safe_conversions.hpp:51:8: note: add a deduction guide to suppress this warning struct checked_int ^ 10 warnings and 3 errors generated. "clang++" -c -x c++ -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -O3 -Wno-inline -Wall -fPIC -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -DNDEBUG -DZLIB_CONST -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I"include" -I"modules/includes" -I"modules/ppocr/includes/mln" -I"modules/ppocr/src" -I"projects/ocr1/include" -I"projects/redemption_configs/autogen/include" -I"projects/redemption_configs/redemption_src" -I"src" -I"src/system/linux" -o "bin/clang-linux-9.0.0/release/src/capture/file_to_graphic.o" "src/capture/file_to_graphic.cpp" ...failed clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/capture/file_to_graphic.o... clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/capture/params_from_ini.o In file included from src/capture/params_from_ini.cpp:23: In file included from src/core/RDP/RDPSerializer.hpp:94: In file included from src/core/RDP/bitmapupdate.hpp:26: src/core/RDP/capabilities/general.hpp:254:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/capture/params_from_ini.cpp:23: In file included from src/core/RDP/RDPSerializer.hpp:107: In file included from src/core/RDP/caches/bmpcache.hpp:30: In file included from src/core/RDP/orders/RDPOrdersSecondaryBmpCache.hpp:31: src/utils/sugar/numerics/safe_conversions.hpp:152:65: error: no template named 'is_enum_v' in namespace 'std'; did you mean 'is_enum'? struct underlying_type_or_integral>> ~~~~~^~~~~~~~~ is_enum /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:434:12: note: 'is_enum' declared here struct is_enum ^ In file included from src/capture/params_from_ini.cpp:23: In file included from src/core/RDP/RDPSerializer.hpp:107: In file included from src/core/RDP/caches/bmpcache.hpp:30: In file included from src/core/RDP/orders/RDPOrdersSecondaryBmpCache.hpp:31: src/utils/sugar/numerics/safe_conversions.hpp:152:60: error: template argument for non-type template parameter must be an expression struct underlying_type_or_integral>> ^~~~~~~~~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:2522:17: note: template parameter is declared here template ^ In file included from src/capture/params_from_ini.cpp:23: In file included from src/core/RDP/RDPSerializer.hpp:107: In file included from src/core/RDP/caches/bmpcache.hpp:30: src/core/RDP/orders/RDPOrdersSecondaryBmpCache.hpp:526:26: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] stream.out_uint8(safe_int(this->bmp.bpp())); ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ In file included from src/capture/params_from_ini.cpp:23: In file included from src/core/RDP/RDPSerializer.hpp:107: In file included from src/core/RDP/caches/bmpcache.hpp:30: src/core/RDP/orders/RDPOrdersSecondaryBmpCache.hpp:590:26: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] stream.out_uint8(safe_int(this->bmp.bpp())); ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ In file included from src/capture/params_from_ini.cpp:23: In file included from src/core/RDP/RDPSerializer.hpp:109: In file included from src/core/RDP/caches/glyphcache.hpp:26: src/core/RDP/capabilities/cap_glyphcache.hpp:200:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/capture/params_from_ini.cpp:23: src/core/RDP/RDPSerializer.hpp:280:10: warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt] }; ^ In file included from src/capture/params_from_ini.cpp:23: In file included from src/core/RDP/RDPSerializer.hpp:91: src/utils/sugar/finally.hpp:38:12: warning: aggregate initialization of type 'basic_finally<(lambda at src/core/RDP/RDPSerializer.hpp:419:33)>' with user-declared constructors is incompatible with C++2a [-Wc++2a-compat] return {static_cast(f)}; ^~~~~~~~~~~~~~~~~~~~~ src/core/RDP/RDPSerializer.hpp:419:25: note: in instantiation of function template specialization 'finally<(lambda at src/core/RDP/RDPSerializer.hpp:419:33)>' requested here auto finally_ = finally([&]{ fc.data = std::move(cmd.aj); }); ^ 6 warnings and 2 errors generated. "clang++" -c -x c++ -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -O3 -Wno-inline -Wall -fPIC -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -DNDEBUG -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I"include" -I"modules/includes" -I"modules/ppocr/includes/mln" -I"modules/ppocr/src" -I"projects/ocr1/include" -I"projects/redemption_configs/autogen/include" -I"projects/redemption_configs/redemption_src" -I"src" -I"src/system/linux" -o "bin/clang-linux-9.0.0/release/src/capture/params_from_ini.o" "src/capture/params_from_ini.cpp" ...failed clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/capture/params_from_ini.o... clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/capture/video_capture.o In file included from src/capture/video_capture.cpp:24: In file included from src/capture/video_capture.hpp:29: In file included from src/utils/timestamp_tracer.hpp:23: src/utils/sugar/numerics/safe_conversions.hpp:152:65: error: no template named 'is_enum_v' in namespace 'std'; did you mean 'is_enum'? struct underlying_type_or_integral>> ~~~~~^~~~~~~~~ is_enum /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:434:12: note: 'is_enum' declared here struct is_enum ^ In file included from src/capture/video_capture.cpp:24: In file included from src/capture/video_capture.hpp:29: In file included from src/utils/timestamp_tracer.hpp:23: src/utils/sugar/numerics/safe_conversions.hpp:152:60: error: template argument for non-type template parameter must be an expression struct underlying_type_or_integral>> ^~~~~~~~~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:2522:17: note: template parameter is declared here template ^ In file included from src/capture/video_capture.cpp:24: In file included from src/capture/video_capture.hpp:29: src/utils/timestamp_tracer.hpp:62:23: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] , bytes_per_pixel(safe_int(image_view.bytes_per_pixel())) ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ In file included from src/capture/video_capture.cpp:27: In file included from src/core/RDP/RDPDrawable.hpp:26: src/core/RDP/capabilities/cap_glyphcache.hpp:200:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ src/capture/video_capture.cpp:387:10: warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt] }; ^ 3 warnings and 2 errors generated. "clang++" -c -x c++ -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-deprecated-declarations -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -O3 -Wno-inline -Wall -fPIC -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-deprecated-declarations -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -DNDEBUG -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I"include" -I"modules/includes" -I"modules/ppocr/includes/mln" -I"modules/ppocr/src" -I"projects/ocr1/include" -I"projects/redemption_configs/autogen/include" -I"projects/redemption_configs/redemption_src" -I"src" -I"src/system/linux" -o "bin/clang-linux-9.0.0/release/src/capture/video_capture.o" "src/capture/video_capture.cpp" ...failed clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/capture/video_capture.o... clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/core/RDP/nego.o In file included from src/core/RDP/nego.cpp:25: In file included from src/core/RDP/nla/nla.hpp:25: In file included from src/core/RDP/nla/credssp.hpp:27: In file included from src/core/RDP/nla/ntlm/ntlm_message_challenge.hpp:24: src/core/RDP/nla/ntlm/ntlm_message.hpp:610:67: warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt] stream.in_skip_bytes(pEnd - stream.get_current());; ^ In file included from src/core/RDP/nego.cpp:25: In file included from src/core/RDP/nla/nla.hpp:25: In file included from src/core/RDP/nla/credssp.hpp:27: In file included from src/core/RDP/nla/ntlm/ntlm_message_challenge.hpp:25: In file included from src/core/RDP/nla/ntlm/ntlm_avpair.hpp:27: src/utils/sugar/numerics/safe_conversions.hpp:152:65: error: no template named 'is_enum_v' in namespace 'std'; did you mean 'is_enum'? struct underlying_type_or_integral>> ~~~~~^~~~~~~~~ is_enum /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:434:12: note: 'is_enum' declared here struct is_enum ^ In file included from src/core/RDP/nego.cpp:25: In file included from src/core/RDP/nla/nla.hpp:25: In file included from src/core/RDP/nla/credssp.hpp:27: In file included from src/core/RDP/nla/ntlm/ntlm_message_challenge.hpp:25: In file included from src/core/RDP/nla/ntlm/ntlm_avpair.hpp:27: src/utils/sugar/numerics/safe_conversions.hpp:152:60: error: template argument for non-type template parameter must be an expression struct underlying_type_or_integral>> ^~~~~~~~~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:2522:17: note: template parameter is declared here template ^ In file included from src/core/RDP/nego.cpp:25: In file included from src/core/RDP/nla/nla.hpp:27: In file included from src/core/RDP/tpdu_buffer.hpp:23: src/core/RDP/x224.hpp:368:18: warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt] }; ^ In file included from src/core/RDP/nego.cpp:25: src/core/RDP/nla/nla.hpp:359:29: warning: parameter 'target_host' shadows member inherited from type 'rdpCredsspBase' [-Wshadow-field] const char * target_host, ^ src/core/RDP/nla/nla.hpp:68:18: note: declared here const char * target_host; ^ src/core/RDP/nla/nla.hpp:362:25: warning: parameter 'rand' shadows member inherited from type 'rdpCredsspBase' [-Wshadow-field] Random & rand, ^ src/core/RDP/nla/nla.hpp:69:14: note: declared here Random & rand; ^ src/core/RDP/nla/nla.hpp:363:26: warning: parameter 'timeobj' shadows member inherited from type 'rdpCredsspBase' [-Wshadow-field] TimeObj & timeobj, ^ src/core/RDP/nla/nla.hpp:70:15: note: declared here TimeObj & timeobj; ^ src/core/RDP/nla/nla.hpp:364:29: warning: parameter 'extra_message' shadows member inherited from type 'rdpCredsspBase' [-Wshadow-field] std::string& extra_message, ^ src/core/RDP/nla/nla.hpp:71:18: note: declared here std::string& extra_message; ^ src/core/RDP/nla/nla.hpp:365:40: warning: parameter 'lang' shadows member inherited from type 'rdpCredsspBase' [-Wshadow-field] Translation::language_t lang, ^ src/core/RDP/nla/nla.hpp:72:29: note: declared here Translation::language_t lang; ^ src/core/RDP/nla/nla.hpp:366:27: warning: parameter 'verbose' shadows member inherited from type 'rdpCredsspBase' [-Wshadow-field] const bool verbose = false) ^ src/core/RDP/nla/nla.hpp:73:16: note: declared here const bool verbose; ^ src/core/RDP/nla/nla.hpp:605:25: warning: parameter 'rand' shadows member inherited from type 'rdpCredsspBase' [-Wshadow-field] Random & rand, ^ src/core/RDP/nla/nla.hpp:69:14: note: declared here Random & rand; ^ src/core/RDP/nla/nla.hpp:606:26: warning: parameter 'timeobj' shadows member inherited from type 'rdpCredsspBase' [-Wshadow-field] TimeObj & timeobj, ^ src/core/RDP/nla/nla.hpp:70:15: note: declared here TimeObj & timeobj; ^ src/core/RDP/nla/nla.hpp:607:29: warning: parameter 'extra_message' shadows member inherited from type 'rdpCredsspBase' [-Wshadow-field] std::string& extra_message, ^ src/core/RDP/nla/nla.hpp:71:18: note: declared here std::string& extra_message; ^ src/core/RDP/nla/nla.hpp:608:40: warning: parameter 'lang' shadows member inherited from type 'rdpCredsspBase' [-Wshadow-field] Translation::language_t lang, ^ src/core/RDP/nla/nla.hpp:72:29: note: declared here Translation::language_t lang; ^ src/core/RDP/nla/nla.hpp:610:27: warning: parameter 'verbose' shadows member inherited from type 'rdpCredsspBase' [-Wshadow-field] const bool verbose = false) ^ src/core/RDP/nla/nla.hpp:73:16: note: declared here const bool verbose; ^ 13 warnings and 2 errors generated. "clang++" -c -x c++ -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -O3 -Wno-inline -Wall -fPIC -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -DNDEBUG -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I"include" -I"modules/includes" -I"modules/ppocr/includes/mln" -I"modules/ppocr/src" -I"projects/ocr1/include" -I"projects/redemption_configs/autogen/include" -I"projects/redemption_configs/redemption_src" -I"src" -I"src/system/linux" -o "bin/clang-linux-9.0.0/release/src/core/RDP/nego.o" "src/core/RDP/nego.cpp" ...failed clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/core/RDP/nego.o... clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/core/channels_authorizations.o In file included from src/core/channels_authorizations.cpp:21: In file included from src/core/channels_authorizations.hpp:23: src/core/RDP/channels/rdpdr.hpp:5492:82: warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt] status.SetIOControlCode(dcr.IoControlCode());; ^ In file included from src/core/channels_authorizations.cpp:21: In file included from src/core/channels_authorizations.hpp:23: In file included from src/core/RDP/channels/rdpdr.hpp:24: In file included from src/core/ERREF/ntstatus.hpp:28: In file included from src/utils/stream.hpp:28: In file included from src/utils/utf.hpp:28: In file included from src/utils/sugar/bytes_view.hpp:24: In file included from src/utils/sugar/array_view.hpp:28: In file included from src/utils/sugar/array.hpp:26: In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/array:38: /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/utility:90:33: error: implicit instantiation of undefined template 'std::tuple_size' : integral_constant::value> { }; ^ src/core/clipboard_virtual_channels_params.hpp:38:22: note: in instantiation of template class 'std::tuple_size' requested here auto const & [a, b, c, d, e, f] = x; ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/utility:84:12: note: template is declared here struct tuple_size; ^ In file included from src/core/channels_authorizations.cpp:21: In file included from src/core/channels_authorizations.hpp:28: src/core/clipboard_virtual_channels_params.hpp:38:22: error: cannot decompose this type; 'std::tuple_size::value' is not a valid integral constant expression auto const & [a, b, c, d, e, f] = x; ^ src/core/clipboard_virtual_channels_params.hpp:44:22: error: cannot decompose this type; 'std::tuple_size::value' is not a valid integral constant expression auto const & [a, b, c, d, e, f] = *this; ^ src/core/clipboard_virtual_channels_params.hpp:45:22: error: cannot decompose this type; 'std::tuple_size::value' is not a valid integral constant expression auto const & [a1, b1, c1, d1, e1, f1] = other; ^ 1 warning and 4 errors generated. "clang++" -c -x c++ -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -O3 -Wno-inline -Wall -fPIC -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -DNDEBUG -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I"include" -I"modules/includes" -I"modules/ppocr/includes/mln" -I"modules/ppocr/src" -I"projects/ocr1/include" -I"projects/redemption_configs/autogen/include" -I"projects/redemption_configs/redemption_src" -I"src" -I"src/system/linux" -o "bin/clang-linux-9.0.0/release/src/core/channels_authorizations.o" "src/core/channels_authorizations.cpp" ...failed clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/core/channels_authorizations.o... clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/core/mainloop.o In file included from src/core/mainloop.cpp:26: In file included from src/core/session_server.hpp:26: In file included from src/core/session.hpp:24: In file included from src/acl/module_manager.hpp:32: src/core/session_reactor.hpp:1941:28: warning: parameter 'p' shadows member inherited from type 'SharedPtr' [-Wshadow-field] TopSharedPtr(Data* p = nullptr) noexcept ^ src/core/session_reactor.hpp:1817:25: note: declared here SharedDataBase* p; ^ src/core/session_reactor.hpp:1979:40: warning: parameter 'p' shadows member inherited from type 'SharedPtr' [-Wshadow-field] TimerSharedPtr(SharedDataBase* p = nullptr) noexcept ^ src/core/session_reactor.hpp:1817:25: note: declared here SharedDataBase* p; ^ In file included from src/core/mainloop.cpp:26: In file included from src/core/session_server.hpp:26: In file included from src/core/session.hpp:24: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:42: In file included from src/core/RDP/GraphicUpdatePDU.hpp:27: In file included from src/core/RDP/RDPSerializer.hpp:94: In file included from src/core/RDP/bitmapupdate.hpp:26: src/core/RDP/capabilities/general.hpp:254:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/core/mainloop.cpp:26: In file included from src/core/session_server.hpp:26: In file included from src/core/session.hpp:24: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:42: In file included from src/core/RDP/GraphicUpdatePDU.hpp:27: In file included from src/core/RDP/RDPSerializer.hpp:107: In file included from src/core/RDP/caches/bmpcache.hpp:30: In file included from src/core/RDP/orders/RDPOrdersSecondaryBmpCache.hpp:31: src/utils/sugar/numerics/safe_conversions.hpp:152:65: error: no template named 'is_enum_v' in namespace 'std'; did you mean 'is_enum'? struct underlying_type_or_integral>> ~~~~~^~~~~~~~~ is_enum /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:434:12: note: 'is_enum' declared here struct is_enum ^ In file included from src/core/mainloop.cpp:26: In file included from src/core/session_server.hpp:26: In file included from src/core/session.hpp:24: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:42: In file included from src/core/RDP/GraphicUpdatePDU.hpp:27: In file included from src/core/RDP/RDPSerializer.hpp:107: In file included from src/core/RDP/caches/bmpcache.hpp:30: In file included from src/core/RDP/orders/RDPOrdersSecondaryBmpCache.hpp:31: src/utils/sugar/numerics/safe_conversions.hpp:152:60: error: template argument for non-type template parameter must be an expression struct underlying_type_or_integral>> ^~~~~~~~~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:2522:17: note: template parameter is declared here template ^ In file included from src/core/mainloop.cpp:26: In file included from src/core/session_server.hpp:26: In file included from src/core/session.hpp:24: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:42: In file included from src/core/RDP/GraphicUpdatePDU.hpp:27: In file included from src/core/RDP/RDPSerializer.hpp:107: In file included from src/core/RDP/caches/bmpcache.hpp:30: src/core/RDP/orders/RDPOrdersSecondaryBmpCache.hpp:526:26: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] stream.out_uint8(safe_int(this->bmp.bpp())); ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ In file included from src/core/mainloop.cpp:26: In file included from src/core/session_server.hpp:26: In file included from src/core/session.hpp:24: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:42: In file included from src/core/RDP/GraphicUpdatePDU.hpp:27: In file included from src/core/RDP/RDPSerializer.hpp:107: In file included from src/core/RDP/caches/bmpcache.hpp:30: src/core/RDP/orders/RDPOrdersSecondaryBmpCache.hpp:590:26: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] stream.out_uint8(safe_int(this->bmp.bpp())); ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ In file included from src/core/mainloop.cpp:26: In file included from src/core/session_server.hpp:26: In file included from src/core/session.hpp:24: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:42: In file included from src/core/RDP/GraphicUpdatePDU.hpp:27: In file included from src/core/RDP/RDPSerializer.hpp:109: In file included from src/core/RDP/caches/glyphcache.hpp:26: src/core/RDP/capabilities/cap_glyphcache.hpp:200:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/core/mainloop.cpp:26: In file included from src/core/session_server.hpp:26: In file included from src/core/session.hpp:24: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:42: In file included from src/core/RDP/GraphicUpdatePDU.hpp:27: src/core/RDP/RDPSerializer.hpp:280:10: warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt] }; ^ In file included from src/core/mainloop.cpp:26: In file included from src/core/session_server.hpp:26: In file included from src/core/session.hpp:24: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:42: In file included from src/core/RDP/GraphicUpdatePDU.hpp:28: In file included from src/core/RDP/gcc.hpp:45: src/core/RDP/gcc/userdata/sc_core.hpp:176:10: warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt] }; ^ In file included from src/core/mainloop.cpp:26: In file included from src/core/session_server.hpp:26: In file included from src/core/session.hpp:24: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:42: In file included from src/core/RDP/GraphicUpdatePDU.hpp:31: src/core/RDP/x224.hpp:368:18: warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt] }; ^ In file included from src/core/mainloop.cpp:26: In file included from src/core/session_server.hpp:26: In file included from src/core/session.hpp:24: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:42: src/core/RDP/GraphicUpdatePDU.hpp:441:35: warning: parameter 'bmp_cache' shadows member inherited from type 'RDPSerializer' [-Wshadow-field] , BmpCache & bmp_cache ^ src/core/RDP/RDPSerializer.hpp:157:21: note: declared here BmpCache & bmp_cache; ^ In file included from src/core/mainloop.cpp:26: In file included from src/core/session_server.hpp:26: In file included from src/core/session.hpp:24: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:42: src/core/RDP/GraphicUpdatePDU.hpp:443:39: warning: parameter 'pointer_cache' shadows member inherited from type 'RDPSerializer' [-Wshadow-field] , PointerCache & pointer_cache ^ src/core/RDP/RDPSerializer.hpp:159:21: note: declared here PointerCache & pointer_cache; ^ In file included from src/core/mainloop.cpp:26: In file included from src/core/session_server.hpp:26: In file included from src/core/session.hpp:24: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:42: src/core/RDP/GraphicUpdatePDU.hpp:453:32: warning: parameter 'verbose' shadows member inherited from type 'RDPSerializer' [-Wshadow-field] , Verbose verbose ^ src/core/RDP/RDPSerializer.hpp:164:41: note: declared here REDEMPTION_VERBOSE_FLAGS(protected, verbose) ^ In file included from src/core/mainloop.cpp:26: In file included from src/core/session_server.hpp:26: In file included from src/core/session.hpp:24: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:48: src/core/RDP/caches/bmpcachepersister.hpp:207:29: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] , safe_int(original_info.width), safe_int(original_info.height) ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ In file included from src/core/mainloop.cpp:26: In file included from src/core/session_server.hpp:26: In file included from src/core/session.hpp:24: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:48: src/core/RDP/caches/bmpcachepersister.hpp:207:60: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] , safe_int(original_info.width), safe_int(original_info.height) ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ In file included from src/core/mainloop.cpp:26: In file included from src/core/session_server.hpp:26: In file included from src/core/session.hpp:24: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:48: src/core/RDP/caches/bmpcachepersister.hpp:356:29: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] , safe_int(original_info.width), safe_int(original_info.height) ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ In file included from src/core/mainloop.cpp:26: In file included from src/core/session_server.hpp:26: In file included from src/core/session.hpp:24: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:48: src/core/RDP/caches/bmpcachepersister.hpp:356:60: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] , safe_int(original_info.width), safe_int(original_info.height) ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ In file included from src/core/mainloop.cpp:26: In file included from src/core/session_server.hpp:26: In file included from src/core/session.hpp:24: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:48: src/core/RDP/caches/bmpcachepersister.hpp:443:34: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] stream.out_uint8(safe_int(bmp.bpp())); ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ In file included from src/core/mainloop.cpp:26: In file included from src/core/session_server.hpp:26: In file included from src/core/session.hpp:24: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:52: src/core/RDP/capabilities/bitmapcachehostsupport.hpp:78:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/core/mainloop.cpp:26: In file included from src/core/session_server.hpp:26: In file included from src/core/session.hpp:24: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:53: src/core/RDP/capabilities/bmpcache2.hpp:159:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/core/mainloop.cpp:26: In file included from src/core/session_server.hpp:26: In file included from src/core/session.hpp:24: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:54: src/core/RDP/capabilities/cap_bmpcache.hpp:118:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/core/mainloop.cpp:26: In file included from src/core/session_server.hpp:26: In file included from src/core/session.hpp:24: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:55: src/core/RDP/capabilities/cap_brushcache.hpp:85:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/core/mainloop.cpp:26: In file included from src/core/session_server.hpp:26: In file included from src/core/session.hpp:24: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:56: src/core/RDP/capabilities/cap_font.hpp:78:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/core/mainloop.cpp:26: In file included from src/core/session_server.hpp:26: In file included from src/core/session.hpp:24: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:58: src/core/RDP/capabilities/cap_share.hpp:74:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/core/mainloop.cpp:26: In file included from src/core/session_server.hpp:26: In file included from src/core/session.hpp:24: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:59: src/core/RDP/capabilities/colcache.hpp:78:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/core/mainloop.cpp:26: In file included from src/core/session_server.hpp:26: In file included from src/core/session.hpp:24: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:60: src/core/RDP/capabilities/compdesk.hpp:73:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/core/mainloop.cpp:26: In file included from src/core/session_server.hpp:26: In file included from src/core/session.hpp:24: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:61: src/core/RDP/capabilities/input.hpp:118:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/core/mainloop.cpp:26: In file included from src/core/session_server.hpp:26: In file included from src/core/session.hpp:24: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:62: src/core/RDP/capabilities/largepointer.hpp:84:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/core/mainloop.cpp:26: In file included from src/core/session_server.hpp:26: In file included from src/core/session.hpp:24: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:63: src/core/RDP/capabilities/multifragmentupdate.hpp:69:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/core/mainloop.cpp:26: In file included from src/core/session_server.hpp:26: In file included from src/core/session.hpp:24: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:64: src/core/RDP/capabilities/offscreencache.hpp:77:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/core/mainloop.cpp:26: In file included from src/core/session_server.hpp:26: In file included from src/core/session.hpp:24: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:65: src/core/RDP/capabilities/pointer.hpp:94:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/core/mainloop.cpp:26: In file included from src/core/session_server.hpp:26: In file included from src/core/session.hpp:24: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:66: src/core/RDP/capabilities/rail.hpp:172:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/core/mainloop.cpp:26: In file included from src/core/session_server.hpp:26: In file included from src/core/session.hpp:24: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:67: In file included from src/core/RDP/capabilities/window.hpp:28: src/core/RDP/capabilities/virchan.hpp:86:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/core/mainloop.cpp:26: In file included from src/core/session_server.hpp:26: In file included from src/core/session.hpp:24: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:67: src/core/RDP/capabilities/window.hpp:134:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/core/mainloop.cpp:26: In file included from src/core/session_server.hpp:26: In file included from src/core/session.hpp:24: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:83: In file included from src/core/client_info.hpp:33: src/core/RDP/logon.hpp:612:9: warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt] ; ^ In file included from src/core/mainloop.cpp:26: In file included from src/core/session_server.hpp:26: In file included from src/core/session.hpp:24: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:83: In file included from src/core/client_info.hpp:35: src/core/RDP/capabilities/cap_bitmap.hpp:172:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/core/mainloop.cpp:26: In file included from src/core/session_server.hpp:26: In file included from src/core/session.hpp:24: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:83: In file included from src/core/client_info.hpp:41: src/core/RDP/capabilities/order.hpp:384:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/core/mainloop.cpp:26: In file included from src/core/session_server.hpp:26: In file included from src/core/session.hpp:24: In file included from src/acl/module_manager.hpp:33: In file included from src/front/front.hpp:83: In file included from src/core/client_info.hpp:44: src/core/RDP/capabilities/bitmapcodecs.hpp:33:10: fatal error: 'variant' file not found #include ^~~~~~~~~ 36 warnings and 3 errors generated. "clang++" -c -x c++ -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -O3 -Wno-inline -Wall -fPIC -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -DNDEBUG -DZLIB_CONST -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I"include" -I"modules/includes" -I"modules/ppocr/includes/mln" -I"modules/ppocr/src" -I"projects/ocr1/include" -I"projects/redemption_configs/autogen/include" -I"projects/redemption_configs/redemption_src" -I"src" -I"src/system/linux" -o "bin/clang-linux-9.0.0/release/src/core/mainloop.o" "src/core/mainloop.cpp" ...failed clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/core/mainloop.o... clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/gdi/protected_graphics.o In file included from src/gdi/protected_graphics.cpp:23: In file included from src/core/RDP/bitmapupdate.hpp:26: src/core/RDP/capabilities/general.hpp:254:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/gdi/protected_graphics.cpp:26: src/utils/sugar/numerics/safe_conversions.hpp:152:65: error: no template named 'is_enum_v' in namespace 'std'; did you mean 'is_enum'? struct underlying_type_or_integral>> ~~~~~^~~~~~~~~ is_enum /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:434:12: note: 'is_enum' declared here struct is_enum ^ In file included from src/gdi/protected_graphics.cpp:26: src/utils/sugar/numerics/safe_conversions.hpp:152:60: error: template argument for non-type template parameter must be an expression struct underlying_type_or_integral>> ^~~~~~~~~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:2522:17: note: template parameter is declared here template ^ src/gdi/protected_graphics.cpp:54:47: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] sub_bmp_data.bits_per_pixel = safe_int(sub_bmp.bpp()); ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ 2 warnings and 2 errors generated. "clang++" -c -x c++ -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -O3 -Wno-inline -Wall -fPIC -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -DNDEBUG -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I"include" -I"modules/includes" -I"modules/ppocr/includes/mln" -I"modules/ppocr/src" -I"projects/ocr1/include" -I"projects/redemption_configs/autogen/include" -I"projects/redemption_configs/redemption_src" -I"src" -I"src/system/linux" -o "bin/clang-linux-9.0.0/release/src/gdi/protected_graphics.o" "src/gdi/protected_graphics.cpp" ...failed clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/gdi/protected_graphics.o... clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/mod/internal/copy_paste.o In file included from src/mod/internal/copy_paste.cpp:23: In file included from src/core/RDP/clipboard.hpp:26: In file included from src/core/channel_list.hpp:35: src/core/RDP/x224.hpp:368:18: warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt] }; ^ In file included from src/mod/internal/copy_paste.cpp:23: src/core/RDP/clipboard.hpp:1068:61: error: no matching function for call to 'UTF16toUTF8' const size_t size_of_formatName_UTF8_data = ::UTF16toUTF8( ^~~~~~~~~~~~~ src/utils/utf.hpp:94:13: note: candidate function not viable: 3rd argument ('const uint8_t *' (aka 'const unsigned char *')) would lose const qualifier std::size_t UTF16toUTF8(const uint8_t * utf16_source, std::size_t utf16_len, uint8_t * utf8_target, std::size_t target_len) noexcept; ^ src/utils/utf.hpp:98:13: note: candidate function not viable: no known conversion from 'const uint8_t *' (aka 'const unsigned char *') to 'const uint16_t *' (aka 'const unsigned short *') for 1st argument std::size_t UTF16toUTF8(const uint16_t * utf16_source, std::size_t utf16_len, uint8_t * utf8_target, std::size_t target_len) noexcept; ^ In file included from src/mod/internal/copy_paste.cpp:23: src/core/RDP/clipboard.hpp:1112:65: error: no matching function for call to 'UTF16toUTF8' const size_t size_of_formatName_UTF8_data = ::UTF16toUTF8( ^~~~~~~~~~~~~ src/utils/utf.hpp:94:13: note: candidate function not viable: 3rd argument ('const uint8_t *' (aka 'const unsigned char *')) would lose const qualifier std::size_t UTF16toUTF8(const uint8_t * utf16_source, std::size_t utf16_len, uint8_t * utf8_target, std::size_t target_len) noexcept; ^ src/utils/utf.hpp:98:13: note: candidate function not viable: no known conversion from 'const uint8_t *' (aka 'const unsigned char *') to 'const uint16_t *' (aka 'const unsigned short *') for 1st argument std::size_t UTF16toUTF8(const uint16_t * utf16_source, std::size_t utf16_len, uint8_t * utf8_target, std::size_t target_len) noexcept; ^ 1 warning and 2 errors generated. "clang++" -c -x c++ -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -O3 -Wno-inline -Wall -fPIC -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -DNDEBUG -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I"include" -I"modules/includes" -I"modules/ppocr/includes/mln" -I"modules/ppocr/src" -I"projects/ocr1/include" -I"projects/redemption_configs/autogen/include" -I"projects/redemption_configs/redemption_src" -I"src" -I"src/system/linux" -o "bin/clang-linux-9.0.0/release/src/mod/internal/copy_paste.o" "src/mod/internal/copy_paste.cpp" ...failed clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/mod/internal/copy_paste.o... clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/mod/internal/replay_mod.o In file included from src/mod/internal/replay_mod.cpp:27: In file included from src/core/front_api.hpp:28: In file included from src/core/channel_list.hpp:35: src/core/RDP/x224.hpp:368:18: warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt] }; ^ In file included from src/mod/internal/replay_mod.cpp:28: src/core/session_reactor.hpp:1941:28: warning: parameter 'p' shadows member inherited from type 'SharedPtr' [-Wshadow-field] TopSharedPtr(Data* p = nullptr) noexcept ^ src/core/session_reactor.hpp:1817:25: note: declared here SharedDataBase* p; ^ src/core/session_reactor.hpp:1979:40: warning: parameter 'p' shadows member inherited from type 'SharedPtr' [-Wshadow-field] TimerSharedPtr(SharedDataBase* p = nullptr) noexcept ^ src/core/session_reactor.hpp:1817:25: note: declared here SharedDataBase* p; ^ In file included from src/mod/internal/replay_mod.cpp:30: In file included from src/mod/internal/replay_mod.hpp:28: In file included from src/capture/file_to_graphic.hpp:24: In file included from src/capture/wrm_meta_chunk.hpp:27: src/utils/sugar/numerics/safe_conversions.hpp:152:65: error: no template named 'is_enum_v' in namespace 'std'; did you mean 'is_enum'? struct underlying_type_or_integral>> ~~~~~^~~~~~~~~ is_enum /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:434:12: note: 'is_enum' declared here struct is_enum ^ In file included from src/mod/internal/replay_mod.cpp:30: In file included from src/mod/internal/replay_mod.hpp:28: In file included from src/capture/file_to_graphic.hpp:24: In file included from src/capture/wrm_meta_chunk.hpp:27: src/utils/sugar/numerics/safe_conversions.hpp:152:60: error: template argument for non-type template parameter must be an expression struct underlying_type_or_integral>> ^~~~~~~~~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:2522:17: note: template parameter is declared here template ^ In file included from src/mod/internal/replay_mod.cpp:30: In file included from src/mod/internal/replay_mod.hpp:28: In file included from src/capture/file_to_graphic.hpp:24: src/capture/wrm_meta_chunk.hpp:34:26: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] header.out_uint16_le(safe_int(chunktype)); ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ In file included from src/mod/internal/replay_mod.cpp:30: In file included from src/mod/internal/replay_mod.hpp:28: In file included from src/capture/file_to_graphic.hpp:24: src/capture/wrm_meta_chunk.hpp:80:31: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] payload.out_uint16_le(safe_int(WrmChunkType::META_FILE)); ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ In file included from src/mod/internal/replay_mod.cpp:30: In file included from src/mod/internal/replay_mod.hpp:28: In file included from src/capture/file_to_graphic.hpp:24: src/capture/wrm_meta_chunk.hpp:88:31: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] payload.out_uint16_le(safe_int(this->bpp)); ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ In file included from src/mod/internal/replay_mod.cpp:30: In file included from src/mod/internal/replay_mod.hpp:28: In file included from src/capture/file_to_graphic.hpp:24: src/capture/wrm_meta_chunk.hpp:132:42: warning: 'checked_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] this->bpp = checked_int(stream.in_uint16_le()); ^ src/utils/sugar/numerics/safe_conversions.hpp:51:8: note: add a deduction guide to suppress this warning struct checked_int ^ In file included from src/mod/internal/replay_mod.cpp:30: In file included from src/mod/internal/replay_mod.hpp:28: In file included from src/capture/file_to_graphic.hpp:25: In file included from src/core/RDP/caches/glyphcache.hpp:26: src/core/RDP/capabilities/cap_glyphcache.hpp:200:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/mod/internal/replay_mod.cpp:28: src/core/session_reactor.hpp:1979:40: warning: parameter 'p' shadows member inherited from type 'SharedPtr' [-Wshadow-field] TimerSharedPtr(SharedDataBase* p = nullptr) noexcept ^ src/mod/internal/replay_mod.cpp:135:12: note: in instantiation of member function 'jln::TimerSharedPtr::TimerSharedPtr' requested here ReplayMod::ReplayMod( ^ src/core/session_reactor.hpp:1817:25: note: declared here SharedDataBase* p; ^ 9 warnings and 2 errors generated. "clang++" -c -x c++ -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -O3 -Wno-inline -Wall -fPIC -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -DNDEBUG -DZLIB_CONST -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I"include" -I"modules/includes" -I"modules/ppocr/includes/mln" -I"modules/ppocr/src" -I"projects/ocr1/include" -I"projects/redemption_configs/autogen/include" -I"projects/redemption_configs/redemption_src" -I"src" -I"src/system/linux" -o "bin/clang-linux-9.0.0/release/src/mod/internal/replay_mod.o" "src/mod/internal/replay_mod.cpp" ...failed clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/mod/internal/replay_mod.o... clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/mod/internal/widget/image.o In file included from src/mod/internal/widget/image.cpp:24: src/utils/sugar/numerics/safe_conversions.hpp:152:65: error: no template named 'is_enum_v' in namespace 'std'; did you mean 'is_enum'? struct underlying_type_or_integral>> ~~~~~^~~~~~~~~ is_enum /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:434:12: note: 'is_enum' declared here struct is_enum ^ In file included from src/mod/internal/widget/image.cpp:24: src/utils/sugar/numerics/safe_conversions.hpp:152:60: error: template argument for non-type template parameter must be an expression struct underlying_type_or_integral>> ^~~~~~~~~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:2522:17: note: template parameter is declared here template ^ In file included from src/mod/internal/widget/image.cpp:26: In file included from src/core/RDP/bitmapupdate.hpp:26: src/core/RDP/capabilities/general.hpp:254:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ src/mod/internal/widget/image.cpp:29:23: warning: parameter 'drawable' shadows member inherited from type 'Widget' [-Wshadow-field] gdi::GraphicApi & drawable, const char * filename, Widget & parent, ^ src/mod/internal/widget/widget.hpp:67:23: note: declared here gdi::GraphicApi & drawable; ^ src/mod/internal/widget/image.cpp:29:65: warning: parameter 'parent' shadows member inherited from type 'Widget' [-Wshadow-field] gdi::GraphicApi & drawable, const char * filename, Widget & parent, ^ src/mod/internal/widget/widget.hpp:66:14: note: declared here Widget & parent; ^ src/mod/internal/widget/image.cpp:30:16: warning: parameter 'notifier' shadows member inherited from type 'Widget' [-Wshadow-field] NotifyApi* notifier, int group_id ^ src/mod/internal/widget/widget.hpp:68:17: note: declared here NotifyApi * notifier; ^ src/mod/internal/widget/image.cpp:30:30: warning: parameter 'group_id' shadows member inherited from type 'Widget' [-Wshadow-field] NotifyApi* notifier, int group_id ^ src/mod/internal/widget/widget.hpp:74:9: note: declared here int group_id; ^ src/mod/internal/widget/image.cpp:62:39: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] bitmap_data.bits_per_pixel = safe_int(bitmap.bpp()); ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ 6 warnings and 2 errors generated. "clang++" -c -x c++ -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -O3 -Wno-inline -Wall -fPIC -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -DNDEBUG -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I"include" -I"modules/includes" -I"modules/ppocr/includes/mln" -I"modules/ppocr/src" -I"projects/ocr1/include" -I"projects/redemption_configs/autogen/include" -I"projects/redemption_configs/redemption_src" -I"src" -I"src/system/linux" -o "bin/clang-linux-9.0.0/release/src/mod/internal/widget/image.o" "src/mod/internal/widget/image.cpp" ...failed clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/mod/internal/widget/image.o... clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/mod/internal/widget_test_mod.o In file included from src/mod/internal/widget_test_mod.cpp:22: In file included from src/core/front_api.hpp:28: In file included from src/core/channel_list.hpp:35: src/core/RDP/x224.hpp:368:18: warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt] }; ^ In file included from src/mod/internal/widget_test_mod.cpp:26: src/core/session_reactor.hpp:1941:28: warning: parameter 'p' shadows member inherited from type 'SharedPtr' [-Wshadow-field] TopSharedPtr(Data* p = nullptr) noexcept ^ src/core/session_reactor.hpp:1817:25: note: declared here SharedDataBase* p; ^ src/core/session_reactor.hpp:1979:40: warning: parameter 'p' shadows member inherited from type 'SharedPtr' [-Wshadow-field] TimerSharedPtr(SharedDataBase* p = nullptr) noexcept ^ src/core/session_reactor.hpp:1817:25: note: declared here SharedDataBase* p; ^ In file included from src/mod/internal/widget_test_mod.cpp:28: In file included from src/mod/internal/widget_test_mod.hpp:23: In file included from src/mod/internal/internal_mod.hpp:24: In file included from src/mod/internal/widget/screen.hpp:24: src/mod/internal/widget/composite.hpp:159:39: warning: parameter 'drawable' shadows member inherited from type 'Widget' [-Wshadow-field] WidgetComposite(gdi::GraphicApi & drawable, Widget & parent, ^ src/mod/internal/widget/widget.hpp:67:23: note: declared here gdi::GraphicApi & drawable; ^ In file included from src/mod/internal/widget_test_mod.cpp:28: In file included from src/mod/internal/widget_test_mod.hpp:23: In file included from src/mod/internal/internal_mod.hpp:24: In file included from src/mod/internal/widget/screen.hpp:24: src/mod/internal/widget/composite.hpp:159:58: warning: parameter 'parent' shadows member inherited from type 'Widget' [-Wshadow-field] WidgetComposite(gdi::GraphicApi & drawable, Widget & parent, ^ src/mod/internal/widget/widget.hpp:66:14: note: declared here Widget & parent; ^ In file included from src/mod/internal/widget_test_mod.cpp:28: In file included from src/mod/internal/widget_test_mod.hpp:23: In file included from src/mod/internal/internal_mod.hpp:24: In file included from src/mod/internal/widget/screen.hpp:24: src/mod/internal/widget/composite.hpp:160:33: warning: parameter 'notifier' shadows member inherited from type 'Widget' [-Wshadow-field] NotifyApi * notifier, int group_id = 0) ^ src/mod/internal/widget/widget.hpp:68:17: note: declared here NotifyApi * notifier; ^ In file included from src/mod/internal/widget_test_mod.cpp:28: In file included from src/mod/internal/widget_test_mod.hpp:23: In file included from src/mod/internal/internal_mod.hpp:24: In file included from src/mod/internal/widget/screen.hpp:24: src/mod/internal/widget/composite.hpp:160:47: warning: parameter 'group_id' shadows member inherited from type 'Widget' [-Wshadow-field] NotifyApi * notifier, int group_id = 0) ^ src/mod/internal/widget/widget.hpp:74:9: note: declared here int group_id; ^ In file included from src/mod/internal/widget_test_mod.cpp:31: In file included from src/utils/bitmap_private_data.hpp:39: src/utils/sugar/numerics/safe_conversions.hpp:152:65: error: no template named 'is_enum_v' in namespace 'std'; did you mean 'is_enum'? struct underlying_type_or_integral>> ~~~~~^~~~~~~~~ is_enum /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:434:12: note: 'is_enum' declared here struct is_enum ^ In file included from src/mod/internal/widget_test_mod.cpp:31: In file included from src/utils/bitmap_private_data.hpp:39: src/utils/sugar/numerics/safe_conversions.hpp:152:60: error: template argument for non-type template parameter must be an expression struct underlying_type_or_integral>> ^~~~~~~~~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:2522:17: note: template parameter is declared here template ^ In file included from src/mod/internal/widget_test_mod.cpp:31: src/utils/bitmap_private_data.hpp:127:34: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] out_stream.out_uint8(safe_int(this->bpp_)); ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/mod/internal/widget_test_mod.cpp:47:13: warning: 'update_lock' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] update_lock update_lock{gd}; ^ src/utils/sugar/update_lock.hpp:24:7: note: add a deduction guide to suppress this warning class update_lock ^ src/mod/internal/widget_test_mod.cpp:94:44: warning: parameter 'front' shadows member inherited from type 'InternalMod' [-Wshadow-field] gdi::GraphicApi & drawable, FrontAPI & front, uint16_t width, uint16_t height, ^ src/mod/internal/internal_mod.hpp:34:16: note: declared here FrontAPI & front; ^ src/mod/internal/widget_test_mod.cpp:129:5: warning: 'update_lock' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] update_lock update_lock{gd}; ^ src/utils/sugar/update_lock.hpp:24:7: note: add a deduction guide to suppress this warning class update_lock ^ In file included from src/mod/internal/widget_test_mod.cpp:26: src/core/session_reactor.hpp:1979:40: warning: parameter 'p' shadows member inherited from type 'SharedPtr' [-Wshadow-field] TimerSharedPtr(SharedDataBase* p = nullptr) noexcept ^ src/mod/internal/widget_test_mod.cpp:40:5: note: in instantiation of member function 'jln::TimerSharedPtr::TimerSharedPtr' requested here WidgetTestModPrivate(SessionReactor& session_reactor, WidgetTestMod& /*mod*/) ^ src/core/session_reactor.hpp:1817:25: note: declared here SharedDataBase* p; ^ src/mod/internal/widget_test_mod.cpp:47:13: warning: 'update_lock' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] update_lock update_lock{gd}; ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:2481:7: note: in instantiation of function template specialization 'WidgetTestMod::WidgetTestModPrivate::WidgetTestModPrivate(SessionReactor &, WidgetTestMod &)::(anonymous class)::operator() >' requested here std::declval<_Fn>()(std::declval<_Args>()...) ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:2492:24: note: while substituting deduced template arguments into function template '_S_test' [with _Fn = (lambda at src/mod/internal/widget_test_mod.cpp:46:20) &, _Args = (no value)] typedef decltype(_S_test<_Functor, _ArgTypes...>(0)) type; ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:2497:14: note: in instantiation of template class 'std::__result_of_impl, gdi::GraphicApi &>' requested here : public __result_of_impl< ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/functional:1841:35: note: in instantiation of template class 'std::result_of<(lambda at src/mod/internal/widget_test_mod.cpp:46:20) &(jln::TimerContext, gdi::GraphicApi &)>' requested here typename _Res2 = typename result_of<_Func&(_ArgTypes...)>::type> ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/functional:1913:30: note: in instantiation of default argument for '_Callable<(lambda at src/mod/internal/widget_test_mod.cpp:46:20)>' required here typename = _Requires<_Callable<_Functor>, void>> ^~~~~~~~~~~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/functional:1914:2: note: in instantiation of default argument for 'function<(lambda at src/mod/internal/widget_test_mod.cpp:46:20), void>' required here function(_Functor); ^~~~~~~~~~~~~~~~~~ src/core/session_reactor.hpp:861:30: note: while substituting deduced template arguments into function template 'function' [with _Functor = (lambda at src/mod/internal/widget_test_mod.cpp:46:20), $1 = (no value), $2 = (no value)] this->on_timer = static_cast(f); ^ src/core/session_reactor.hpp:2791:32: note: in instantiation of function template specialization 'jln::TimerExecutorWithValues, gdi::GraphicApi &>::on_action<(lambda at src/mod/internal/widget_test_mod.cpp:46:20)>' requested here this->init_ctx.timer().on_action(static_cast(f)); ^ src/utils/sugar/update_lock.hpp:24:7: note: add a deduction guide to suppress this warning class update_lock ^ 13 warnings and 2 errors generated. "clang++" -c -x c++ -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -O3 -Wno-inline -Wall -fPIC -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -DNDEBUG -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I"include" -I"modules/includes" -I"modules/ppocr/includes/mln" -I"modules/ppocr/src" -I"projects/ocr1/include" -I"projects/redemption_configs/autogen/include" -I"projects/redemption_configs/redemption_src" -I"src" -I"src/system/linux" -o "bin/clang-linux-9.0.0/release/src/mod/internal/widget_test_mod.o" "src/mod/internal/widget_test_mod.cpp" ...failed clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/mod/internal/widget_test_mod.o... clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/mod/rdp/rdp.o In file included from src/mod/rdp/rdp.cpp:21: src/core/session_reactor.hpp:1941:28: warning: parameter 'p' shadows member inherited from type 'SharedPtr' [-Wshadow-field] TopSharedPtr(Data* p = nullptr) noexcept ^ src/core/session_reactor.hpp:1817:25: note: declared here SharedDataBase* p; ^ src/core/session_reactor.hpp:1979:40: warning: parameter 'p' shadows member inherited from type 'SharedPtr' [-Wshadow-field] TimerSharedPtr(SharedDataBase* p = nullptr) noexcept ^ src/core/session_reactor.hpp:1817:25: note: declared here SharedDataBase* p; ^ In file included from src/mod/rdp/rdp.cpp:23: In file included from src/mod/rdp/rdp.hpp:30: In file included from src/core/RDP/MonitorLayoutPDU.hpp:23: In file included from src/core/RDP/gcc.hpp:45: src/core/RDP/gcc/userdata/sc_core.hpp:176:10: warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt] }; ^ In file included from src/mod/rdp/rdp.cpp:23: In file included from src/mod/rdp/rdp.hpp:32: In file included from src/core/RDP/RefreshRectPDU.hpp:24: src/core/RDP/x224.hpp:368:18: warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt] }; ^ In file included from src/mod/rdp/rdp.cpp:23: In file included from src/mod/rdp/rdp.hpp:37: In file included from src/core/RDP/bitmapupdate.hpp:26: src/core/RDP/capabilities/general.hpp:254:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/mod/rdp/rdp.cpp:23: In file included from src/mod/rdp/rdp.hpp:39: src/core/RDP/capabilities/activate.hpp:82:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/mod/rdp/rdp.cpp:23: In file included from src/mod/rdp/rdp.hpp:40: src/core/RDP/capabilities/bitmapcachehostsupport.hpp:78:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/mod/rdp/rdp.cpp:23: In file included from src/mod/rdp/rdp.hpp:41: src/core/RDP/capabilities/bitmapcodecs.hpp:33:10: fatal error: 'variant' file not found #include ^~~~~~~~~ 7 warnings and 1 error generated. "clang++" -c -x c++ -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -O3 -Wno-inline -Wall -fPIC -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -DNDEBUG -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I"include" -I"modules/includes" -I"modules/ppocr/includes/mln" -I"modules/ppocr/src" -I"projects/ocr1/include" -I"projects/redemption_configs/autogen/include" -I"projects/redemption_configs/redemption_src" -I"src" -I"src/system/linux" -o "bin/clang-linux-9.0.0/release/src/mod/rdp/rdp.o" "src/mod/rdp/rdp.cpp" ...failed clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/mod/rdp/rdp.o... clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/mod/rdp/rdp_negociation.o In file included from src/mod/rdp/rdp_negociation.cpp:25: In file included from src/mod/rdp/rdp_negociation.hpp:28: src/core/RDP/logon.hpp:612:9: warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt] ; ^ In file included from src/mod/rdp/rdp_negociation.cpp:29: In file included from src/core/RDP/tpdu_buffer.hpp:23: src/core/RDP/x224.hpp:368:18: warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt] }; ^ In file included from src/mod/rdp/rdp_negociation.cpp:31: In file included from src/core/client_info.hpp:32: In file included from src/core/RDP/gcc.hpp:45: src/core/RDP/gcc/userdata/sc_core.hpp:176:10: warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt] }; ^ In file included from src/mod/rdp/rdp_negociation.cpp:31: In file included from src/core/client_info.hpp:34: src/core/RDP/capabilities/bmpcache2.hpp:159:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/mod/rdp/rdp_negociation.cpp:31: In file included from src/core/client_info.hpp:35: src/core/RDP/capabilities/cap_bitmap.hpp:172:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/mod/rdp/rdp_negociation.cpp:31: In file included from src/core/client_info.hpp:36: src/core/RDP/capabilities/cap_bmpcache.hpp:118:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/mod/rdp/rdp_negociation.cpp:31: In file included from src/core/client_info.hpp:37: src/core/RDP/capabilities/cap_glyphcache.hpp:200:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/mod/rdp/rdp_negociation.cpp:31: In file included from src/core/client_info.hpp:38: src/core/RDP/capabilities/general.hpp:254:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/mod/rdp/rdp_negociation.cpp:31: In file included from src/core/client_info.hpp:39: src/core/RDP/capabilities/largepointer.hpp:84:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/mod/rdp/rdp_negociation.cpp:31: In file included from src/core/client_info.hpp:40: src/core/RDP/capabilities/offscreencache.hpp:77:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/mod/rdp/rdp_negociation.cpp:31: In file included from src/core/client_info.hpp:41: src/core/RDP/capabilities/order.hpp:384:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/mod/rdp/rdp_negociation.cpp:31: In file included from src/core/client_info.hpp:42: src/core/RDP/capabilities/multifragmentupdate.hpp:69:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/mod/rdp/rdp_negociation.cpp:31: In file included from src/core/client_info.hpp:43: src/core/RDP/capabilities/rail.hpp:172:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/mod/rdp/rdp_negociation.cpp:31: In file included from src/core/client_info.hpp:44: src/core/RDP/capabilities/bitmapcodecs.hpp:33:10: fatal error: 'variant' file not found #include ^~~~~~~~~ 13 warnings and 1 error generated. "clang++" -c -x c++ -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -O3 -Wno-inline -Wall -fPIC -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -DNDEBUG -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I"include" -I"modules/includes" -I"modules/ppocr/includes/mln" -I"modules/ppocr/src" -I"projects/ocr1/include" -I"projects/redemption_configs/autogen/include" -I"projects/redemption_configs/redemption_src" -I"src" -I"src/system/linux" -o "bin/clang-linux-9.0.0/release/src/mod/rdp/rdp_negociation.o" "src/mod/rdp/rdp_negociation.cpp" ...failed clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/mod/rdp/rdp_negociation.o... clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/mod/vnc/encoder/copyrect.o In file included from src/mod/vnc/encoder/copyrect.cpp:23: In file included from src/mod/vnc/encoder/copyrect.hpp:25: src/mod/vnc/encoder/encoder_api.hpp:56:69: error: no template named 'is_same_v' in namespace 'std'; did you mean 'is_same'? template>> ~~~~~^~~~~~~~~ is_same /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:1517:12: note: 'is_same' declared here struct is_same ^ In file included from src/mod/vnc/encoder/copyrect.cpp:23: In file included from src/mod/vnc/encoder/copyrect.hpp:25: src/mod/vnc/encoder/encoder_api.hpp:56:97: error: expected '(' for function-style cast or type construction template>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ :364:1: note: expanded from here > ^ src/mod/vnc/encoder/copyrect.cpp:85:12: error: no matching conversion for functional-style cast from 'VNC::Encoder::(anonymous namespace)::CopyRect' to 'VNC::Encoder::Encoder' return Encoder(CopyRect{rect, width, height}); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mod/vnc/encoder/encoder_api.hpp:53:13: note: candidate constructor not viable: no known conversion from 'VNC::Encoder::(anonymous namespace)::CopyRect' to 'VNC::Encoder::Encoder' for 1st argument Encoder(Encoder&&) = default; ^ src/mod/vnc/encoder/encoder_api.hpp:54:13: note: candidate constructor not viable: no known conversion from 'VNC::Encoder::(anonymous namespace)::CopyRect' to 'const VNC::Encoder::Encoder' for 1st argument Encoder(Encoder const&) = delete; ^ src/mod/vnc/encoder/encoder_api.hpp:57:22: note: candidate template ignored: couldn't infer template argument '' explicit Encoder(Consumer&& consumer) ^ src/mod/vnc/encoder/encoder_api.hpp:51:13: note: candidate constructor not viable: requires 0 arguments, but 1 was provided Encoder() = default; ^ 3 errors generated. "clang++" -c -x c++ -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -O3 -Wno-inline -Wall -fPIC -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -DNDEBUG -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I"include" -I"modules/includes" -I"modules/ppocr/includes/mln" -I"modules/ppocr/src" -I"projects/ocr1/include" -I"projects/redemption_configs/autogen/include" -I"projects/redemption_configs/redemption_src" -I"src" -I"src/system/linux" -o "bin/clang-linux-9.0.0/release/src/mod/vnc/encoder/copyrect.o" "src/mod/vnc/encoder/copyrect.cpp" ...failed clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/mod/vnc/encoder/copyrect.o... clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/mod/vnc/encoder/cursor.o In file included from src/mod/vnc/encoder/cursor.cpp:23: In file included from src/mod/vnc/encoder/cursor.hpp:26: src/mod/vnc/encoder/encoder_api.hpp:56:69: error: no template named 'is_same_v' in namespace 'std'; did you mean 'is_same'? template>> ~~~~~^~~~~~~~~ is_same /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:1517:12: note: 'is_same' declared here struct is_same ^ In file included from src/mod/vnc/encoder/cursor.cpp:23: In file included from src/mod/vnc/encoder/cursor.hpp:26: src/mod/vnc/encoder/encoder_api.hpp:56:97: error: expected '(' for function-style cast or type construction template>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ :365:1: note: expanded from here > ^ src/mod/vnc/encoder/cursor.cpp:142:12: error: no matching conversion for functional-style cast from 'VNC::Encoder::(anonymous namespace)::Cursor' to 'VNC::Encoder::Encoder' return Encoder(Cursor{Bpp, rect, red_shift, red_max, green_shift, green_max, blue_shift, blue_max, verbose}); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mod/vnc/encoder/encoder_api.hpp:53:13: note: candidate constructor not viable: no known conversion from 'VNC::Encoder::(anonymous namespace)::Cursor' to 'VNC::Encoder::Encoder' for 1st argument Encoder(Encoder&&) = default; ^ src/mod/vnc/encoder/encoder_api.hpp:54:13: note: candidate constructor not viable: no known conversion from 'VNC::Encoder::(anonymous namespace)::Cursor' to 'const VNC::Encoder::Encoder' for 1st argument Encoder(Encoder const&) = delete; ^ src/mod/vnc/encoder/encoder_api.hpp:57:22: note: candidate template ignored: couldn't infer template argument '' explicit Encoder(Consumer&& consumer) ^ src/mod/vnc/encoder/encoder_api.hpp:51:13: note: candidate constructor not viable: requires 0 arguments, but 1 was provided Encoder() = default; ^ 3 errors generated. "clang++" -c -x c++ -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -O3 -Wno-inline -Wall -fPIC -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -DNDEBUG -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I"include" -I"modules/includes" -I"modules/ppocr/includes/mln" -I"modules/ppocr/src" -I"projects/ocr1/include" -I"projects/redemption_configs/autogen/include" -I"projects/redemption_configs/redemption_src" -I"src" -I"src/system/linux" -o "bin/clang-linux-9.0.0/release/src/mod/vnc/encoder/cursor.o" "src/mod/vnc/encoder/cursor.cpp" ...failed clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/mod/vnc/encoder/cursor.o... clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/mod/vnc/encoder/hextile.o In file included from src/mod/vnc/encoder/hextile.cpp:23: In file included from src/mod/vnc/encoder/hextile.hpp:26: src/mod/vnc/encoder/encoder_api.hpp:56:69: error: no template named 'is_same_v' in namespace 'std'; did you mean 'is_same'? template>> ~~~~~^~~~~~~~~ is_same /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:1517:12: note: 'is_same' declared here struct is_same ^ In file included from src/mod/vnc/encoder/hextile.cpp:23: In file included from src/mod/vnc/encoder/hextile.hpp:26: src/mod/vnc/encoder/encoder_api.hpp:56:97: error: expected '(' for function-style cast or type construction template>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ :365:1: note: expanded from here > ^ In file included from src/mod/vnc/encoder/hextile.cpp:33: src/utils/sugar/numerics/safe_conversions.hpp:152:65: error: no template named 'is_enum_v' in namespace 'std'; did you mean 'is_enum'? struct underlying_type_or_integral>> ~~~~~^~~~~~~~~ is_enum /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:434:12: note: 'is_enum' declared here struct is_enum ^ In file included from src/mod/vnc/encoder/hextile.cpp:33: src/utils/sugar/numerics/safe_conversions.hpp:152:60: error: template argument for non-type template parameter must be an expression struct underlying_type_or_integral>> ^~~~~~~~~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:2522:17: note: template parameter is declared here template ^ src/mod/vnc/encoder/hextile.cpp:170:25: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] : bpp(bpp), Bpp(safe_int(Bpp)), r(rect) ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/mod/vnc/encoder/hextile.cpp:377:10: error: no matching conversion for functional-style cast from 'VNC::Encoder::(anonymous namespace)::Hextile' to 'VNC::Encoder::Encoder' return Encoder(Hextile{bpp, Bpp, rect, verbose}); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mod/vnc/encoder/encoder_api.hpp:53:13: note: candidate constructor not viable: no known conversion from 'VNC::Encoder::(anonymous namespace)::Hextile' to 'VNC::Encoder::Encoder' for 1st argument Encoder(Encoder&&) = default; ^ src/mod/vnc/encoder/encoder_api.hpp:54:13: note: candidate constructor not viable: no known conversion from 'VNC::Encoder::(anonymous namespace)::Hextile' to 'const VNC::Encoder::Encoder' for 1st argument Encoder(Encoder const&) = delete; ^ src/mod/vnc/encoder/encoder_api.hpp:57:22: note: candidate template ignored: couldn't infer template argument '' explicit Encoder(Consumer&& consumer) ^ src/mod/vnc/encoder/encoder_api.hpp:51:13: note: candidate constructor not viable: requires 0 arguments, but 1 was provided Encoder() = default; ^ 1 warning and 5 errors generated. "clang++" -c -x c++ -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -O3 -Wno-inline -Wall -fPIC -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -DNDEBUG -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I"include" -I"modules/includes" -I"modules/ppocr/includes/mln" -I"modules/ppocr/src" -I"projects/ocr1/include" -I"projects/redemption_configs/autogen/include" -I"projects/redemption_configs/redemption_src" -I"src" -I"src/system/linux" -o "bin/clang-linux-9.0.0/release/src/mod/vnc/encoder/hextile.o" "src/mod/vnc/encoder/hextile.cpp" ...failed clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/mod/vnc/encoder/hextile.o... clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/mod/vnc/encoder/raw.o In file included from src/mod/vnc/encoder/raw.cpp:23: In file included from src/mod/vnc/encoder/raw.hpp:26: src/mod/vnc/encoder/encoder_api.hpp:56:69: error: no template named 'is_same_v' in namespace 'std'; did you mean 'is_same'? template>> ~~~~~^~~~~~~~~ is_same /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:1517:12: note: 'is_same' declared here struct is_same ^ In file included from src/mod/vnc/encoder/raw.cpp:23: In file included from src/mod/vnc/encoder/raw.hpp:26: src/mod/vnc/encoder/encoder_api.hpp:56:97: error: expected '(' for function-style cast or type construction template>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ :365:1: note: expanded from here > ^ src/mod/vnc/encoder/raw.cpp:111:12: error: no matching conversion for functional-style cast from 'VNC::Encoder::(anonymous namespace)::Raw' to 'VNC::Encoder::Encoder' return Encoder(Raw{bpp, Bpp, rect}); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mod/vnc/encoder/encoder_api.hpp:53:13: note: candidate constructor not viable: no known conversion from 'VNC::Encoder::(anonymous namespace)::Raw' to 'VNC::Encoder::Encoder' for 1st argument Encoder(Encoder&&) = default; ^ src/mod/vnc/encoder/encoder_api.hpp:54:13: note: candidate constructor not viable: no known conversion from 'VNC::Encoder::(anonymous namespace)::Raw' to 'const VNC::Encoder::Encoder' for 1st argument Encoder(Encoder const&) = delete; ^ src/mod/vnc/encoder/encoder_api.hpp:57:22: note: candidate template ignored: couldn't infer template argument '' explicit Encoder(Consumer&& consumer) ^ src/mod/vnc/encoder/encoder_api.hpp:51:13: note: candidate constructor not viable: requires 0 arguments, but 1 was provided Encoder() = default; ^ 3 errors generated. "clang++" -c -x c++ -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -O3 -Wno-inline -Wall -fPIC -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -DNDEBUG -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I"include" -I"modules/includes" -I"modules/ppocr/includes/mln" -I"modules/ppocr/src" -I"projects/ocr1/include" -I"projects/redemption_configs/autogen/include" -I"projects/redemption_configs/redemption_src" -I"src" -I"src/system/linux" -o "bin/clang-linux-9.0.0/release/src/mod/vnc/encoder/raw.o" "src/mod/vnc/encoder/raw.cpp" ...failed clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/mod/vnc/encoder/raw.o... clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/mod/vnc/encoder/rre.o In file included from src/mod/vnc/encoder/rre.cpp:23: In file included from src/mod/vnc/encoder/rre.hpp:26: src/mod/vnc/encoder/encoder_api.hpp:56:69: error: no template named 'is_same_v' in namespace 'std'; did you mean 'is_same'? template>> ~~~~~^~~~~~~~~ is_same /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:1517:12: note: 'is_same' declared here struct is_same ^ In file included from src/mod/vnc/encoder/rre.cpp:23: In file included from src/mod/vnc/encoder/rre.hpp:26: src/mod/vnc/encoder/encoder_api.hpp:56:97: error: expected '(' for function-style cast or type construction template>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ :365:1: note: expanded from here > ^ In file included from src/mod/vnc/encoder/rre.cpp:30: src/utils/sugar/numerics/safe_conversions.hpp:152:65: error: no template named 'is_enum_v' in namespace 'std'; did you mean 'is_enum'? struct underlying_type_or_integral>> ~~~~~^~~~~~~~~ is_enum /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:434:12: note: 'is_enum' declared here struct is_enum ^ In file included from src/mod/vnc/encoder/rre.cpp:30: src/utils/sugar/numerics/safe_conversions.hpp:152:60: error: template argument for non-type template parameter must be an expression struct underlying_type_or_integral>> ^~~~~~~~~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:2522:17: note: template parameter is declared here template ^ src/mod/vnc/encoder/rre.cpp:97:29: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] : bpp(bpp), Bpp(safe_int(Bpp)), rect(rect) ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/mod/vnc/encoder/rre.cpp:200:12: error: no matching constructor for initialization of 'VNC::Encoder::Encoder' return Encoder{RRE(bpp, Bpp, rect)}; ^ ~~~~~~~~~~~~~~~~~~~~~ src/mod/vnc/encoder/encoder_api.hpp:53:13: note: candidate constructor not viable: no known conversion from 'VNC::Encoder::(anonymous namespace)::RRE' to 'VNC::Encoder::Encoder' for 1st argument Encoder(Encoder&&) = default; ^ src/mod/vnc/encoder/encoder_api.hpp:54:13: note: candidate constructor not viable: no known conversion from 'VNC::Encoder::(anonymous namespace)::RRE' to 'const VNC::Encoder::Encoder' for 1st argument Encoder(Encoder const&) = delete; ^ src/mod/vnc/encoder/encoder_api.hpp:57:22: note: candidate template ignored: couldn't infer template argument '' explicit Encoder(Consumer&& consumer) ^ src/mod/vnc/encoder/encoder_api.hpp:51:13: note: candidate constructor not viable: requires 0 arguments, but 1 was provided Encoder() = default; ^ 1 warning and 5 errors generated. "clang++" -c -x c++ -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -O3 -Wno-inline -Wall -fPIC -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -DNDEBUG -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I"include" -I"modules/includes" -I"modules/ppocr/includes/mln" -I"modules/ppocr/src" -I"projects/ocr1/include" -I"projects/redemption_configs/autogen/include" -I"projects/redemption_configs/redemption_src" -I"src" -I"src/system/linux" -o "bin/clang-linux-9.0.0/release/src/mod/vnc/encoder/rre.o" "src/mod/vnc/encoder/rre.cpp" ...failed clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/mod/vnc/encoder/rre.o... clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/mod/vnc/encoder/zrle.o In file included from src/mod/vnc/encoder/zrle.cpp:24: In file included from src/mod/vnc/encoder/zrle.hpp:27: src/mod/vnc/encoder/encoder_api.hpp:56:69: error: no template named 'is_same_v' in namespace 'std'; did you mean 'is_same'? template>> ~~~~~^~~~~~~~~ is_same /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:1517:12: note: 'is_same' declared here struct is_same ^ In file included from src/mod/vnc/encoder/zrle.cpp:24: In file included from src/mod/vnc/encoder/zrle.hpp:27: src/mod/vnc/encoder/encoder_api.hpp:56:97: error: expected '(' for function-style cast or type construction template>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ :365:1: note: expanded from here > ^ In file included from src/mod/vnc/encoder/zrle.cpp:36: src/utils/sugar/numerics/safe_conversions.hpp:152:65: error: no template named 'is_enum_v' in namespace 'std'; did you mean 'is_enum'? struct underlying_type_or_integral>> ~~~~~^~~~~~~~~ is_enum /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:434:12: note: 'is_enum' declared here struct is_enum ^ In file included from src/mod/vnc/encoder/zrle.cpp:36: src/utils/sugar/numerics/safe_conversions.hpp:152:60: error: template argument for non-type template parameter must be an expression struct underlying_type_or_integral>> ^~~~~~~~~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:2522:17: note: template parameter is declared here template ^ src/mod/vnc/encoder/zrle.cpp:73:25: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] : bpp(bpp), Bpp(safe_int(Bpp)), r(rect) ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/mod/vnc/encoder/zrle.cpp:758:12: error: no matching conversion for functional-style cast from 'VNC::Encoder::(anonymous namespace)::Zrle' to 'VNC::Encoder::Encoder' return Encoder(Zrle{bpp, Bpp, rect, zd, verbose}); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mod/vnc/encoder/encoder_api.hpp:53:13: note: candidate constructor not viable: no known conversion from 'VNC::Encoder::(anonymous namespace)::Zrle' to 'VNC::Encoder::Encoder' for 1st argument Encoder(Encoder&&) = default; ^ src/mod/vnc/encoder/encoder_api.hpp:54:13: note: candidate constructor not viable: no known conversion from 'VNC::Encoder::(anonymous namespace)::Zrle' to 'const VNC::Encoder::Encoder' for 1st argument Encoder(Encoder const&) = delete; ^ src/mod/vnc/encoder/encoder_api.hpp:57:22: note: candidate template ignored: couldn't infer template argument '' explicit Encoder(Consumer&& consumer) ^ src/mod/vnc/encoder/encoder_api.hpp:51:13: note: candidate constructor not viable: requires 0 arguments, but 1 was provided Encoder() = default; ^ 1 warning and 5 errors generated. "clang++" -c -x c++ -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -O3 -Wno-inline -Wall -fPIC -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -DNDEBUG -DZLIB_CONST -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I"include" -I"modules/includes" -I"modules/ppocr/includes/mln" -I"modules/ppocr/src" -I"projects/ocr1/include" -I"projects/redemption_configs/autogen/include" -I"projects/redemption_configs/redemption_src" -I"src" -I"src/system/linux" -o "bin/clang-linux-9.0.0/release/src/mod/vnc/encoder/zrle.o" "src/mod/vnc/encoder/zrle.cpp" ...failed clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/mod/vnc/encoder/zrle.o... clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/utils/bitmap.o In file included from src/utils/bitmap.cpp:31: In file included from src/utils/bitmap_private_data.hpp:39: src/utils/sugar/numerics/safe_conversions.hpp:152:65: error: no template named 'is_enum_v' in namespace 'std'; did you mean 'is_enum'? struct underlying_type_or_integral>> ~~~~~^~~~~~~~~ is_enum /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:434:12: note: 'is_enum' declared here struct is_enum ^ In file included from src/utils/bitmap.cpp:31: In file included from src/utils/bitmap_private_data.hpp:39: src/utils/sugar/numerics/safe_conversions.hpp:152:60: error: template argument for non-type template parameter must be an expression struct underlying_type_or_integral>> ^~~~~~~~~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:2522:17: note: template parameter is declared here template ^ In file included from src/utils/bitmap.cpp:31: src/utils/bitmap_private_data.hpp:127:34: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] out_stream.out_uint8(safe_int(this->bpp_)); ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ 1 warning and 2 errors generated. "clang++" -c -x c++ -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -O3 -Wno-inline -Wall -fPIC -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -DNDEBUG -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I"include" -I"modules/includes" -I"modules/ppocr/includes/mln" -I"modules/ppocr/src" -I"projects/ocr1/include" -I"projects/redemption_configs/autogen/include" -I"projects/redemption_configs/redemption_src" -I"src" -I"src/system/linux" -o "bin/clang-linux-9.0.0/release/src/utils/bitmap.o" "src/utils/bitmap.cpp" ...failed clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/utils/bitmap.o... clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/utils/bitmap_from_file.o In file included from src/utils/bitmap_from_file.cpp:33: In file included from src/utils/bitmap_private_data.hpp:39: src/utils/sugar/numerics/safe_conversions.hpp:152:65: error: no template named 'is_enum_v' in namespace 'std'; did you mean 'is_enum'? struct underlying_type_or_integral>> ~~~~~^~~~~~~~~ is_enum /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:434:12: note: 'is_enum' declared here struct is_enum ^ In file included from src/utils/bitmap_from_file.cpp:33: In file included from src/utils/bitmap_private_data.hpp:39: src/utils/sugar/numerics/safe_conversions.hpp:152:60: error: template argument for non-type template parameter must be an expression struct underlying_type_or_integral>> ^~~~~~~~~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:2522:17: note: template parameter is declared here template ^ In file included from src/utils/bitmap_from_file.cpp:33: src/utils/bitmap_private_data.hpp:127:34: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] out_stream.out_uint8(safe_int(this->bpp_)); ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ In file included from src/utils/bitmap_from_file.cpp:38: In file included from src/utils/sugar/scope_exit.hpp:24: src/utils/sugar/finally.hpp:38:12: warning: aggregate initialization of type 'basic_finally<(lambda at src/utils/bitmap_from_file.cpp:130:5)>' with user-declared constructors is incompatible with C++2a [-Wc++2a-compat] return {static_cast(f)}; ^~~~~~~~~~~~~~~~~~~~~ src/utils/bitmap_from_file.cpp:130:5: note: in instantiation of function template specialization 'finally<(lambda at src/utils/bitmap_from_file.cpp:130:5)>' requested here SCOPE_EXIT(png_destroy_read_struct(&png_ptr, &info_ptr, nullptr)); ^ src/utils/sugar/scope_exit.hpp:30:9: note: expanded from macro 'SCOPE_EXIT' = ::finally([&]{ __VA_ARGS__; }) ^ 2 warnings and 2 errors generated. "clang++" -c -x c++ -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -O3 -Wno-inline -Wall -fPIC -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -DNDEBUG -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I"include" -I"modules/includes" -I"modules/ppocr/includes/mln" -I"modules/ppocr/src" -I"projects/ocr1/include" -I"projects/redemption_configs/autogen/include" -I"projects/redemption_configs/redemption_src" -I"src" -I"src/system/linux" -o "bin/clang-linux-9.0.0/release/src/utils/bitmap_from_file.o" "src/utils/bitmap_from_file.cpp" ...failed clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/utils/bitmap_from_file.o... clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/utils/drawable.o In file included from src/utils/drawable.cpp:33: src/utils/sugar/numerics/safe_conversions.hpp:152:65: error: no template named 'is_enum_v' in namespace 'std'; did you mean 'is_enum'? struct underlying_type_or_integral>> ~~~~~^~~~~~~~~ is_enum /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:434:12: note: 'is_enum' declared here struct is_enum ^ In file included from src/utils/drawable.cpp:33: src/utils/sugar/numerics/safe_conversions.hpp:152:60: error: template argument for non-type template parameter must be an expression struct underlying_type_or_integral>> ^~~~~~~~~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:2522:17: note: template parameter is declared here template ^ src/utils/drawable.cpp:334:37: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] const uint8_t bmp_bpp = safe_int(bmp.bits_per_pixel()); ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/utils/drawable.cpp:346:25: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] safe_int(bmp.bytes_per_pixel()), bmp_line_size, op, typename traits::fromColor8{bmp.palette()}, c...); break; ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/utils/drawable.cpp:348:25: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] safe_int(bmp.bytes_per_pixel()), bmp_line_size, op, typename traits::fromColor15{}, c...); break; ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/utils/drawable.cpp:350:25: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] safe_int(bmp.bytes_per_pixel()), bmp_line_size, op, typename traits::fromColor16{}, c...); break; ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/utils/drawable.cpp:352:25: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] safe_int(bmp.bytes_per_pixel()), bmp_line_size, op, typename traits::fromColor24{}, c...); break; ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/utils/drawable.cpp:334:37: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] const uint8_t bmp_bpp = safe_int(bmp.bits_per_pixel()); ^ src/utils/drawable.cpp:818:27: note: in instantiation of function template specialization '(anonymous namespace)::PrivateDrawableImplRef::mem_blt' requested here privimpl(this->impl_).mem_blt(trect, bmp, srcx, srcy, Op(), c...); ^ src/utils/drawable.cpp:828:11: note: in instantiation of function template specialization 'Drawable::mem_blt_op' requested here this->mem_blt_op(rect, bmp, srcx, srcy); ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/utils/drawable.cpp:346:25: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] safe_int(bmp.bytes_per_pixel()), bmp_line_size, op, typename traits::fromColor8{bmp.palette()}, c...); break; ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/utils/drawable.cpp:348:25: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] safe_int(bmp.bytes_per_pixel()), bmp_line_size, op, typename traits::fromColor15{}, c...); break; ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/utils/drawable.cpp:350:25: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] safe_int(bmp.bytes_per_pixel()), bmp_line_size, op, typename traits::fromColor16{}, c...); break; ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/utils/drawable.cpp:352:25: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] safe_int(bmp.bytes_per_pixel()), bmp_line_size, op, typename traits::fromColor24{}, c...); break; ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/utils/drawable.cpp:334:37: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] const uint8_t bmp_bpp = safe_int(bmp.bits_per_pixel()); ^ src/utils/drawable.cpp:818:27: note: in instantiation of function template specialization '(anonymous namespace)::PrivateDrawableImplRef::mem_blt' requested here privimpl(this->impl_).mem_blt(trect, bmp, srcx, srcy, Op(), c...); ^ src/utils/drawable.cpp:833:11: note: in instantiation of function template specialization 'Drawable::mem_blt_op' requested here this->mem_blt_op(rect, bmp, srcx, srcy); ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/utils/drawable.cpp:346:25: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] safe_int(bmp.bytes_per_pixel()), bmp_line_size, op, typename traits::fromColor8{bmp.palette()}, c...); break; ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/utils/drawable.cpp:348:25: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] safe_int(bmp.bytes_per_pixel()), bmp_line_size, op, typename traits::fromColor15{}, c...); break; ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/utils/drawable.cpp:350:25: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] safe_int(bmp.bytes_per_pixel()), bmp_line_size, op, typename traits::fromColor16{}, c...); break; ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/utils/drawable.cpp:352:25: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] safe_int(bmp.bytes_per_pixel()), bmp_line_size, op, typename traits::fromColor24{}, c...); break; ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/utils/drawable.cpp:334:37: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] const uint8_t bmp_bpp = safe_int(bmp.bits_per_pixel()); ^ src/utils/drawable.cpp:818:27: note: in instantiation of function template specialization '(anonymous namespace)::PrivateDrawableImplRef::mem_blt' requested here privimpl(this->impl_).mem_blt(trect, bmp, srcx, srcy, Op(), c...); ^ src/utils/drawable.cpp:847:19: note: in instantiation of function template specialization 'Drawable::mem_blt_op' requested here this->mem_blt_op(rect, bmp, srcx, srcy); ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/utils/drawable.cpp:346:25: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] safe_int(bmp.bytes_per_pixel()), bmp_line_size, op, typename traits::fromColor8{bmp.palette()}, c...); break; ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/utils/drawable.cpp:348:25: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] safe_int(bmp.bytes_per_pixel()), bmp_line_size, op, typename traits::fromColor15{}, c...); break; ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/utils/drawable.cpp:350:25: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] safe_int(bmp.bytes_per_pixel()), bmp_line_size, op, typename traits::fromColor16{}, c...); break; ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/utils/drawable.cpp:352:25: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] safe_int(bmp.bytes_per_pixel()), bmp_line_size, op, typename traits::fromColor24{}, c...); break; ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/utils/drawable.cpp:334:37: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] const uint8_t bmp_bpp = safe_int(bmp.bits_per_pixel()); ^ src/utils/drawable.cpp:818:27: note: in instantiation of function template specialization '(anonymous namespace)::PrivateDrawableImplRef::mem_blt' requested here privimpl(this->impl_).mem_blt(trect, bmp, srcx, srcy, Op(), c...); ^ src/utils/drawable.cpp:854:19: note: in instantiation of function template specialization 'Drawable::mem_blt_op' requested here this->mem_blt_op(rect, bmp, srcx, srcy); ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/utils/drawable.cpp:346:25: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] safe_int(bmp.bytes_per_pixel()), bmp_line_size, op, typename traits::fromColor8{bmp.palette()}, c...); break; ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/utils/drawable.cpp:348:25: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] safe_int(bmp.bytes_per_pixel()), bmp_line_size, op, typename traits::fromColor15{}, c...); break; ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/utils/drawable.cpp:350:25: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] safe_int(bmp.bytes_per_pixel()), bmp_line_size, op, typename traits::fromColor16{}, c...); break; ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/utils/drawable.cpp:352:25: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] safe_int(bmp.bytes_per_pixel()), bmp_line_size, op, typename traits::fromColor24{}, c...); break; ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/utils/drawable.cpp:334:37: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] const uint8_t bmp_bpp = safe_int(bmp.bits_per_pixel()); ^ src/utils/drawable.cpp:818:27: note: in instantiation of function template specialization '(anonymous namespace)::PrivateDrawableImplRef::mem_blt' requested here privimpl(this->impl_).mem_blt(trect, bmp, srcx, srcy, Op(), c...); ^ src/utils/drawable.cpp:861:19: note: in instantiation of function template specialization 'Drawable::mem_blt_op' requested here this->mem_blt_op(rect, bmp, srcx, srcy); ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/utils/drawable.cpp:346:25: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] safe_int(bmp.bytes_per_pixel()), bmp_line_size, op, typename traits::fromColor8{bmp.palette()}, c...); break; ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/utils/drawable.cpp:348:25: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] safe_int(bmp.bytes_per_pixel()), bmp_line_size, op, typename traits::fromColor15{}, c...); break; ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/utils/drawable.cpp:350:25: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] safe_int(bmp.bytes_per_pixel()), bmp_line_size, op, typename traits::fromColor16{}, c...); break; ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/utils/drawable.cpp:352:25: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] safe_int(bmp.bytes_per_pixel()), bmp_line_size, op, typename traits::fromColor24{}, c...); break; ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/utils/drawable.cpp:334:37: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] const uint8_t bmp_bpp = safe_int(bmp.bits_per_pixel()); ^ src/utils/drawable.cpp:818:27: note: in instantiation of function template specialization '(anonymous namespace)::PrivateDrawableImplRef::mem_blt' requested here privimpl(this->impl_).mem_blt(trect, bmp, srcx, srcy, Op(), c...); ^ src/utils/drawable.cpp:868:19: note: in instantiation of function template specialization 'Drawable::mem_blt_op' requested here this->mem_blt_op(rect, bmp, srcx, srcy); ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/utils/drawable.cpp:346:25: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] safe_int(bmp.bytes_per_pixel()), bmp_line_size, op, typename traits::fromColor8{bmp.palette()}, c...); break; ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/utils/drawable.cpp:348:25: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] safe_int(bmp.bytes_per_pixel()), bmp_line_size, op, typename traits::fromColor15{}, c...); break; ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/utils/drawable.cpp:350:25: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] safe_int(bmp.bytes_per_pixel()), bmp_line_size, op, typename traits::fromColor16{}, c...); break; ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/utils/drawable.cpp:352:25: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] safe_int(bmp.bytes_per_pixel()), bmp_line_size, op, typename traits::fromColor24{}, c...); break; ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/utils/drawable.cpp:334:37: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] const uint8_t bmp_bpp = safe_int(bmp.bits_per_pixel()); ^ src/utils/drawable.cpp:818:27: note: in instantiation of function template specialization '(anonymous namespace)::PrivateDrawableImplRef::mem_blt' requested here privimpl(this->impl_).mem_blt(trect, bmp, srcx, srcy, Op(), c...); ^ src/utils/drawable.cpp:875:19: note: in instantiation of function template specialization 'Drawable::mem_blt_op' requested here this->mem_blt_op(rect, bmp, srcx, srcy); ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/utils/drawable.cpp:346:25: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] safe_int(bmp.bytes_per_pixel()), bmp_line_size, op, typename traits::fromColor8{bmp.palette()}, c...); break; ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/utils/drawable.cpp:348:25: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] safe_int(bmp.bytes_per_pixel()), bmp_line_size, op, typename traits::fromColor15{}, c...); break; ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/utils/drawable.cpp:350:25: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] safe_int(bmp.bytes_per_pixel()), bmp_line_size, op, typename traits::fromColor16{}, c...); break; ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/utils/drawable.cpp:352:25: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] safe_int(bmp.bytes_per_pixel()), bmp_line_size, op, typename traits::fromColor24{}, c...); break; ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/utils/drawable.cpp:334:37: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] const uint8_t bmp_bpp = safe_int(bmp.bits_per_pixel()); ^ src/utils/drawable.cpp:818:27: note: in instantiation of function template specialization '(anonymous namespace)::PrivateDrawableImplRef::mem_blt' requested here privimpl(this->impl_).mem_blt(trect, bmp, srcx, srcy, Op(), c...); ^ src/utils/drawable.cpp:902:19: note: in instantiation of function template specialization 'Drawable::mem_blt_op' requested here this->mem_blt_op(rect, bmp, srcx, srcy, pattern_color); ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/utils/drawable.cpp:346:25: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] safe_int(bmp.bytes_per_pixel()), bmp_line_size, op, typename traits::fromColor8{bmp.palette()}, c...); break; ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/utils/drawable.cpp:348:25: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] safe_int(bmp.bytes_per_pixel()), bmp_line_size, op, typename traits::fromColor15{}, c...); break; ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/utils/drawable.cpp:350:25: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] safe_int(bmp.bytes_per_pixel()), bmp_line_size, op, typename traits::fromColor16{}, c...); break; ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/utils/drawable.cpp:352:25: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] safe_int(bmp.bytes_per_pixel()), bmp_line_size, op, typename traits::fromColor24{}, c...); break; ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ 45 warnings and 2 errors generated. "clang++" -c -x c++ -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -O3 -Wno-inline -Wall -fPIC -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -DNDEBUG -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I"include" -I"modules/includes" -I"modules/ppocr/includes/mln" -I"modules/ppocr/src" -I"projects/ocr1/include" -I"projects/redemption_configs/autogen/include" -I"projects/redemption_configs/redemption_src" -I"src" -I"src/system/linux" -o "bin/clang-linux-9.0.0/release/src/utils/drawable.o" "src/utils/drawable.cpp" ...failed clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/utils/drawable.o... clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/utils/png.o In file included from src/utils/png.cpp:32: src/utils/sugar/numerics/safe_conversions.hpp:152:65: error: no template named 'is_enum_v' in namespace 'std'; did you mean 'is_enum'? struct underlying_type_or_integral>> ~~~~~^~~~~~~~~ is_enum /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:434:12: note: 'is_enum' declared here struct is_enum ^ In file included from src/utils/png.cpp:32: src/utils/sugar/numerics/safe_conversions.hpp:152:60: error: template argument for non-type template parameter must be an expression struct underlying_type_or_integral>> ^~~~~~~~~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:2522:17: note: template parameter is declared here template ^ In file included from src/utils/png.cpp:32: src/utils/sugar/numerics/safe_conversions.hpp:269:5: error: static_assert failed due to requirement 'integral_constant::value' "Unsafe conversion." static_assert(is_safe_convertible::value, "Unsafe conversion."); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/utils/png.cpp:387:21: note: in instantiation of function template specialization 'safe_cast' requested here switch (safe_cast(chunk_trans.chunk_type)) { ^ 3 errors generated. "clang++" -c -x c++ -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -O3 -Wno-inline -Wall -fPIC -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -DNDEBUG -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I"include" -I"modules/includes" -I"modules/ppocr/includes/mln" -I"modules/ppocr/src" -I"projects/ocr1/include" -I"projects/redemption_configs/autogen/include" -I"projects/redemption_configs/redemption_src" -I"src" -I"src/system/linux" -o "bin/clang-linux-9.0.0/release/src/utils/png.o" "src/utils/png.cpp" ...failed clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/utils/png.o... clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/utils/rle.o In file included from src/utils/rle.cpp:33: In file included from src/utils/bitmap_private_data.hpp:39: src/utils/sugar/numerics/safe_conversions.hpp:152:65: error: no template named 'is_enum_v' in namespace 'std'; did you mean 'is_enum'? struct underlying_type_or_integral>> ~~~~~^~~~~~~~~ is_enum /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:434:12: note: 'is_enum' declared here struct is_enum ^ In file included from src/utils/rle.cpp:33: In file included from src/utils/bitmap_private_data.hpp:39: src/utils/sugar/numerics/safe_conversions.hpp:152:60: error: template argument for non-type template parameter must be an expression struct underlying_type_or_integral>> ^~~~~~~~~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:2522:17: note: template parameter is declared here template ^ In file included from src/utils/rle.cpp:33: src/utils/bitmap_private_data.hpp:127:34: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] out_stream.out_uint8(safe_int(this->bpp_)); ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/utils/rle.cpp:1184:43: warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt] /*LOG(LOG_INFO, "run=%c", *data)*/; ^ src/utils/rle.cpp:1336:38: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] const uint8_t byte_per_color = safe_int(image.bytes_per_pixel()); ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/utils/rle.cpp:1433:23: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] uint8_t bpp = safe_int(image.bytes_per_pixel()); ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ 4 warnings and 2 errors generated. "clang++" -c -x c++ -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -O3 -Wno-inline -Wall -fPIC -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -DNDEBUG -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I"include" -I"modules/includes" -I"modules/ppocr/includes/mln" -I"modules/ppocr/src" -I"projects/ocr1/include" -I"projects/redemption_configs/autogen/include" -I"projects/redemption_configs/redemption_src" -I"src" -I"src/system/linux" -o "bin/clang-linux-9.0.0/release/src/utils/rle.o" "src/utils/rle.cpp" ...failed clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/utils/rle.o... ...skipped rdpproxy for lack of src/acl/module_manager/create_module_rdp.o... clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/main/rdp_client.o In file included from src/main/rdp_client.cpp:25: In file included from src/core/client_info.hpp:32: In file included from src/core/RDP/gcc.hpp:45: src/core/RDP/gcc/userdata/sc_core.hpp:176:10: warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt] }; ^ In file included from src/main/rdp_client.cpp:25: In file included from src/core/client_info.hpp:33: src/core/RDP/logon.hpp:612:9: warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt] ; ^ In file included from src/main/rdp_client.cpp:25: In file included from src/core/client_info.hpp:34: src/core/RDP/capabilities/bmpcache2.hpp:159:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/main/rdp_client.cpp:25: In file included from src/core/client_info.hpp:35: src/core/RDP/capabilities/cap_bitmap.hpp:172:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/main/rdp_client.cpp:25: In file included from src/core/client_info.hpp:36: src/core/RDP/capabilities/cap_bmpcache.hpp:118:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/main/rdp_client.cpp:25: In file included from src/core/client_info.hpp:37: src/core/RDP/capabilities/cap_glyphcache.hpp:200:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/main/rdp_client.cpp:25: In file included from src/core/client_info.hpp:38: src/core/RDP/capabilities/general.hpp:254:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/main/rdp_client.cpp:25: In file included from src/core/client_info.hpp:39: src/core/RDP/capabilities/largepointer.hpp:84:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/main/rdp_client.cpp:25: In file included from src/core/client_info.hpp:40: src/core/RDP/capabilities/offscreencache.hpp:77:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/main/rdp_client.cpp:25: In file included from src/core/client_info.hpp:41: src/core/RDP/capabilities/order.hpp:384:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/main/rdp_client.cpp:25: In file included from src/core/client_info.hpp:42: src/core/RDP/capabilities/multifragmentupdate.hpp:69:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/main/rdp_client.cpp:25: In file included from src/core/client_info.hpp:43: src/core/RDP/capabilities/rail.hpp:172:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/main/rdp_client.cpp:25: In file included from src/core/client_info.hpp:44: src/core/RDP/capabilities/bitmapcodecs.hpp:33:10: fatal error: 'variant' file not found #include ^~~~~~~~~ 12 warnings and 1 error generated. "clang++" -c -x c++ -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -O3 -Wno-inline -Wall -fPIC -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -DNDEBUG -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I"include" -I"modules/includes" -I"modules/ppocr/includes/mln" -I"modules/ppocr/src" -I"projects/ocr1/include" -I"projects/redemption_configs/autogen/include" -I"projects/redemption_configs/redemption_src" -I"src" -I"src/system/linux" -I"tests/includes" -o "bin/clang-linux-9.0.0/release/src/main/rdp_client.o" "src/main/rdp_client.cpp" ...failed clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/main/rdp_client.o... clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/mod/rdp/new_mod_rdp.o In file included from src/mod/rdp/new_mod_rdp.cpp:21: In file included from src/mod/rdp/new_mod_rdp.hpp:24: In file included from src/mod/rdp/rdp_params.hpp:25: In file included from src/core/RDP/caches/bmpcache.hpp:30: In file included from src/core/RDP/orders/RDPOrdersSecondaryBmpCache.hpp:31: src/utils/sugar/numerics/safe_conversions.hpp:152:65: error: no template named 'is_enum_v' in namespace 'std'; did you mean 'is_enum'? struct underlying_type_or_integral>> ~~~~~^~~~~~~~~ is_enum /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:434:12: note: 'is_enum' declared here struct is_enum ^ In file included from src/mod/rdp/new_mod_rdp.cpp:21: In file included from src/mod/rdp/new_mod_rdp.hpp:24: In file included from src/mod/rdp/rdp_params.hpp:25: In file included from src/core/RDP/caches/bmpcache.hpp:30: In file included from src/core/RDP/orders/RDPOrdersSecondaryBmpCache.hpp:31: src/utils/sugar/numerics/safe_conversions.hpp:152:60: error: template argument for non-type template parameter must be an expression struct underlying_type_or_integral>> ^~~~~~~~~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:2522:17: note: template parameter is declared here template ^ In file included from src/mod/rdp/new_mod_rdp.cpp:21: In file included from src/mod/rdp/new_mod_rdp.hpp:24: In file included from src/mod/rdp/rdp_params.hpp:25: In file included from src/core/RDP/caches/bmpcache.hpp:30: src/core/RDP/orders/RDPOrdersSecondaryBmpCache.hpp:526:26: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] stream.out_uint8(safe_int(this->bmp.bpp())); ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ In file included from src/mod/rdp/new_mod_rdp.cpp:21: In file included from src/mod/rdp/new_mod_rdp.hpp:24: In file included from src/mod/rdp/rdp_params.hpp:25: In file included from src/core/RDP/caches/bmpcache.hpp:30: src/core/RDP/orders/RDPOrdersSecondaryBmpCache.hpp:590:26: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] stream.out_uint8(safe_int(this->bmp.bpp())); ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ In file included from src/mod/rdp/new_mod_rdp.cpp:21: In file included from src/mod/rdp/new_mod_rdp.hpp:24: In file included from src/mod/rdp/rdp_params.hpp:31: In file included from src/mod/rdp/channels/sespro_clipboard_based_launcher.hpp:25: In file included from src/mod/rdp/channels/cliprdr_channel.hpp:24: In file included from src/core/channel_list.hpp:35: src/core/RDP/x224.hpp:368:18: warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt] }; ^ In file included from src/mod/rdp/new_mod_rdp.cpp:21: In file included from src/mod/rdp/new_mod_rdp.hpp:24: In file included from src/mod/rdp/rdp_params.hpp:31: In file included from src/mod/rdp/channels/sespro_clipboard_based_launcher.hpp:25: In file included from src/mod/rdp/channels/cliprdr_channel.hpp:26: src/core/RDP/clipboard.hpp:1068:61: error: no matching function for call to 'UTF16toUTF8' const size_t size_of_formatName_UTF8_data = ::UTF16toUTF8( ^~~~~~~~~~~~~ src/utils/utf.hpp:94:13: note: candidate function not viable: 3rd argument ('const uint8_t *' (aka 'const unsigned char *')) would lose const qualifier std::size_t UTF16toUTF8(const uint8_t * utf16_source, std::size_t utf16_len, uint8_t * utf8_target, std::size_t target_len) noexcept; ^ src/utils/utf.hpp:98:13: note: candidate function not viable: no known conversion from 'const uint8_t *' (aka 'const unsigned char *') to 'const uint16_t *' (aka 'const unsigned short *') for 1st argument std::size_t UTF16toUTF8(const uint16_t * utf16_source, std::size_t utf16_len, uint8_t * utf8_target, std::size_t target_len) noexcept; ^ In file included from src/mod/rdp/new_mod_rdp.cpp:21: In file included from src/mod/rdp/new_mod_rdp.hpp:24: In file included from src/mod/rdp/rdp_params.hpp:31: In file included from src/mod/rdp/channels/sespro_clipboard_based_launcher.hpp:25: In file included from src/mod/rdp/channels/cliprdr_channel.hpp:26: src/core/RDP/clipboard.hpp:1112:65: error: no matching function for call to 'UTF16toUTF8' const size_t size_of_formatName_UTF8_data = ::UTF16toUTF8( ^~~~~~~~~~~~~ src/utils/utf.hpp:94:13: note: candidate function not viable: 3rd argument ('const uint8_t *' (aka 'const unsigned char *')) would lose const qualifier std::size_t UTF16toUTF8(const uint8_t * utf16_source, std::size_t utf16_len, uint8_t * utf8_target, std::size_t target_len) noexcept; ^ src/utils/utf.hpp:98:13: note: candidate function not viable: no known conversion from 'const uint8_t *' (aka 'const unsigned char *') to 'const uint16_t *' (aka 'const unsigned short *') for 1st argument std::size_t UTF16toUTF8(const uint16_t * utf16_source, std::size_t utf16_len, uint8_t * utf8_target, std::size_t target_len) noexcept; ^ In file included from src/mod/rdp/new_mod_rdp.cpp:21: In file included from src/mod/rdp/new_mod_rdp.hpp:24: In file included from src/mod/rdp/rdp_params.hpp:31: In file included from src/mod/rdp/channels/sespro_clipboard_based_launcher.hpp:25: In file included from src/mod/rdp/channels/cliprdr_channel.hpp:36: src/core/session_reactor.hpp:1941:28: warning: parameter 'p' shadows member inherited from type 'SharedPtr' [-Wshadow-field] TopSharedPtr(Data* p = nullptr) noexcept ^ src/core/session_reactor.hpp:1817:25: note: declared here SharedDataBase* p; ^ src/core/session_reactor.hpp:1979:40: warning: parameter 'p' shadows member inherited from type 'SharedPtr' [-Wshadow-field] TimerSharedPtr(SharedDataBase* p = nullptr) noexcept ^ src/core/session_reactor.hpp:1817:25: note: declared here SharedDataBase* p; ^ In file included from src/mod/rdp/new_mod_rdp.cpp:21: In file included from src/mod/rdp/new_mod_rdp.hpp:23: In file included from src/mod/mod_api.hpp:23: In file included from src/core/callback.hpp:29: In file included from src/utils/sugar/array_view.hpp:28: In file included from src/utils/sugar/array.hpp:26: In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/array:38: /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/utility:90:33: error: implicit instantiation of undefined template 'std::tuple_size' : integral_constant::value> { }; ^ src/core/clipboard_virtual_channels_params.hpp:38:22: note: in instantiation of template class 'std::tuple_size' requested here auto const & [a, b, c, d, e, f] = x; ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/utility:84:12: note: template is declared here struct tuple_size; ^ In file included from src/mod/rdp/new_mod_rdp.cpp:21: In file included from src/mod/rdp/new_mod_rdp.hpp:24: In file included from src/mod/rdp/rdp_params.hpp:31: In file included from src/mod/rdp/channels/sespro_clipboard_based_launcher.hpp:25: In file included from src/mod/rdp/channels/cliprdr_channel.hpp:37: src/core/clipboard_virtual_channels_params.hpp:38:22: error: cannot decompose this type; 'std::tuple_size::value' is not a valid integral constant expression auto const & [a, b, c, d, e, f] = x; ^ src/core/clipboard_virtual_channels_params.hpp:44:22: error: cannot decompose this type; 'std::tuple_size::value' is not a valid integral constant expression auto const & [a, b, c, d, e, f] = *this; ^ src/core/clipboard_virtual_channels_params.hpp:45:22: error: cannot decompose this type; 'std::tuple_size::value' is not a valid integral constant expression auto const & [a1, b1, c1, d1, e1, f1] = other; ^ In file included from src/mod/rdp/new_mod_rdp.cpp:21: In file included from src/mod/rdp/new_mod_rdp.hpp:24: In file included from src/mod/rdp/rdp_params.hpp:31: In file included from src/mod/rdp/channels/sespro_clipboard_based_launcher.hpp:26: In file included from src/mod/rdp/channels/sespro_channel.hpp:29: In file included from src/mod/rdp/channels/rdpdr_channel.hpp:28: In file included from src/mod/rdp/channels/rdpdr_file_system_drive_manager.hpp:27: src/core/RDP/channels/rdpdr.hpp:5492:82: warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt] status.SetIOControlCode(dcr.IoControlCode());; ^ In file included from src/mod/rdp/new_mod_rdp.cpp:21: In file included from src/mod/rdp/new_mod_rdp.hpp:24: In file included from src/mod/rdp/rdp_params.hpp:33: src/core/RDP/capabilities/order.hpp:384:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/mod/rdp/new_mod_rdp.cpp:22: In file included from src/mod/rdp/rdp.hpp:30: In file included from src/core/RDP/MonitorLayoutPDU.hpp:23: In file included from src/core/RDP/gcc.hpp:45: src/core/RDP/gcc/userdata/sc_core.hpp:176:10: warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt] }; ^ In file included from src/mod/rdp/new_mod_rdp.cpp:22: In file included from src/mod/rdp/rdp.hpp:37: In file included from src/core/RDP/bitmapupdate.hpp:26: src/core/RDP/capabilities/general.hpp:254:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/mod/rdp/new_mod_rdp.cpp:22: In file included from src/mod/rdp/rdp.hpp:39: src/core/RDP/capabilities/activate.hpp:82:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/mod/rdp/new_mod_rdp.cpp:22: In file included from src/mod/rdp/rdp.hpp:40: src/core/RDP/capabilities/bitmapcachehostsupport.hpp:78:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/mod/rdp/new_mod_rdp.cpp:22: In file included from src/mod/rdp/rdp.hpp:41: src/core/RDP/capabilities/bitmapcodecs.hpp:33:10: fatal error: 'variant' file not found #include ^~~~~~~~~ 11 warnings and 9 errors generated. "clang++" -c -x c++ -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -O3 -Wno-inline -Wall -fPIC -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -DNDEBUG -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I"include" -I"modules/includes" -I"modules/ppocr/includes/mln" -I"modules/ppocr/src" -I"projects/ocr1/include" -I"projects/redemption_configs/autogen/include" -I"projects/redemption_configs/redemption_src" -I"src" -I"src/system/linux" -o "bin/clang-linux-9.0.0/release/src/mod/rdp/new_mod_rdp.o" "src/mod/rdp/new_mod_rdp.cpp" ...failed clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/mod/rdp/new_mod_rdp.o... clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/mod/vnc/new_mod_vnc.o In file included from src/mod/vnc/new_mod_vnc.cpp:22: In file included from src/mod/vnc/vnc.hpp:29: In file included from src/core/channel_list.hpp:35: src/core/RDP/x224.hpp:368:18: warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt] }; ^ In file included from src/mod/vnc/new_mod_vnc.cpp:22: In file included from src/mod/vnc/vnc.hpp:32: src/core/RDP/clipboard.hpp:1068:61: error: no matching function for call to 'UTF16toUTF8' const size_t size_of_formatName_UTF8_data = ::UTF16toUTF8( ^~~~~~~~~~~~~ src/utils/utf.hpp:94:13: note: candidate function not viable: 3rd argument ('const uint8_t *' (aka 'const unsigned char *')) would lose const qualifier std::size_t UTF16toUTF8(const uint8_t * utf16_source, std::size_t utf16_len, uint8_t * utf8_target, std::size_t target_len) noexcept; ^ src/utils/utf.hpp:98:13: note: candidate function not viable: no known conversion from 'const uint8_t *' (aka 'const unsigned char *') to 'const uint16_t *' (aka 'const unsigned short *') for 1st argument std::size_t UTF16toUTF8(const uint16_t * utf16_source, std::size_t utf16_len, uint8_t * utf8_target, std::size_t target_len) noexcept; ^ In file included from src/mod/vnc/new_mod_vnc.cpp:22: In file included from src/mod/vnc/vnc.hpp:32: src/core/RDP/clipboard.hpp:1112:65: error: no matching function for call to 'UTF16toUTF8' const size_t size_of_formatName_UTF8_data = ::UTF16toUTF8( ^~~~~~~~~~~~~ src/utils/utf.hpp:94:13: note: candidate function not viable: 3rd argument ('const uint8_t *' (aka 'const unsigned char *')) would lose const qualifier std::size_t UTF16toUTF8(const uint8_t * utf16_source, std::size_t utf16_len, uint8_t * utf8_target, std::size_t target_len) noexcept; ^ src/utils/utf.hpp:98:13: note: candidate function not viable: no known conversion from 'const uint8_t *' (aka 'const unsigned char *') to 'const uint16_t *' (aka 'const unsigned short *') for 1st argument std::size_t UTF16toUTF8(const uint16_t * utf16_source, std::size_t utf16_len, uint8_t * utf8_target, std::size_t target_len) noexcept; ^ In file included from src/mod/vnc/new_mod_vnc.cpp:22: In file included from src/mod/vnc/vnc.hpp:39: src/core/session_reactor.hpp:1941:28: warning: parameter 'p' shadows member inherited from type 'SharedPtr' [-Wshadow-field] TopSharedPtr(Data* p = nullptr) noexcept ^ src/core/session_reactor.hpp:1817:25: note: declared here SharedDataBase* p; ^ src/core/session_reactor.hpp:1979:40: warning: parameter 'p' shadows member inherited from type 'SharedPtr' [-Wshadow-field] TimerSharedPtr(SharedDataBase* p = nullptr) noexcept ^ src/core/session_reactor.hpp:1817:25: note: declared here SharedDataBase* p; ^ In file included from src/mod/vnc/new_mod_vnc.cpp:22: In file included from src/mod/vnc/vnc.hpp:54: src/utils/sugar/numerics/safe_conversions.hpp:152:65: error: no template named 'is_enum_v' in namespace 'std'; did you mean 'is_enum'? struct underlying_type_or_integral>> ~~~~~^~~~~~~~~ is_enum /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:434:12: note: 'is_enum' declared here struct is_enum ^ In file included from src/mod/vnc/new_mod_vnc.cpp:22: In file included from src/mod/vnc/vnc.hpp:54: src/utils/sugar/numerics/safe_conversions.hpp:152:60: error: template argument for non-type template parameter must be an expression struct underlying_type_or_integral>> ^~~~~~~~~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:2522:17: note: template parameter is declared here template ^ In file included from src/mod/vnc/new_mod_vnc.cpp:22: In file included from src/mod/vnc/vnc.hpp:60: In file included from src/mod/vnc/encoder/copyrect.hpp:25: src/mod/vnc/encoder/encoder_api.hpp:56:69: error: no template named 'is_same_v' in namespace 'std'; did you mean 'is_same'? template>> ~~~~~^~~~~~~~~ is_same /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:1517:12: note: 'is_same' declared here struct is_same ^ In file included from src/mod/vnc/new_mod_vnc.cpp:22: In file included from src/mod/vnc/vnc.hpp:60: In file included from src/mod/vnc/encoder/copyrect.hpp:25: src/mod/vnc/encoder/encoder_api.hpp:56:97: error: expected '(' for function-style cast or type construction template>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ :78:1: note: expanded from here > ^ In file included from src/mod/vnc/new_mod_vnc.cpp:22: src/mod/vnc/vnc.hpp:763:26: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] vnc.bpp = safe_int(stream.in_uint8()); ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ In file included from src/mod/vnc/new_mod_vnc.cpp:22: In file included from src/mod/vnc/vnc.hpp:39: src/core/session_reactor.hpp:1941:28: warning: parameter 'p' shadows member inherited from type 'SharedPtr' [-Wshadow-field] TopSharedPtr(Data* p = nullptr) noexcept ^ src/mod/vnc/vnc.hpp:232:5: note: in instantiation of member function 'jln::TopSharedPtr::TopSharedPtr' requested here mod_vnc( Transport & t ^ src/core/session_reactor.hpp:1817:25: note: declared here SharedDataBase* p; ^ In file included from src/mod/vnc/new_mod_vnc.cpp:22: In file included from src/mod/vnc/vnc.hpp:54: src/utils/sugar/numerics/safe_conversions.hpp:269:5: error: static_assert failed due to requirement 'integral_constant::value' "Unsafe conversion." static_assert(is_safe_convertible::value, "Unsafe conversion."); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/utils/sugar/numerics/safe_conversions.hpp:119:43: note: in instantiation of function template specialization 'safe_cast' requested here operator U () const noexcept { return safe_cast(i); } ^ src/mod/vnc/vnc.hpp:763:26: note: in instantiation of function template specialization 'safe_int::operator BitsPerPixel' requested here vnc.bpp = safe_int(stream.in_uint8()); ^ src/mod/vnc/vnc.hpp:216:10: warning: private field 'remove_server_alt_state_for_char' is not used [-Wunused-private-field] bool remove_server_alt_state_for_char; ^ 6 warnings and 7 errors generated. "clang++" -c -x c++ -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -O3 -Wno-inline -Wall -fPIC -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fno-rtti -msse3 -pedantic -std=c++17 -DNDEBUG -DZLIB_CONST -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I"include" -I"modules/includes" -I"modules/ppocr/includes/mln" -I"modules/ppocr/src" -I"projects/ocr1/include" -I"projects/redemption_configs/autogen/include" -I"projects/redemption_configs/redemption_src" -I"src" -I"src/system/linux" -o "bin/clang-linux-9.0.0/release/src/mod/vnc/new_mod_vnc.o" "src/mod/vnc/new_mod_vnc.cpp" ...failed clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/mod/vnc/new_mod_vnc.o... ...skipped rdpclient for lack of src/main/rdp_client.o... clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/lib/do_recorder.cpp.lib.o In file included from src/lib/do_recorder.cpp:14: In file included from src/capture/file_to_graphic.hpp:24: In file included from src/capture/wrm_meta_chunk.hpp:27: src/utils/sugar/numerics/safe_conversions.hpp:152:65: error: no template named 'is_enum_v' in namespace 'std'; did you mean 'is_enum'? struct underlying_type_or_integral>> ~~~~~^~~~~~~~~ is_enum /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:434:12: note: 'is_enum' declared here struct is_enum ^ In file included from src/lib/do_recorder.cpp:14: In file included from src/capture/file_to_graphic.hpp:24: In file included from src/capture/wrm_meta_chunk.hpp:27: src/utils/sugar/numerics/safe_conversions.hpp:152:60: error: template argument for non-type template parameter must be an expression struct underlying_type_or_integral>> ^~~~~~~~~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/type_traits:2522:17: note: template parameter is declared here template ^ In file included from src/lib/do_recorder.cpp:14: In file included from src/capture/file_to_graphic.hpp:24: src/capture/wrm_meta_chunk.hpp:34:26: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] header.out_uint16_le(safe_int(chunktype)); ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ In file included from src/lib/do_recorder.cpp:14: In file included from src/capture/file_to_graphic.hpp:24: src/capture/wrm_meta_chunk.hpp:80:31: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] payload.out_uint16_le(safe_int(WrmChunkType::META_FILE)); ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ In file included from src/lib/do_recorder.cpp:14: In file included from src/capture/file_to_graphic.hpp:24: src/capture/wrm_meta_chunk.hpp:88:31: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] payload.out_uint16_le(safe_int(this->bpp)); ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ In file included from src/lib/do_recorder.cpp:14: In file included from src/capture/file_to_graphic.hpp:24: src/capture/wrm_meta_chunk.hpp:132:42: warning: 'checked_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] this->bpp = checked_int(stream.in_uint16_le()); ^ src/utils/sugar/numerics/safe_conversions.hpp:51:8: note: add a deduction guide to suppress this warning struct checked_int ^ In file included from src/lib/do_recorder.cpp:14: In file included from src/capture/file_to_graphic.hpp:25: In file included from src/core/RDP/caches/glyphcache.hpp:26: src/core/RDP/capabilities/cap_glyphcache.hpp:200:43: warning: parameter 'len' shadows member inherited from type 'Capability' [-Wshadow-field] void recv(InStream & stream, uint16_t len) ^ src/core/RDP/capabilities/common.hpp:246:14: note: declared here uint16_t len; ^ In file included from src/lib/do_recorder.cpp:14: In file included from src/capture/file_to_graphic.hpp:24: In file included from src/capture/wrm_meta_chunk.hpp:27: src/utils/sugar/numerics/safe_conversions.hpp:269:5: error: static_assert failed due to requirement 'integral_constant::value' "Unsafe conversion." static_assert(is_safe_convertible::value, "Unsafe conversion."); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/lib/do_recorder.cpp:336:37: note: in instantiation of function template specialization 'safe_cast' requested here this->chunk_type = safe_cast(header.in_uint16_le()); ^ src/lib/do_recorder.cpp:874:6: warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt] }; ^ src/lib/do_recorder.cpp:900:6: warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt] }; ^ src/lib/do_recorder.cpp:1361:6: warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt] }; ^ src/lib/do_recorder.cpp:1443:43: warning: 'safe_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] wrm_color_depth = safe_int(player.info.bpp); ^ src/utils/sugar/numerics/safe_conversions.hpp:105:8: note: add a deduction guide to suppress this warning struct safe_int ^ src/lib/do_recorder.cpp:1567:29: warning: 'checked_int' may not intend to support class template argument deduction [-Wctad-maybe-unsupported] checked_int(wrm_color_depth), ^ src/utils/sugar/numerics/safe_conversions.hpp:51:8: note: add a deduction guide to suppress this warning struct checked_int ^ In file included from src/lib/do_recorder.cpp:51: In file included from src/utils/sugar/scope_exit.hpp:24: src/utils/sugar/finally.hpp:38:12: warning: aggregate initialization of type 'basic_finally<(lambda at src/lib/do_recorder.cpp:131:5)>' with user-declared constructors is incompatible with C++2a [-Wc++2a-compat] return {static_cast(f)}; ^~~~~~~~~~~~~~~~~~~~~ src/lib/do_recorder.cpp:131:5: note: in instantiation of function template specialization 'finally<(lambda at src/lib/do_recorder.cpp:131:5)>' requested here SCOPE_EXIT(closedir(d)); ^ src/utils/sugar/scope_exit.hpp:30:9: note: expanded from macro 'SCOPE_EXIT' = ::finally([&]{ __VA_ARGS__; }) ^ 11 warnings and 3 errors generated. "clang++" -c -x c++ -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fPIC -fno-rtti -fvisibility=hidden -msse3 -pedantic -std=c++17 -O3 -Wno-inline -Wall -fPIC -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-covered-switch-default -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-exit-time-destructors -Wno-global-constructors -Wno-inconsistent-missing-destructor-override -Wno-mismatched-tags -Wno-overlength-strings -Wno-padded -Wno-shadow -Wno-sign-conversion -Wno-switch-default -Wno-switch-enum -Wno-weak-vtables -fPIC -fno-rtti -fvisibility=hidden -msse3 -pedantic -std=c++17 -DNDEBUG -DZLIB_CONST -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I"include" -I"modules/includes" -I"modules/ppocr/includes/mln" -I"modules/ppocr/src" -I"projects/ocr1/include" -I"projects/redemption_configs/autogen/include" -I"projects/redemption_configs/redemption_src" -I"src" -I"src/system/linux" -o "bin/clang-linux-9.0.0/release/src/lib/do_recorder.cpp.lib.o" "src/lib/do_recorder.cpp" ...failed clang-linux.compile.c++.without-pth bin/clang-linux-9.0.0/release/src/lib/do_recorder.cpp.lib.o... ...skipped libredrec.so for lack of src/lib/do_recorder.cpp.lib.o... ...failed updating 31 targets... ...skipped 3 targets...