Skip to content

Clarify auto type for MSVC #9

Clarify auto type for MSVC

Clarify auto type for MSVC #9

Triggered via push September 5, 2024 07:09
Status Failure
Total duration 28m 57s
Artifacts

build_cmake.yml

on: push
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

6 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:115:34: error: static_cast from 'const_iterator' (aka 'const std::byte *') to 'const unsigned int *' is not allowed const unsigned int* uuidIt = static_cast<const unsigned int*>(uuid.cbegin()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. [233/579 2.2/sec] Building CXX object src/gromacs/hardware/tests/CMakeFiles/hardware-test.dir/hardwaretopology.cpp.o [234/579 2.3/sec] Building CXX object src/gromacs/hardware/tests/CMakeFiles/hardware-test.dir/__/__/__/testutils/unittest_main.cpp.o [235/579 2.2/sec] Building CXX object src/gromacs/hardware/tests/CMakeFiles/hardware-test.dir/mockhardwaretopology.cpp.o [236/579 2.2/sec] Building CXX object src/gromacs/gpu_utils/tests/CMakeFiles/gpu_utils-test.dir/hostallocator.cpp.o ninja: build stopped: subcommand failed.
macOS Latest Clang
Process completed with exit code 1.
macOS Latest GCC 14 with OpenCL
FAILED: src/gromacs/hardware/tests/CMakeFiles/hardware-test.dir/device_management.cpp.o ccache /opt/homebrew/bin/g++-14 -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 -F/Applications/Xcode_15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks -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 -Wno-comment -Wno-array-bounds -fexcess-precision=fast -funroll-all-loops -Wall -Wextra -Wpointer-arith -Wmissing-declarations -Wundef -Wstringop-truncation -Wno-missing-field-initializers -fopenmp -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: In function 'std::string gmx::test::{anonymous}::uuidToString(const std::array<std::byte, 16>&)': ../src/gromacs/hardware/tests/device_management.cpp:115:34: error: invalid 'static_cast' from type 'std::array<std::byte, 16>::const_iterator' {aka 'const std::byte*'} to type 'const unsigned int*' 115 | const unsigned int* uuidIt = static_cast<const unsigned int*>(uuid.cbegin()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [232/591 1.7/sec] Building CXX object src/gromacs/hardware/tests/CMakeFiles/hardware-test.dir/hardwaretopology.cpp.o [233/591 1.7/sec] Building CXX object src/gromacs/gpu_utils/tests/CMakeFiles/gpu_utils-test.dir/device_buffer.cpp.o In file included from ../src/gromacs/gpu_utils/devicebuffer_ocl.h:52, from ../src/gromacs/gpu_utils/devicebuffer.h:62, from ../src/gromacs/gpu_utils/tests/device_buffer.cpp:53: ../src/gromacs/gpu_utils/oclutils.h: In function 'void prepareGpuKernelArgument(cl_kernel, const KernelLaunchConfig&, size_t)': ../src/gromacs/gpu_utils/oclutils.h:101:31: warning: 'cl_int clSetKernelArg(cl_kernel, cl_uint, size_t, const void*)' is deprecated: (Define CL_SILENCE_DEPRECATION to hide this warning) [-Wdeprecated-declarations] 101 | clSetKernelArg(kernel, argIndex, config.sharedMemorySize, nullptr); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /Applications/Xcode_15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/OpenCL.framework/Headers/opencl.h:12, from ../src/gromacs/gpu_utils/gmxopencl.h:59, from ../src/gromacs/gpu_utils/device_context.h:51, from ../src/gromacs/gpu_utils/tests/device_buffer.cpp:51: /Applications
macOS Latest GCC 14 with OpenCL
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(115): error C2440: 'static_cast': cannot convert from 'std::_Array_const_iterator<_Ty,16>' to 'const unsigned int *' with [ _Ty=std::byte ] ..\src\gromacs\hardware\tests\device_management.cpp(115): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called [183/513 1.0/sec] Building CXX object src\gromacs\hardware\tests\CMakeFiles\hardware-test.dir\__\__\__\testutils\unittest_main.cpp.obj [184/513 1.0/sec] Building CXX object src\gromacs\math\tests\CMakeFiles\math-test.dir\arrayrefwithpadding.cpp.obj [185/513 1.0/sec] Building CXX object src\gromacs\hardware\tests\CMakeFiles\hardware-test.dir\mockhardwaretopology.cpp.obj [186/513 1.0/sec] Building CXX object src\gromacs\math\tests\CMakeFiles\math-test.dir\boxmatrix.cpp.obj [187/513 1.0/sec] Building CXX object src\gromacs\math\tests\CMakeFiles\math-test.dir\complex.cpp.obj ninja: build stopped: subcommand failed.
Windows Latest MSVC
Process completed with exit code 1.