mosra / magnum

Lightweight and modular C++11 graphics middleware for games and data visualization
https://magnum.graphics/
Other
4.82k stars 439 forks source link

src/Magnum/Vk/Enums.cpp:42:5: error: integer value 4294967295 is outside the valid range of values [0, 15] for this enumeration type [-Wenum-constexpr-conversion] #642

Closed autoantwort closed 4 months ago

autoantwort commented 4 months ago

Happens with the latest release (2020.06)

autoantwort commented 4 months ago

Package: magnum[core,vk]:arm64-osx -> 2020.06#18

Host Environment

To Reproduce

vcpkg x-set-installed --enforce-port-checks --allow-unsupported magnum[core,vk] Failure logs

-- Using cached mosra-magnum-v2020.06.tar.gz.
-- Extracting source /Users/leanderSchulten/git_projekte/vcpkg/downloads/mosra-magnum-v2020.06.tar.gz
-- Applying patch 002-sdl-includes.patch
-- Applying patch 003-fix-FindGLFW.patch
-- Applying patch 004-fix-FindOpenAL.patch
-- Applying patch 005-fix-find-sdl2.patch
-- Using source at /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean
-- Found external ninja('1.12.1').
-- Configuring arm64-osx
-- Building arm64-osx-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: /Users/leanderSchulten/git_projekte/vcpkg/downloads/tools/cmake-3.29.2-osx/cmake-3.29.2-macos-universal/CMake.app/Contents/bin/cmake --build . --config Debug --target install -- -v -j11
    Working Directory: /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/arm64-osx-dbg
    See logs for more information:
      /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/install-arm64-osx-dbg-out.log

Call Stack (most recent call first):
  vcpkg_installed/arm64-osx/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
  vcpkg_installed/arm64-osx/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
  ports/magnum/portfile.cmake:59 (vcpkg_cmake_install)
  scripts/ports.cmake:192 (include)
/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/install-arm64-osx-dbg-out.log ``` Change Dir: '/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/arm64-osx-dbg' Run Build Command(s): /opt/homebrew/bin/ninja -v -v -j11 install [1/24] ccache /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DCORRADE_IS_DEBUG_BUILD -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/arm64-osx-dbg/src -I/Users/leanderSchulten/git_projekte/vcpkg/vcpkg_installed/arm64-osx/include -fPIC -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk -fPIC -std=c++11 -Wall -Wextra -Wold-style-cast -Winit-self -Werror=return-type -Wmissing-declarations -Wpedantic -fvisibility=hidden -fvisibility-inlines-hidden -Wmissing-prototypes -Wno-shorten-64-to-32 -MD -MT src/Magnum/CMakeFiles/MagnumMathObjects.dir/Math/Packing.cpp.o -MF src/Magnum/CMakeFiles/MagnumMathObjects.dir/Math/Packing.cpp.o.d -o src/Magnum/CMakeFiles/MagnumMathObjects.dir/Math/Packing.cpp.o -c /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Math/Packing.cpp [2/24] ccache /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DCORRADE_IS_DEBUG_BUILD -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/arm64-osx-dbg/src -I/Users/leanderSchulten/git_projekte/vcpkg/vcpkg_installed/arm64-osx/include -fPIC -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk -fPIC -std=c++11 -Wall -Wextra -Wold-style-cast -Winit-self -Werror=return-type -Wmissing-declarations -Wpedantic -fvisibility=hidden -fvisibility-inlines-hidden -Wmissing-prototypes -Wno-shorten-64-to-32 -MD -MT src/Magnum/CMakeFiles/MagnumObjects.dir/FileCallback.cpp.o -MF src/Magnum/CMakeFiles/MagnumObjects.dir/FileCallback.cpp.o.d -o src/Magnum/CMakeFiles/MagnumObjects.dir/FileCallback.cpp.o -c /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/FileCallback.cpp [3/24] ccache /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DCORRADE_IS_DEBUG_BUILD -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/arm64-osx-dbg/src -I/Users/leanderSchulten/git_projekte/vcpkg/vcpkg_installed/arm64-osx/include -fPIC -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk -fPIC -std=c++11 -Wall -Wextra -Wold-style-cast -Winit-self -Werror=return-type -Wmissing-declarations -Wpedantic -fvisibility=hidden -fvisibility-inlines-hidden -Wmissing-prototypes -Wno-shorten-64-to-32 -MD -MT src/Magnum/CMakeFiles/MagnumObjects.dir/Sampler.cpp.o -MF src/Magnum/CMakeFiles/MagnumObjects.dir/Sampler.cpp.o.d -o src/Magnum/CMakeFiles/MagnumObjects.dir/Sampler.cpp.o -c /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Sampler.cpp [4/24] ccache /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DCORRADE_IS_DEBUG_BUILD -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/arm64-osx-dbg/src -I/Users/leanderSchulten/git_projekte/vcpkg/vcpkg_installed/arm64-osx/include -fPIC -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk -fPIC -std=c++11 -Wall -Wextra -Wold-style-cast -Winit-self -Werror=return-type -Wmissing-declarations -Wpedantic -fvisibility=hidden -fvisibility-inlines-hidden -Wmissing-prototypes -Wno-shorten-64-to-32 -MD -MT src/Magnum/CMakeFiles/MagnumMathObjects.dir/Math/Functions.cpp.o -MF src/Magnum/CMakeFiles/MagnumMathObjects.dir/Math/Functions.cpp.o.d -o src/Magnum/CMakeFiles/MagnumMathObjects.dir/Math/Functions.cpp.o -c /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Math/Functions.cpp [5/24] ccache /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DCORRADE_IS_DEBUG_BUILD -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/arm64-osx-dbg/src -I/Users/leanderSchulten/git_projekte/vcpkg/vcpkg_installed/arm64-osx/include -fPIC -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk -fPIC -std=c++11 -Wall -Wextra -Wold-style-cast -Winit-self -Werror=return-type -Wmissing-declarations -Wpedantic -fvisibility=hidden -fvisibility-inlines-hidden -Wmissing-prototypes -Wno-shorten-64-to-32 -MD -MT src/Magnum/CMakeFiles/MagnumObjects.dir/PixelStorage.cpp.o -MF src/Magnum/CMakeFiles/MagnumObjects.dir/PixelStorage.cpp.o.d -o src/Magnum/CMakeFiles/MagnumObjects.dir/PixelStorage.cpp.o -c /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/PixelStorage.cpp In file included from /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/PixelStorage.cpp:26: In file included from /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/PixelStorage.h:36: In file included from /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Math/Vector3.h:32: In file included from /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Math/Vector2.h:32: /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Math/Vector.h:230:32: warning: definition of implicit copy assignment operator for 'Vector<3, int>' is deprecated because it has a user-declared copy constructor [-Wdeprecated-copy] constexpr /*implicit*/ Vector(const Vector&) noexcept = default; ^ /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Math/Vector3.h:64:25: note: in implicit copy assignment operator for 'Magnum::Math::Vector<3, int>' first required here template class Vector3: public Vector<3, T> { ^ /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/PixelStorage.h:119:19: note: in implicit copy assignment operator for 'Magnum::Math::Vector3' first required here _skip = skip; ^ 1 warning generated. [6/24] ccache /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DCORRADE_IS_DEBUG_BUILD -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/arm64-osx-dbg/src -isystem /Users/leanderSchulten/git_projekte/vcpkg/vcpkg_installed/arm64-osx/include -fPIC -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk -fPIC -std=c++11 -Wall -Wextra -Wold-style-cast -Winit-self -Werror=return-type -Wmissing-declarations -Wpedantic -fvisibility=hidden -fvisibility-inlines-hidden -Wmissing-prototypes -Wno-shorten-64-to-32 -MD -MT src/Magnum/CMakeFiles/Magnum.dir/Math/PackingBatch.cpp.o -MF src/Magnum/CMakeFiles/Magnum.dir/Math/PackingBatch.cpp.o.d -o src/Magnum/CMakeFiles/Magnum.dir/Math/PackingBatch.cpp.o -c /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Math/PackingBatch.cpp [7/24] ccache /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DCORRADE_IS_DEBUG_BUILD -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/arm64-osx-dbg/src -I/Users/leanderSchulten/git_projekte/vcpkg/vcpkg_installed/arm64-osx/include -fPIC -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk -fPIC -std=c++11 -Wall -Wextra -Wold-style-cast -Winit-self -Werror=return-type -Wmissing-declarations -Wpedantic -fvisibility=hidden -fvisibility-inlines-hidden -Wmissing-prototypes -Wno-shorten-64-to-32 -MD -MT src/Magnum/CMakeFiles/MagnumObjects.dir/Timeline.cpp.o -MF src/Magnum/CMakeFiles/MagnumObjects.dir/Timeline.cpp.o.d -o src/Magnum/CMakeFiles/MagnumObjects.dir/Timeline.cpp.o -c /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Timeline.cpp [8/24] ccache /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DCORRADE_IS_DEBUG_BUILD -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/arm64-osx-dbg/src -isystem /Users/leanderSchulten/git_projekte/vcpkg/vcpkg_installed/arm64-osx/include -fPIC -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk -fPIC -std=c++11 -Wall -Wextra -Wold-style-cast -Winit-self -Werror=return-type -Wmissing-declarations -Wpedantic -fvisibility=hidden -fvisibility-inlines-hidden -Wmissing-prototypes -Wno-shorten-64-to-32 -MD -MT src/Magnum/CMakeFiles/Magnum.dir/ImageView.cpp.o -MF src/Magnum/CMakeFiles/Magnum.dir/ImageView.cpp.o.d -o src/Magnum/CMakeFiles/Magnum.dir/ImageView.cpp.o -c /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/ImageView.cpp In file included from /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/ImageView.cpp:26: In file included from /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/ImageView.h:35: In file included from /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/PixelStorage.h:36: In file included from /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Math/Vector3.h:32: In file included from /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Math/Vector2.h:32: /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Math/Vector.h:230:32: warning: definition of implicit copy assignment operator for 'Vector<3, int>' is deprecated because it has a user-declared copy constructor [-Wdeprecated-copy] constexpr /*implicit*/ Vector(const Vector&) noexcept = default; ^ /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Math/Vector3.h:64:25: note: in implicit copy assignment operator for 'Magnum::Math::Vector<3, int>' first required here template class Vector3: public Vector<3, T> { ^ /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/PixelStorage.h:119:19: note: in implicit copy assignment operator for 'Magnum::Math::Vector3' first required here _skip = skip; ^ 1 warning generated. [9/24] ccache /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DCORRADE_IS_DEBUG_BUILD -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/arm64-osx-dbg/src -isystem /Users/leanderSchulten/git_projekte/vcpkg/vcpkg_installed/arm64-osx/include -fPIC -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk -fPIC -std=c++11 -Wall -Wextra -Wold-style-cast -Winit-self -Werror=return-type -Wmissing-declarations -Wpedantic -fvisibility=hidden -fvisibility-inlines-hidden -Wmissing-prototypes -Wno-shorten-64-to-32 -MD -MT src/Magnum/CMakeFiles/Magnum.dir/Image.cpp.o -MF src/Magnum/CMakeFiles/Magnum.dir/Image.cpp.o.d -o src/Magnum/CMakeFiles/Magnum.dir/Image.cpp.o -c /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Image.cpp In file included from /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Image.cpp:26: In file included from /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Image.h:35: In file included from /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/PixelStorage.h:36: In file included from /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Math/Vector3.h:32: In file included from /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Math/Vector2.h:32: /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Math/Vector.h:230:32: warning: definition of implicit copy assignment operator for 'Vector<3, int>' is deprecated because it has a user-declared copy constructor [-Wdeprecated-copy] constexpr /*implicit*/ Vector(const Vector&) noexcept = default; ^ /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Math/Vector3.h:64:25: note: in implicit copy assignment operator for 'Magnum::Math::Vector<3, int>' first required here template class Vector3: public Vector<3, T> { ^ /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/PixelStorage.h:119:19: note: in implicit copy assignment operator for 'Magnum::Math::Vector3' first required here _skip = skip; ^ In file included from /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Image.cpp:26: In file included from /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Image.h:35: In file included from /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/PixelStorage.h:36: In file included from /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Math/Vector3.h:32: In file included from /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Math/Vector2.h:32: /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Math/Vector.h:230:32: warning: definition of implicit copy assignment operator for 'Vector<1, int>' is deprecated because it has a user-declared copy constructor [-Wdeprecated-copy] constexpr /*implicit*/ Vector(const Vector&) noexcept = default; ^ /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Image.cpp:49:17: note: in implicit copy assignment operator for 'Magnum::Math::Vector<1, int>' first required here other._size = {}; ^ /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Image.cpp:128:30: note: in instantiation of member function 'Magnum::Image<1>::Image' requested here template class MAGNUM_EXPORT Image<1>; ^ In file included from /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Image.cpp:26: In file included from /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Image.h:35: In file included from /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/PixelStorage.h:36: In file included from /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Math/Vector3.h:32: In file included from /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Math/Vector2.h:32: /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Math/Vector.h:230:32: warning: definition of implicit copy assignment operator for 'Vector<2, int>' is deprecated because it has a user-declared copy constructor [-Wdeprecated-copy] constexpr /*implicit*/ Vector(const Vector&) noexcept = default; ^ /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Image.cpp:49:17: note: in implicit copy assignment operator for 'Magnum::Math::Vector<2, int>' first required here other._size = {}; ^ /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Image.cpp:129:30: note: in instantiation of member function 'Magnum::Image<2>::Image' requested here template class MAGNUM_EXPORT Image<2>; ^ 3 warnings generated. [10/24] ccache /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DCORRADE_IS_DEBUG_BUILD -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/arm64-osx-dbg/src -I/Users/leanderSchulten/git_projekte/vcpkg/vcpkg_installed/arm64-osx/include -fPIC -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk -fPIC -std=c++11 -Wall -Wextra -Wold-style-cast -Winit-self -Werror=return-type -Wmissing-declarations -Wpedantic -fvisibility=hidden -fvisibility-inlines-hidden -Wmissing-prototypes -Wno-shorten-64-to-32 -MD -MT src/Magnum/CMakeFiles/MagnumObjects.dir/Resource.cpp.o -MF src/Magnum/CMakeFiles/MagnumObjects.dir/Resource.cpp.o.d -o src/Magnum/CMakeFiles/MagnumObjects.dir/Resource.cpp.o -c /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Resource.cpp [11/24] ccache /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DCORRADE_IS_DEBUG_BUILD -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/arm64-osx-dbg/src -I/Users/leanderSchulten/git_projekte/vcpkg/vcpkg_installed/arm64-osx/include -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/MagnumExternal/Vulkan -fPIC -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk -fPIC -std=c++11 -Wall -Wextra -Wold-style-cast -Winit-self -Werror=return-type -Wmissing-declarations -Wpedantic -fvisibility=hidden -fvisibility-inlines-hidden -Wmissing-prototypes -Wno-shorten-64-to-32 -MD -MT src/MagnumExternal/Vulkan/CMakeFiles/MagnumFlextVkObjects.dir/flextVk.cpp.o -MF src/MagnumExternal/Vulkan/CMakeFiles/MagnumFlextVkObjects.dir/flextVk.cpp.o.d -o src/MagnumExternal/Vulkan/CMakeFiles/MagnumFlextVkObjects.dir/flextVk.cpp.o -c /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/MagnumExternal/Vulkan/flextVk.cpp [12/24] ccache /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DCORRADE_IS_DEBUG_BUILD -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/arm64-osx-dbg/src -I/Users/leanderSchulten/git_projekte/vcpkg/vcpkg_installed/arm64-osx/include -fPIC -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk -fPIC -std=c++11 -Wall -Wextra -Wold-style-cast -Winit-self -Werror=return-type -Wmissing-declarations -Wpedantic -fvisibility=hidden -fvisibility-inlines-hidden -Wmissing-prototypes -Wno-shorten-64-to-32 -MD -MT src/Magnum/CMakeFiles/MagnumMathObjects.dir/Math/Angle.cpp.o -MF src/Magnum/CMakeFiles/MagnumMathObjects.dir/Math/Angle.cpp.o.d -o src/Magnum/CMakeFiles/MagnumMathObjects.dir/Math/Angle.cpp.o -c /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Math/Angle.cpp [13/24] ccache /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DCORRADE_IS_DEBUG_BUILD -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/arm64-osx-dbg/src -I/Users/leanderSchulten/git_projekte/vcpkg/vcpkg_installed/arm64-osx/include -fPIC -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk -fPIC -std=c++11 -Wall -Wextra -Wold-style-cast -Winit-self -Werror=return-type -Wmissing-declarations -Wpedantic -fvisibility=hidden -fvisibility-inlines-hidden -Wmissing-prototypes -Wno-shorten-64-to-32 -MD -MT src/Magnum/CMakeFiles/MagnumMathObjects.dir/Math/Half.cpp.o -MF src/Magnum/CMakeFiles/MagnumMathObjects.dir/Math/Half.cpp.o.d -o src/Magnum/CMakeFiles/MagnumMathObjects.dir/Math/Half.cpp.o -c /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Math/Half.cpp [14/24] ccache /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DCORRADE_IS_DEBUG_BUILD -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/arm64-osx-dbg/src -isystem /Users/leanderSchulten/git_projekte/vcpkg/vcpkg_installed/arm64-osx/include -fPIC -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk -fPIC -std=c++11 -Wall -Wextra -Wold-style-cast -Winit-self -Werror=return-type -Wmissing-declarations -Wpedantic -fvisibility=hidden -fvisibility-inlines-hidden -Wmissing-prototypes -Wno-shorten-64-to-32 -MD -MT src/Magnum/CMakeFiles/Magnum.dir/Mesh.cpp.o -MF src/Magnum/CMakeFiles/Magnum.dir/Mesh.cpp.o.d -o src/Magnum/CMakeFiles/Magnum.dir/Mesh.cpp.o -c /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Mesh.cpp [15/24] ccache /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DCORRADE_IS_DEBUG_BUILD -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/arm64-osx-dbg/src -isystem /Users/leanderSchulten/git_projekte/vcpkg/vcpkg_installed/arm64-osx/include -isystem /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/MagnumExternal/Vulkan -fPIC -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk -fPIC -std=c++11 -Wall -Wextra -Wold-style-cast -Winit-self -Werror=return-type -Wmissing-declarations -Wpedantic -fvisibility=hidden -fvisibility-inlines-hidden -Wmissing-prototypes -Wno-shorten-64-to-32 -MD -MT src/Magnum/Vk/CMakeFiles/MagnumVk.dir/Enums.cpp.o -MF src/Magnum/Vk/CMakeFiles/MagnumVk.dir/Enums.cpp.o.d -o src/Magnum/Vk/CMakeFiles/MagnumVk.dir/Enums.cpp.o -c /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Vk/Enums.cpp FAILED: src/Magnum/Vk/CMakeFiles/MagnumVk.dir/Enums.cpp.o ccache /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DCORRADE_IS_DEBUG_BUILD -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/arm64-osx-dbg/src -isystem /Users/leanderSchulten/git_projekte/vcpkg/vcpkg_installed/arm64-osx/include -isystem /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/MagnumExternal/Vulkan -fPIC -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk -fPIC -std=c++11 -Wall -Wextra -Wold-style-cast -Winit-self -Werror=return-type -Wmissing-declarations -Wpedantic -fvisibility=hidden -fvisibility-inlines-hidden -Wmissing-prototypes -Wno-shorten-64-to-32 -MD -MT src/Magnum/Vk/CMakeFiles/MagnumVk.dir/Enums.cpp.o -MF src/Magnum/Vk/CMakeFiles/MagnumVk.dir/Enums.cpp.o.d -o src/Magnum/Vk/CMakeFiles/MagnumVk.dir/Enums.cpp.o -c /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Vk/Enums.cpp /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Vk/Enums.cpp:42:5: error: integer value 4294967295 is outside the valid range of values [0, 15] for this enumeration type [-Wenum-constexpr-conversion] VkPrimitiveTopology(~UnsignedInt{}), ^ /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Vk/Enums.cpp:47:5: error: integer value 4294967295 is outside the valid range of values [0, 15] for this enumeration type [-Wenum-constexpr-conversion] VkPrimitiveTopology(~UnsignedInt{}), /* Instances */ ^ /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Vk/Enums.cpp:48:5: error: integer value 4294967295 is outside the valid range of values [0, 15] for this enumeration type [-Wenum-constexpr-conversion] VkPrimitiveTopology(~UnsignedInt{}), /* Faces */ ^ /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Vk/Enums.cpp:49:5: error: integer value 4294967295 is outside the valid range of values [0, 15] for this enumeration type [-Wenum-constexpr-conversion] VkPrimitiveTopology(~UnsignedInt{}) /* Edges */ ^ /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Vk/Enums.cpp:102:5: error: integer value 4294967295 is outside the valid range of values [0, 7] for this enumeration type [-Wenum-constexpr-conversion] VkSamplerAddressMode(~UnsignedInt{}), ^ 5 errors generated. [16/24] ccache /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DCORRADE_IS_DEBUG_BUILD -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/arm64-osx-dbg/src -isystem /Users/leanderSchulten/git_projekte/vcpkg/vcpkg_installed/arm64-osx/include -fPIC -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk -fPIC -std=c++11 -Wall -Wextra -Wold-style-cast -Winit-self -Werror=return-type -Wmissing-declarations -Wpedantic -fvisibility=hidden -fvisibility-inlines-hidden -Wmissing-prototypes -Wno-shorten-64-to-32 -MD -MT src/Magnum/CMakeFiles/Magnum.dir/PixelFormat.cpp.o -MF src/Magnum/CMakeFiles/Magnum.dir/PixelFormat.cpp.o.d -o src/Magnum/CMakeFiles/Magnum.dir/PixelFormat.cpp.o -c /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/PixelFormat.cpp [17/24] ccache /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DCORRADE_IS_DEBUG_BUILD -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/arm64-osx-dbg/src -I/Users/leanderSchulten/git_projekte/vcpkg/vcpkg_installed/arm64-osx/include -fPIC -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk -fPIC -std=c++11 -Wall -Wextra -Wold-style-cast -Winit-self -Werror=return-type -Wmissing-declarations -Wpedantic -fvisibility=hidden -fvisibility-inlines-hidden -Wmissing-prototypes -Wno-shorten-64-to-32 -MD -MT src/Magnum/CMakeFiles/MagnumMathObjects.dir/Math/Color.cpp.o -MF src/Magnum/CMakeFiles/MagnumMathObjects.dir/Math/Color.cpp.o.d -o src/Magnum/CMakeFiles/MagnumMathObjects.dir/Math/Color.cpp.o -c /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Math/Color.cpp [18/24] ccache /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DCORRADE_IS_DEBUG_BUILD -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/arm64-osx-dbg/src -I/Users/leanderSchulten/git_projekte/vcpkg/vcpkg_installed/arm64-osx/include -fPIC -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk -fPIC -std=c++11 -Wall -Wextra -Wold-style-cast -Winit-self -Werror=return-type -Wmissing-declarations -Wpedantic -fvisibility=hidden -fvisibility-inlines-hidden -Wmissing-prototypes -Wno-shorten-64-to-32 -MD -MT src/Magnum/CMakeFiles/MagnumMathObjects.dir/Math/instantiation.cpp.o -MF src/Magnum/CMakeFiles/MagnumMathObjects.dir/Math/instantiation.cpp.o.d -o src/Magnum/CMakeFiles/MagnumMathObjects.dir/Math/instantiation.cpp.o -c /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Math/instantiation.cpp [19/24] ccache /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DCORRADE_IS_DEBUG_BUILD -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/arm64-osx-dbg/src -isystem /Users/leanderSchulten/git_projekte/vcpkg/vcpkg_installed/arm64-osx/include -fPIC -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk -fPIC -std=c++11 -Wall -Wextra -Wold-style-cast -Winit-self -Werror=return-type -Wmissing-declarations -Wpedantic -fvisibility=hidden -fvisibility-inlines-hidden -Wmissing-prototypes -Wno-shorten-64-to-32 -MD -MT src/Magnum/CMakeFiles/Magnum.dir/Animation/Interpolation.cpp.o -MF src/Magnum/CMakeFiles/Magnum.dir/Animation/Interpolation.cpp.o.d -o src/Magnum/CMakeFiles/Magnum.dir/Animation/Interpolation.cpp.o -c /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Animation/Interpolation.cpp [20/24] ccache /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DCORRADE_IS_DEBUG_BUILD -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/arm64-osx-dbg/src -isystem /Users/leanderSchulten/git_projekte/vcpkg/vcpkg_installed/arm64-osx/include -fPIC -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk -fPIC -std=c++11 -Wall -Wextra -Wold-style-cast -Winit-self -Werror=return-type -Wmissing-declarations -Wpedantic -fvisibility=hidden -fvisibility-inlines-hidden -Wmissing-prototypes -Wno-shorten-64-to-32 -MD -MT src/Magnum/CMakeFiles/Magnum.dir/VertexFormat.cpp.o -MF src/Magnum/CMakeFiles/Magnum.dir/VertexFormat.cpp.o.d -o src/Magnum/CMakeFiles/Magnum.dir/VertexFormat.cpp.o -c /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/VertexFormat.cpp [21/24] ccache /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DCORRADE_IS_DEBUG_BUILD -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/arm64-osx-dbg/src -isystem /Users/leanderSchulten/git_projekte/vcpkg/vcpkg_installed/arm64-osx/include -fPIC -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk -fPIC -std=c++11 -Wall -Wextra -Wold-style-cast -Winit-self -Werror=return-type -Wmissing-declarations -Wpedantic -fvisibility=hidden -fvisibility-inlines-hidden -Wmissing-prototypes -Wno-shorten-64-to-32 -MD -MT src/Magnum/CMakeFiles/Magnum.dir/Animation/Player.cpp.o -MF src/Magnum/CMakeFiles/Magnum.dir/Animation/Player.cpp.o.d -o src/Magnum/CMakeFiles/Magnum.dir/Animation/Player.cpp.o -c /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Animation/Player.cpp In file included from /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Animation/Player.cpp:26: In file included from /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Animation/Player.hpp:32: In file included from /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Animation/Player.h:35: In file included from /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Animation/Track.h:36: /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Math/Range.h:153:32: warning: definition of implicit copy assignment operator for 'Range<1, float>' is deprecated because it has a user-declared copy constructor [-Wdeprecated-copy] constexpr /*implicit*/ Range(const Range&) noexcept = default; ^ /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Animation/Player.h:289:49: note: in implicit copy assignment operator for 'Magnum::Math::Range<1, float>' first required here Player& operator=(Player&&) noexcept; ^ /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Animation/Player.hpp:81:56: note: in defaulted move assignment operator for 'Magnum::Animation::Player' first required here template Player& Player::operator=(Player&&) noexcept = default; ^ /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/magnum/src/v2020.06-4ccec3ac49.clean/src/Magnum/Animation/Player.cpp:56:34: note: in instantiation of member function 'Magnum::Animation::Player::operator=' requested here template class MAGNUM_EXPORT_HPP Player; ^ 1 warning generated. ninja: build stopped: subcommand failed. ```
mosra commented 4 months ago

Interesting, thank you -- learned something new from this warning. As far as I understand this from the discussion at e.g. https://github.com/llvm/llvm-project/issues/59036, this warning only happens for "classical" type-unrestricted enums, which is what all the builtin Vulkan enums are.

The Vulkan backend changed quite significantly since the last v2020.06 tag, so the offending code is not there anymore, and all Magnum enums are with an explicit underlying type to prevent this. If you install the --head version (which I recommend in any case), it should work. Note that vcpkg is a bit finicky when it comes to upgrades and dependencies of --head installs, in particular you have to explicitly install Corrade with --head as well. Complete (and hopefully bulletproof) instructions are in the building documentation.

If you have to stay on version 2020.06 for whatever reason, I think this would be a patch that makes the code valid (i.e., something to put alongside other patches Vcpkg is doing):

diff --git a/src/Magnum/Vk/Enums.cpp b/src/Magnum/Vk/Enums.cpp
index ad8b6d063..b7dffb74f 100644
--- a/src/Magnum/Vk/Enums.cpp
+++ b/src/Magnum/Vk/Enums.cpp
@@ -36,17 +36,17 @@ namespace Magnum { namespace Vk {

 namespace {

-constexpr VkPrimitiveTopology PrimitiveTopologyMapping[]{
+constexpr UnsignedInt PrimitiveTopologyMapping[]{
     VK_PRIMITIVE_TOPOLOGY_POINT_LIST,
     VK_PRIMITIVE_TOPOLOGY_LINE_LIST,
-    VkPrimitiveTopology(~UnsignedInt{}),
+    ~UnsignedInt{},
     VK_PRIMITIVE_TOPOLOGY_LINE_STRIP,
     VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST,
     VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP,
     VK_PRIMITIVE_TOPOLOGY_TRIANGLE_FAN,
-    VkPrimitiveTopology(~UnsignedInt{}), /* Instances */
-    VkPrimitiveTopology(~UnsignedInt{}), /* Faces */
-    VkPrimitiveTopology(~UnsignedInt{})  /* Edges */
+    ~UnsignedInt{}, /* Instances */
+    ~UnsignedInt{}, /* Faces */
+    ~UnsignedInt{}  /* Edges */
 };

 constexpr VkIndexType IndexTypeMapping[]{
@@ -94,12 +94,12 @@ constexpr VkSamplerMipmapMode SamplerMipmapModeMapping[]{
     VK_SAMPLER_MIPMAP_MODE_LINEAR
 };

-constexpr VkSamplerAddressMode SamplerAddressModeMapping[]{
+constexpr UnsignedInt SamplerAddressModeMapping[]{
     VK_SAMPLER_ADDRESS_MODE_REPEAT,
     VK_SAMPLER_ADDRESS_MODE_MIRRORED_REPEAT,
     VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE,
     VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER,
-    VkSamplerAddressMode(~UnsignedInt{}),
+    ~UnsignedInt{},
 };

 }
@@ -119,10 +119,10 @@ VkPrimitiveTopology vkPrimitiveTopology(const Magnum::MeshPrimitive primitive) {

     CORRADE_ASSERT(UnsignedInt(primitive) - 1 < Containers::arraySize(PrimitiveTopologyMapping),
         "Vk::vkPrimitiveTopology(): invalid primitive" << primitive, {});
-    const VkPrimitiveTopology out = PrimitiveTopologyMapping[UnsignedInt(primitive) - 1];
-    CORRADE_ASSERT(out != VkPrimitiveTopology(~UnsignedInt{}),
+    const UnsignedInt out = PrimitiveTopologyMapping[UnsignedInt(primitive) - 1];
+    CORRADE_ASSERT(out != ~UnsignedInt{},
         "Vk::vkPrimitiveTopology(): unsupported primitive" << primitive, {});
-    return out;
+    return VkPrimitiveTopology(out);
 }

 bool hasVkIndexType(const Magnum::MeshIndexType type) {
@@ -224,10 +224,10 @@ bool hasVkSamplerAddressMode(const Magnum::SamplerWrapping wrapping) {
 VkSamplerAddressMode vkSamplerAddressMode(const Magnum::SamplerWrapping wrapping) {
     CORRADE_ASSERT(UnsignedInt(wrapping) < Containers::arraySize(SamplerAddressModeMapping),
         "Vk::vkSamplerAddressMode(): invalid wrapping" << wrapping, {});
-    const VkSamplerAddressMode out = SamplerAddressModeMapping[UnsignedInt(wrapping)];
-    CORRADE_ASSERT(out != VkSamplerAddressMode(~UnsignedInt{}),
+    const UnsignedInt out = SamplerAddressModeMapping[UnsignedInt(wrapping)];
+    CORRADE_ASSERT(out != ~UnsignedInt{},
         "Vk::vkSamplerAddressMode(): unsupported wrapping" << wrapping, {});
-    return out;
+    return VkSamplerAddressMode(out);
 }

 }}

Also, apologies for the lack of tagged releases, I'm doing what I can to finally tag something this year.

autoantwort commented 4 months ago

Thank you for providing a patch for the current version! I have created a PR in vcpkg to fix the current available version there.

mosra commented 4 months ago

Thanks for the Vcpkg PR! I suppose that's all to be done here, right? Besides me trying harder to tag the next release.