Skip to content

Version 0.38.1 compiles incorrectly under Windows #55

@jimwang118

Description

@jimwang118

Steps to reproduce:

  1. git vcpkg
  2. Replace the version in vcpkg under tinyorm with 0.38.1.
  3. ./vcpkg install tinyorm

Error:

C:\PROGRA~1\MICROS~4\2022\ENTERP~1\VC\Tools\MSVC\1438~1.331\bin\Hostx64\x64\cl.exe   /TP -DNOMINMAX -DNTDDI_VERSION=NTDDI_WIN10_NI -DPROJECT_TINYORM -DQT_CORE_LIB -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_KEYWORDS -DQT_SQL_LIB -DQT_STRICT_ITERATORS -DTINYORM_BUILDING_SHARED -DTINYORM_DEBUG -DTINYORM_DEBUG_SQL -DTINYORM_EXTERN_CONSTANTS -DTINYORM_LTO=tinyHasLTO-NOTFOUND -DTINYORM_MSVC_RUNTIME_DYNAMIC=MSVC_RUNTIME_DYNAMIC-NOTFOUND -DTINYORM_PRAGMA_SYSTEM_HEADER_OFF -DTINYORM_STRICT_MODE=OFF -DTINYORM_USING_PCH -DTINYORM_USING_QTSQLDRIVERS -DTINYTOM_CMAKE_MSVC_RUNTIME_LIBRARY=MultiThreadedDebugDLL -DTINYTOM_DEBUG -DTinyOrm_EXPORTS -DUNICODE -DWIN32 -DWIN32_LEAN_AND_MEAN -DWIN64 -DWINVER=_WIN32_WINNT_WIN10 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_SILENCE_STDEXT_ARR_ITERS_DEPRECATION_WARNING -D_UNICODE -D_WIN32_IE=_WIN32_IE_IE110 -D_WIN32_WINNT=_WIN32_WINNT_WIN10 -D_WIN64 -IF:\vcpkg\buildtrees\tinyorm\src\v0.38.1-ac7e6386e6.clean\include -IF:\vcpkg\buildtrees\tinyorm\src\v0.38.1-ac7e6386e6.clean\tom\include -external:IF:\vcpkg\installed\x64-windows\include\Qt6\QtCore -external:IF:\vcpkg\installed\x64-windows\include\Qt6 -external:IF:\vcpkg\installed\x64-windows\share\Qt6\mkspecs\win32-msvc -external:IF:\vcpkg\installed\x64-windows\include -external:IF:\vcpkg\installed\x64-windows\include\Qt6\QtSql -external:W0 /nologo /DWIN32 /D_WINDOWS /utf-8 /GR /EHsc /MP  /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  -std:c++20 -MDd -Zc:__cplusplus -permissive- -utf-8 /permissive- /nologo /EHsc /utf-8 /Zc:__cplusplus /Zc:strictStrings /guard:cf /bigobj /Zc:wchar_t,rvalueCast,inline /Zc:throwingNew,referenceBinding,ternary /Zc:preprocessor /external:anglebrackets /external:W0 /wd4702 /YuF:/vcpkg/buildtrees/tinyorm/x64-windows-dbg/CMakeFiles/TinyOrm.dir/cmake_pch.hxx /FpF:/vcpkg/buildtrees/tinyorm/x64-windows-dbg/CMakeFiles/TinyOrm.dir/./cmake_pch.cxx.pch /FIF:/vcpkg/buildtrees/tinyorm/x64-windows-dbg/CMakeFiles/TinyOrm.dir/cmake_pch.hxx /showIncludes /FoCMakeFiles\TinyOrm.dir\src\orm\basegrammar.cpp.obj /FdCMakeFiles\TinyOrm.dir\ /FS -c F:\vcpkg\buildtrees\tinyorm\src\v0.38.1-ac7e6386e6.clean\src\orm\basegrammar.cpp
F:\vcpkg\buildtrees\tinyorm\src\v0.38.1-ac7e6386e6.clean\include\orm/utils/integralcast.hpp(58): error C2338: static_assert failed: 'Unhandled code branch in the Private::IntegralTypeName<T>() (long).'
F:\vcpkg\buildtrees\tinyorm\src\v0.38.1-ac7e6386e6.clean\include\orm/utils/integralcast.hpp(80): error C2338: static_assert failed: 'Unhandled code branch in the Private::IntegralTypeName<T>() (ulong).'
F:\vcpkg\buildtrees\tinyorm\src\v0.38.1-ac7e6386e6.clean\include\orm/utils/integralcast.hpp(108): error C2338: static_assert failed: 'Unhandled code branch in the Private::IntegralTypeName<T>().'
F:\vcpkg\buildtrees\tinyorm\src\v0.38.1-ac7e6386e6.clean\include\orm/utils/integralcast.hpp(237): error C2338: static_assert failed: 'Unhandled code branch in the Private::InRange<T, V>().'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingc++C++ code relatedinvestigateNeeds investigationvcpkgVcpkg port

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions