Write UUID transformation more portably #13
Annotations
4 errors
macOS Latest Clang
FAILED: src/gromacs/hardware/tests/CMakeFiles/hardware-test.dir/device_management.cpp.o
ccache /Applications/Xcode_15.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -DGMX_DOUBLE=0 -DGTEST_LANG_CXX11 -DGTEST_LINKED_AS_SHARED_LIBRARY=1 -DHAVE_CONFIG_H -DTEST_DATA_PATH=\"src/gromacs/hardware/tests\" -DTEST_TEMP_PATH=\"/Users/runner/work/gromacs/gromacs/build/src/gromacs/hardware/tests/Testing/Temporary\" -DTMPI_USE_VISIBILITY -I/Users/runner/work/gromacs/gromacs/src/testutils/include -I/Users/runner/work/gromacs/gromacs/src/include -I/Users/runner/work/gromacs/gromacs/build/src/include -I/Users/runner/work/gromacs/gromacs/src -I/Users/runner/work/gromacs/gromacs/src/gromacs/utility/include -I/Users/runner/work/gromacs/gromacs/api/legacy/include -I/Users/runner/work/gromacs/gromacs/build/api/legacy/include -I/Users/runner/work/gromacs/gromacs/src/gromacs/math/include -isystem /Users/runner/work/gromacs/gromacs/src/external/thread_mpi/include -isystem /Users/runner/work/gromacs/gromacs/src/external -isystem /Users/runner/work/gromacs/gromacs/src/external/muparser -isystem /Users/runner/work/gromacs/gromacs/src/external/googletest/googlemock/include -isystem /Users/runner/work/gromacs/gromacs/src/external/googletest/googlemock -isystem /Users/runner/work/gromacs/gromacs/src/external/googletest/googletest/include -isystem /Users/runner/work/gromacs/gromacs/src/external/googletest/googletest -O3 -DNDEBUG -std=c++17 -arch arm64 -isysroot /Applications/Xcode_15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk -Wall -Wextra -Wpointer-arith -Wmissing-prototypes -Wdeprecated -Wno-deprecated-declarations -Wno-poison-system-directories -Wno-unused-function -Wno-unknown-pragmas -Wno-reserved-identifier -Wno-missing-field-initializers -fno-stack-check -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-source-uses-openmp -Wno-c++17-extensions -Wno-documentation-unknown-command -Wno-covered-switch-default -Wno-switch-enum -Wno-switch-default -Wno-extra-semi-stmt -Wno-weak-vtables -Wno-shadow -Wno-padded -Wno-reserved-id-macro -Wno-double-promotion -Wno-exit-time-destructors -Wno-global-constructors -Wno-documentation -Wno-format-nonliteral -Wno-used-but-marked-unused -Wno-float-equal -Wno-conditional-uninitialized -Wno-conversion -Wno-disabled-macro-expansion -Wno-unused-macros -Wno-unsafe-buffer-usage -Wno-zero-as-null-pointer-constant -Wno-gnu-zero-variadic-macro-arguments -Wno-unused-member-function -MD -MT src/gromacs/hardware/tests/CMakeFiles/hardware-test.dir/device_management.cpp.o -MF src/gromacs/hardware/tests/CMakeFiles/hardware-test.dir/device_management.cpp.o.d -o src/gromacs/hardware/tests/CMakeFiles/hardware-test.dir/device_management.cpp.o -c /Users/runner/work/gromacs/gromacs/src/gromacs/hardware/tests/device_management.cpp
../src/gromacs/hardware/tests/device_management.cpp:145:27: error: constexpr variable 'uuidWidthInBytes' must be initialized by a constant expression
constexpr std::size_t uuidWidthInBytes = uuid.size();
^ ~~~~~~~~~~~
../src/gromacs/hardware/tests/device_management.cpp:145:46: note: function parameter 'uuid' with unknown value cannot be used in a constant expression
constexpr std::size_t uuidWidthInBytes = uuid.size();
^
../src/gromacs/hardware/tests/device_management.cpp:134:59: note: declared here
std::string uuidToString(const std::array<std::byte, 16>& uuid)
^
../src/gromacs/hardware/tests/device_management.cpp:150:46: error: no matching function for call to 'uint32FromBytes'
result += gmx::formatString("%2.2x", uint32FromBytes<uuidWidthInBytes>(uuid, byteOffset));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/gromacs/hardware/tests/device_management.cpp:112:10: note: candidate template ignored: invalid explicitly-specified argument for template parameter 'N'
uint32_t uint32FromBytes(const std::array<std::byte, N>& data, const s
|
macOS Latest Clang
Process completed with exit code 1.
|
Windows Latest MSVC
FAILED: src/gromacs/hardware/tests/CMakeFiles/hardware-test.dir/device_management.cpp.obj
ccache C:\PROGRA~2\MICROS~2\2019\ENTERP~1\VC\Tools\MSVC\1429~1.301\bin\Hostx64\x64\cl.exe /nologo /TP -DGMX_DOUBLE=0 -DGTEST_LANG_CXX11 -DHAVE_CONFIG_H -DNOMINMAX -DTEST_DATA_PATH=\"src/gromacs/hardware/tests\" -DTEST_TEMP_PATH=\"D:/a/gromacs/gromacs/build/src/gromacs/hardware/tests/Testing/Temporary\" -DTMPI_USE_VISIBILITY -ID:\a\gromacs\gromacs\src\testutils\include -ID:\a\gromacs\gromacs\src\include -ID:\a\gromacs\gromacs\build\src\include -ID:\a\gromacs\gromacs\src -ID:\a\gromacs\gromacs\src\gromacs\utility\include -ID:\a\gromacs\gromacs\api\legacy\include -ID:\a\gromacs\gromacs\build\api\legacy\include -ID:\a\gromacs\gromacs\src\gromacs\math\include -external:ID:\a\gromacs\gromacs\src\external\thread_mpi\include -external:ID:\a\gromacs\gromacs\src\external -external:ID:\a\gromacs\gromacs\src\external\muparser -external:ID:\a\gromacs\gromacs\src\external\googletest\googlemock\include -external:ID:\a\gromacs\gromacs\src\external\googletest\googlemock -external:ID:\a\gromacs\gromacs\src\external\googletest\googletest\include -external:ID:\a\gromacs\gromacs\src\external\googletest\googletest -external:W0 /DWIN32 /D_WINDOWS /GR /EHsc /O2 /Ob2 /DNDEBUG -std:c++17 -MD /wd4800 /wd4355 /wd4996 /wd4305 /wd4244 /wd4267 /wd4068 /permissive- /utf-8 /showIncludes /Fosrc\gromacs\hardware\tests\CMakeFiles\hardware-test.dir\device_management.cpp.obj /Fdsrc\gromacs\hardware\tests\CMakeFiles\hardware-test.dir\ /FS -c D:\a\gromacs\gromacs\src\gromacs\hardware\tests\device_management.cpp
..\src\gromacs\hardware\tests\device_management.cpp(142): error C2131: expression did not evaluate to a constant
..\src\gromacs\hardware\tests\device_management.cpp(142): note: failure was caused by a read of a variable outside its lifetime
..\src\gromacs\hardware\tests\device_management.cpp(142): note: see usage of 'uuid'
..\src\gromacs\hardware\tests\device_management.cpp(150): error C2672: 'uint32FromBytes': no matching overloaded function found
..\src\gromacs\hardware\tests\device_management.cpp(150): error C2971: 'gmx::test::`anonymous-namespace'::uint32FromBytes': template parameter 'N': 'uuidWidthInBytes': a variable with non-static storage duration cannot be used as a non-type argument
..\src\gromacs\hardware\tests\device_management.cpp(112): note: see declaration of 'gmx::test::`anonymous-namespace'::uint32FromBytes'
..\src\gromacs\hardware\tests\device_management.cpp(142): note: see declaration of 'uuidWidthInBytes'
..\src\gromacs\hardware\tests\device_management.cpp(155): error C2672: 'uint32FromBytes': no matching overloaded function found
..\src\gromacs\hardware\tests\device_management.cpp(155): error C2971: 'gmx::test::`anonymous-namespace'::uint32FromBytes': template parameter 'N': 'uuidWidthInBytes': a variable with non-static storage duration cannot be used as a non-type argument
..\src\gromacs\hardware\tests\device_management.cpp(112): note: see declaration of 'gmx::test::`anonymous-namespace'::uint32FromBytes'
..\src\gromacs\hardware\tests\device_management.cpp(142): note: see declaration of 'uuidWidthInBytes'
..\src\gromacs\hardware\tests\device_management.cpp(160): error C2672: 'uint32FromBytes': no matching overloaded function found
..\src\gromacs\hardware\tests\device_management.cpp(160): error C2971: 'gmx::test::`anonymous-namespace'::uint32FromBytes': template parameter 'N': 'uuidWidthInBytes': a variable with non-static storage duration cannot be used as a non-type argument
..\src\gromacs\hardware\tests\device_management.cpp(112): note: see declaration of 'gmx::test::`anonymous-namespace'::uint32FromBytes'
..\src\gromacs\hardware\tests\device_management.cpp(142): note: see declaration of 'uuidWidthInBytes'
..\src\gromacs\hardware\tests\device_management.cpp(165): error C2672: 'uint32FromBytes': no matching overloaded function found
..\src\gromacs\hardware\tests\device_management.cpp(165): error C2971: 'gmx::test::`anonymous-namespace'::uint32FromBytes': template parameter 'N': 'uuidWidthInBytes': a variable with non-static storage durati
|
Windows Latest MSVC
Process completed with exit code 1.
|