Source: ms-gsl Version: 3.1.0-3 Severity: serious Hello, looks like the new clang tests are failing on s390x, I don't know why...
I can say that removing "flags" (set flags= on line 13 of entry file) to make it behave in a similar way with gcc works to shut down the errors https://autopkgtest.ubuntu.com/packages/m/ms-gsl/hirsute/s390x unfortunately, after doing that, there is still a failure on s390x with clang-11 cd /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl/tests && /usr/bin/clang++-11 -I/home/locutusofborg/ms-gsl-3.1.0/include -isystem /home/locutusofborg/ms-gsl-3.1.0/tests/googletest/googletest/include -O3 -DNDEBUG -fno-strict-aliasing -Wall -Wcast-align -Wconversion -Wctor-dtor-privacy -Werror -Wextra -Wpedantic -Wshadow -Wsign-conversion -Wno-deprecated-declarations -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-missing-braces -Wno-covered-switch-default -Wno-global-constructors -Wno-missing-prototypes -Wno-padded -Wno-unknown-attributes -Wno-used-but-marked-unused -Wno-weak-vtables -std=c++20 -o CMakeFiles/assertion_tests.dir/assertion_tests.cpp.o -c /home/locutusofborg/ms-gsl-3.1.0/tests/assertion_tests.cpp In file included from /home/locutusofborg/ms-gsl-3.1.0/tests/notnull_tests.cpp:19: /home/locutusofborg/ms-gsl-3.1.0/include/gsl/pointers:146:86: error: zero as null pointer constant [-Werror,-Wzero-as-null-pointer-constant] auto operator<(const not_null<T>& lhs, const not_null<U>& rhs) -> decltype(lhs.get() < rhs.get()) ^ nullptr /usr/bin/../lib/gcc/s390x-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr.h:448:5: note: while rewriting comparison as call to 'operator<=>' declared here operator<=>(const shared_ptr<_Tp>& __a, ^ /home/locutusofborg/ms-gsl-3.1.0/tests/notnull_tests.cpp:363:34: note: while substituting deduced template arguments into function template 'operator<' [with T = std::shared_ptr<int>, U = std::shared_ptr<int>] EXPECT_TRUE((NotNullSp1(sp1) < NotNullSp1(sp1)) == false); ^ In file included from /home/locutusofborg/ms-gsl-3.1.0/tests/notnull_tests.cpp:19: /home/locutusofborg/ms-gsl-3.1.0/include/gsl/pointers:146:86: error: zero as null pointer constant [-Werror,-Wzero-as-null-pointer-constant] auto operator<(const not_null<T>& lhs, const not_null<U>& rhs) -> decltype(lhs.get() < rhs.get()) ^ nullptr /usr/bin/../lib/gcc/s390x-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr.h:448:5: note: while rewriting comparison as call to 'operator<=>' declared here operator<=>(const shared_ptr<_Tp>& __a, ^ /home/locutusofborg/ms-gsl-3.1.0/tests/notnull_tests.cpp:364:34: note: while substituting deduced template arguments into function template 'operator<' [with T = std::shared_ptr<int>, U = std::shared_ptr<const int>] EXPECT_TRUE((NotNullSp1(sp1) < NotNullSp2(sp2)) == (sp1 < sp2)); ^ /home/locutusofborg/ms-gsl-3.1.0/tests/notnull_tests.cpp:364:61: error: zero as null pointer constant [-Werror,-Wzero-as-null-pointer-constant] EXPECT_TRUE((NotNullSp1(sp1) < NotNullSp2(sp2)) == (sp1 < sp2)); ^ nullptr (full log attached) Can you please have a look? this error might be a real error spotted by clang-11 (and maybe when optimization level is set to -O3? I don't honestly know) thanks Gianfranco
+ cmake -B pippo/googletest -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_C_COMPILER=true -DCMAKE_CXX_COMPILER=clang++-11 -DCMAKE_CXX_FLAGS= -DBUILD_GMOCK=OFF /usr/src/googletest -- Configuring done You have changed variables that require your cache to be deleted. Configure will be re-run and you may have to reset some variables. The following variables have changed: CMAKE_CXX_COMPILER= clang++-11 CMAKE_CXX_COMPILER= clang++-11 -- The C compiler identification is GNU 10.2.0 -- The CXX compiler identification is Clang 11.0.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/clang++-11 - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found PythonInterp: /usr/bin/python3.8 (found version "3.8.6") -- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Configuring done -- Generating done -- Build files have been written to: /home/locutusofborg/ms-gsl-3.1.0/pippo/googletest + make -C pippo/googletest make: Entering directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/googletest' make[1]: Entering directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/googletest' make[2]: Entering directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/googletest' Scanning dependencies of target gtest make[2]: Leaving directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/googletest' make[2]: Entering directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/googletest' [ 12%] Building CXX object googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o [ 25%] Linking CXX static library ../lib/libgtest.a make[2]: Leaving directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/googletest' [ 25%] Built target gtest make[2]: Entering directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/googletest' Scanning dependencies of target gmock make[2]: Leaving directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/googletest' make[2]: Entering directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/googletest' [ 37%] Building CXX object googlemock/CMakeFiles/gmock.dir/src/gmock-all.cc.o [ 50%] Linking CXX static library ../lib/libgmock.a make[2]: Leaving directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/googletest' [ 50%] Built target gmock make[2]: Entering directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/googletest' Scanning dependencies of target gmock_main make[2]: Leaving directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/googletest' make[2]: Entering directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/googletest' [ 62%] Building CXX object googlemock/CMakeFiles/gmock_main.dir/src/gmock_main.cc.o [ 75%] Linking CXX static library ../lib/libgmock_main.a make[2]: Leaving directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/googletest' [ 75%] Built target gmock_main make[2]: Entering directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/googletest' Scanning dependencies of target gtest_main make[2]: Leaving directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/googletest' make[2]: Entering directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/googletest' [ 87%] Building CXX object googletest/CMakeFiles/gtest_main.dir/src/gtest_main.cc.o [100%] Linking CXX static library ../lib/libgtest_main.a make[2]: Leaving directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/googletest' [100%] Built target gtest_main make[1]: Leaving directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/googletest' make: Leaving directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/googletest' + cmake -B pippo/ms-gsl -DCMAKE_BUILD_TYPE=Release -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_DISABLE_FIND_PACKAGE_Git=ON -DCMAKE_CXX_COMPILER=clang++-11 -DCMAKE_CXX_FLAGS= -DCMAKE_EXE_LINKER_FLAGS=-Lpippo/googletest/lib -DGSL_CXX_STANDARD=20 -- Configuring done -- Generating done -- Build files have been written to: /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl + make -C pippo/ms-gsl -j2 make: Entering directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' /usr/bin/cmake -S/home/locutusofborg/ms-gsl-3.1.0 -B/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl --check-build-system CMakeFiles/Makefile.cmake 0 /usr/bin/cmake -E cmake_progress_start /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl/CMakeFiles /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl//CMakeFiles/progress.marks make -f CMakeFiles/Makefile2 all make[1]: Entering directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' make -f tests/CMakeFiles/strict_notnull_tests.dir/build.make tests/CMakeFiles/strict_notnull_tests.dir/depend make -f tests/CMakeFiles/no_exception_ensure_tests.dir/build.make tests/CMakeFiles/no_exception_ensure_tests.dir/depend make[2]: Entering directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' cd /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/locutusofborg/ms-gsl-3.1.0 /home/locutusofborg/ms-gsl-3.1.0/tests /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl/tests /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl/tests/CMakeFiles/strict_notnull_tests.dir/DependInfo.cmake --color= make[2]: Entering directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' cd /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/locutusofborg/ms-gsl-3.1.0 /home/locutusofborg/ms-gsl-3.1.0/tests /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl/tests /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl/tests/CMakeFiles/no_exception_ensure_tests.dir/DependInfo.cmake --color= make[2]: Leaving directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' make -f tests/CMakeFiles/strict_notnull_tests.dir/build.make tests/CMakeFiles/strict_notnull_tests.dir/build make[2]: Leaving directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' make -f tests/CMakeFiles/no_exception_ensure_tests.dir/build.make tests/CMakeFiles/no_exception_ensure_tests.dir/build make[2]: Entering directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' make[2]: Nothing to be done for 'tests/CMakeFiles/strict_notnull_tests.dir/build'. make[2]: Leaving directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' make[2]: Entering directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' make[2]: Nothing to be done for 'tests/CMakeFiles/no_exception_ensure_tests.dir/build'. make[2]: Leaving directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' [ 5%] Built target strict_notnull_tests [ 11%] Built target no_exception_ensure_tests make -f tests/CMakeFiles/algorithm_tests.dir/build.make tests/CMakeFiles/algorithm_tests.dir/depend make -f tests/CMakeFiles/byte_tests.dir/build.make tests/CMakeFiles/byte_tests.dir/depend make[2]: Entering directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' cd /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/locutusofborg/ms-gsl-3.1.0 /home/locutusofborg/ms-gsl-3.1.0/tests /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl/tests /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl/tests/CMakeFiles/algorithm_tests.dir/DependInfo.cmake --color= make[2]: Entering directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' cd /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/locutusofborg/ms-gsl-3.1.0 /home/locutusofborg/ms-gsl-3.1.0/tests /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl/tests /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl/tests/CMakeFiles/byte_tests.dir/DependInfo.cmake --color= make[2]: Leaving directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' make -f tests/CMakeFiles/algorithm_tests.dir/build.make tests/CMakeFiles/algorithm_tests.dir/build make[2]: Entering directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' make[2]: Nothing to be done for 'tests/CMakeFiles/algorithm_tests.dir/build'. make[2]: Leaving directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' make[2]: Leaving directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' make -f tests/CMakeFiles/byte_tests.dir/build.make tests/CMakeFiles/byte_tests.dir/build make[2]: Entering directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' make[2]: Nothing to be done for 'tests/CMakeFiles/byte_tests.dir/build'. make[2]: Leaving directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' [ 17%] Built target algorithm_tests make -f tests/CMakeFiles/array_bounds.dir/build.make tests/CMakeFiles/array_bounds.dir/depend [ 23%] Built target byte_tests make[2]: Entering directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' cd /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/locutusofborg/ms-gsl-3.1.0 /home/locutusofborg/ms-gsl-3.1.0/tests /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl/tests /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl/tests/CMakeFiles/array_bounds.dir/DependInfo.cmake --color= make -f tests/CMakeFiles/owner_tests.dir/build.make tests/CMakeFiles/owner_tests.dir/depend make[2]: Entering directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' cd /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/locutusofborg/ms-gsl-3.1.0 /home/locutusofborg/ms-gsl-3.1.0/tests /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl/tests /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl/tests/CMakeFiles/owner_tests.dir/DependInfo.cmake --color= make[2]: Leaving directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' make -f tests/CMakeFiles/array_bounds.dir/build.make tests/CMakeFiles/array_bounds.dir/build make[2]: Entering directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' make[2]: Nothing to be done for 'tests/CMakeFiles/array_bounds.dir/build'. make[2]: Leaving directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' make[2]: Leaving directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' make -f tests/CMakeFiles/owner_tests.dir/build.make tests/CMakeFiles/owner_tests.dir/build make[2]: Entering directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' make[2]: Nothing to be done for 'tests/CMakeFiles/owner_tests.dir/build'. make[2]: Leaving directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' [ 29%] Built target array_bounds make -f tests/CMakeFiles/span_tests.dir/build.make tests/CMakeFiles/span_tests.dir/depend [ 35%] Built target owner_tests make[2]: Entering directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' cd /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/locutusofborg/ms-gsl-3.1.0 /home/locutusofborg/ms-gsl-3.1.0/tests /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl/tests /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl/tests/CMakeFiles/span_tests.dir/DependInfo.cmake --color= make -f tests/CMakeFiles/span_ext_tests.dir/build.make tests/CMakeFiles/span_ext_tests.dir/depend make[2]: Entering directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' cd /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/locutusofborg/ms-gsl-3.1.0 /home/locutusofborg/ms-gsl-3.1.0/tests /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl/tests /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl/tests/CMakeFiles/span_ext_tests.dir/DependInfo.cmake --color= make[2]: Leaving directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' make -f tests/CMakeFiles/span_tests.dir/build.make tests/CMakeFiles/span_tests.dir/build make[2]: Entering directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' make[2]: Nothing to be done for 'tests/CMakeFiles/span_tests.dir/build'. make[2]: Leaving directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' make[2]: Leaving directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' make -f tests/CMakeFiles/span_ext_tests.dir/build.make tests/CMakeFiles/span_ext_tests.dir/build make[2]: Entering directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' make[2]: Nothing to be done for 'tests/CMakeFiles/span_ext_tests.dir/build'. make[2]: Leaving directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' [ 41%] Built target span_tests make -f tests/CMakeFiles/utils_tests.dir/build.make tests/CMakeFiles/utils_tests.dir/depend make[2]: Entering directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' cd /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/locutusofborg/ms-gsl-3.1.0 /home/locutusofborg/ms-gsl-3.1.0/tests /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl/tests /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl/tests/CMakeFiles/utils_tests.dir/DependInfo.cmake --color= [ 47%] Built target span_ext_tests make -f tests/CMakeFiles/span_compatibility_tests.dir/build.make tests/CMakeFiles/span_compatibility_tests.dir/depend make[2]: Entering directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' cd /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/locutusofborg/ms-gsl-3.1.0 /home/locutusofborg/ms-gsl-3.1.0/tests /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl/tests /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl/tests/CMakeFiles/span_compatibility_tests.dir/DependInfo.cmake --color= make[2]: Leaving directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' make -f tests/CMakeFiles/utils_tests.dir/build.make tests/CMakeFiles/utils_tests.dir/build make[2]: Entering directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' make[2]: Nothing to be done for 'tests/CMakeFiles/utils_tests.dir/build'. make[2]: Leaving directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' make[2]: Leaving directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' make -f tests/CMakeFiles/span_compatibility_tests.dir/build.make tests/CMakeFiles/span_compatibility_tests.dir/build make[2]: Entering directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' make[2]: Nothing to be done for 'tests/CMakeFiles/span_compatibility_tests.dir/build'. make[2]: Leaving directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' [ 52%] Built target utils_tests make -f tests/CMakeFiles/string_span_tests.dir/build.make tests/CMakeFiles/string_span_tests.dir/depend make[2]: Entering directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' cd /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/locutusofborg/ms-gsl-3.1.0 /home/locutusofborg/ms-gsl-3.1.0/tests /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl/tests /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl/tests/CMakeFiles/string_span_tests.dir/DependInfo.cmake --color= [ 58%] Built target span_compatibility_tests make -f tests/CMakeFiles/multi_span_tests.dir/build.make tests/CMakeFiles/multi_span_tests.dir/depend make[2]: Entering directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' cd /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/locutusofborg/ms-gsl-3.1.0 /home/locutusofborg/ms-gsl-3.1.0/tests /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl/tests /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl/tests/CMakeFiles/multi_span_tests.dir/DependInfo.cmake --color= make[2]: Leaving directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' make -f tests/CMakeFiles/string_span_tests.dir/build.make tests/CMakeFiles/string_span_tests.dir/build make[2]: Entering directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' make[2]: Nothing to be done for 'tests/CMakeFiles/string_span_tests.dir/build'. make[2]: Leaving directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' make[2]: Leaving directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' make -f tests/CMakeFiles/multi_span_tests.dir/build.make tests/CMakeFiles/multi_span_tests.dir/build make[2]: Entering directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' make[2]: Nothing to be done for 'tests/CMakeFiles/multi_span_tests.dir/build'. make[2]: Leaving directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' [ 64%] Built target string_span_tests make -f tests/CMakeFiles/at_tests.dir/build.make tests/CMakeFiles/at_tests.dir/depend [ 70%] Built target multi_span_tests make[2]: Entering directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' cd /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/locutusofborg/ms-gsl-3.1.0 /home/locutusofborg/ms-gsl-3.1.0/tests /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl/tests /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl/tests/CMakeFiles/at_tests.dir/DependInfo.cmake --color= make -f tests/CMakeFiles/bounds_tests.dir/build.make tests/CMakeFiles/bounds_tests.dir/depend make[2]: Entering directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' cd /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/locutusofborg/ms-gsl-3.1.0 /home/locutusofborg/ms-gsl-3.1.0/tests /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl/tests /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl/tests/CMakeFiles/bounds_tests.dir/DependInfo.cmake --color= make[2]: Leaving directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' make -f tests/CMakeFiles/at_tests.dir/build.make tests/CMakeFiles/at_tests.dir/build make[2]: Entering directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' make[2]: Nothing to be done for 'tests/CMakeFiles/at_tests.dir/build'. make[2]: Leaving directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' make[2]: Leaving directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' make -f tests/CMakeFiles/bounds_tests.dir/build.make tests/CMakeFiles/bounds_tests.dir/build make[2]: Entering directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' make[2]: Nothing to be done for 'tests/CMakeFiles/bounds_tests.dir/build'. make[2]: Leaving directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' [ 76%] Built target at_tests make -f tests/CMakeFiles/strided_span_tests.dir/build.make tests/CMakeFiles/strided_span_tests.dir/depend make[2]: Entering directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' cd /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/locutusofborg/ms-gsl-3.1.0 /home/locutusofborg/ms-gsl-3.1.0/tests /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl/tests /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl/tests/CMakeFiles/strided_span_tests.dir/DependInfo.cmake --color= [ 82%] Built target bounds_tests make -f tests/CMakeFiles/notnull_tests.dir/build.make tests/CMakeFiles/notnull_tests.dir/depend make[2]: Entering directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' cd /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/locutusofborg/ms-gsl-3.1.0 /home/locutusofborg/ms-gsl-3.1.0/tests /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl/tests /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl/tests/CMakeFiles/notnull_tests.dir/DependInfo.cmake --color= make[2]: Leaving directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' make -f tests/CMakeFiles/strided_span_tests.dir/build.make tests/CMakeFiles/strided_span_tests.dir/build make[2]: Entering directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' make[2]: Nothing to be done for 'tests/CMakeFiles/strided_span_tests.dir/build'. make[2]: Leaving directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' make[2]: Leaving directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' make -f tests/CMakeFiles/notnull_tests.dir/build.make tests/CMakeFiles/notnull_tests.dir/build make[2]: Entering directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' [ 88%] Built target strided_span_tests make -f tests/CMakeFiles/assertion_tests.dir/build.make tests/CMakeFiles/assertion_tests.dir/depend make[2]: Entering directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' cd /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/locutusofborg/ms-gsl-3.1.0 /home/locutusofborg/ms-gsl-3.1.0/tests /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl/tests /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl/tests/CMakeFiles/assertion_tests.dir/DependInfo.cmake --color= [ 91%] Building CXX object tests/CMakeFiles/notnull_tests.dir/notnull_tests.cpp.o cd /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl/tests && /usr/bin/clang++-11 -I/home/locutusofborg/ms-gsl-3.1.0/include -isystem /home/locutusofborg/ms-gsl-3.1.0/tests/googletest/googletest/include -O3 -DNDEBUG -fno-strict-aliasing -Wall -Wcast-align -Wconversion -Wctor-dtor-privacy -Werror -Wextra -Wpedantic -Wshadow -Wsign-conversion -Wno-deprecated-declarations -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-missing-braces -Wno-covered-switch-default -Wno-global-constructors -Wno-missing-prototypes -Wno-padded -Wno-unknown-attributes -Wno-used-but-marked-unused -Wno-weak-vtables -std=c++20 -o CMakeFiles/notnull_tests.dir/notnull_tests.cpp.o -c /home/locutusofborg/ms-gsl-3.1.0/tests/notnull_tests.cpp make[2]: Leaving directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' make -f tests/CMakeFiles/assertion_tests.dir/build.make tests/CMakeFiles/assertion_tests.dir/build make[2]: Entering directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' [ 94%] Building CXX object tests/CMakeFiles/assertion_tests.dir/assertion_tests.cpp.o cd /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl/tests && /usr/bin/clang++-11 -I/home/locutusofborg/ms-gsl-3.1.0/include -isystem /home/locutusofborg/ms-gsl-3.1.0/tests/googletest/googletest/include -O3 -DNDEBUG -fno-strict-aliasing -Wall -Wcast-align -Wconversion -Wctor-dtor-privacy -Werror -Wextra -Wpedantic -Wshadow -Wsign-conversion -Wno-deprecated-declarations -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-missing-braces -Wno-covered-switch-default -Wno-global-constructors -Wno-missing-prototypes -Wno-padded -Wno-unknown-attributes -Wno-used-but-marked-unused -Wno-weak-vtables -std=c++20 -o CMakeFiles/assertion_tests.dir/assertion_tests.cpp.o -c /home/locutusofborg/ms-gsl-3.1.0/tests/assertion_tests.cpp In file included from /home/locutusofborg/ms-gsl-3.1.0/tests/notnull_tests.cpp:19: /home/locutusofborg/ms-gsl-3.1.0/include/gsl/pointers:146:86: error: zero as null pointer constant [-Werror,-Wzero-as-null-pointer-constant] auto operator<(const not_null<T>& lhs, const not_null<U>& rhs) -> decltype(lhs.get() < rhs.get()) ^ nullptr /usr/bin/../lib/gcc/s390x-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr.h:448:5: note: while rewriting comparison as call to 'operator<=>' declared here operator<=>(const shared_ptr<_Tp>& __a, ^ /home/locutusofborg/ms-gsl-3.1.0/tests/notnull_tests.cpp:363:34: note: while substituting deduced template arguments into function template 'operator<' [with T = std::shared_ptr<int>, U = std::shared_ptr<int>] EXPECT_TRUE((NotNullSp1(sp1) < NotNullSp1(sp1)) == false); ^ In file included from /home/locutusofborg/ms-gsl-3.1.0/tests/notnull_tests.cpp:19: /home/locutusofborg/ms-gsl-3.1.0/include/gsl/pointers:146:86: error: zero as null pointer constant [-Werror,-Wzero-as-null-pointer-constant] auto operator<(const not_null<T>& lhs, const not_null<U>& rhs) -> decltype(lhs.get() < rhs.get()) ^ nullptr /usr/bin/../lib/gcc/s390x-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr.h:448:5: note: while rewriting comparison as call to 'operator<=>' declared here operator<=>(const shared_ptr<_Tp>& __a, ^ /home/locutusofborg/ms-gsl-3.1.0/tests/notnull_tests.cpp:364:34: note: while substituting deduced template arguments into function template 'operator<' [with T = std::shared_ptr<int>, U = std::shared_ptr<const int>] EXPECT_TRUE((NotNullSp1(sp1) < NotNullSp2(sp2)) == (sp1 < sp2)); ^ /home/locutusofborg/ms-gsl-3.1.0/tests/notnull_tests.cpp:364:61: error: zero as null pointer constant [-Werror,-Wzero-as-null-pointer-constant] EXPECT_TRUE((NotNullSp1(sp1) < NotNullSp2(sp2)) == (sp1 < sp2)); ^ nullptr /usr/include/gtest/gtest.h:1981:23: note: expanded from macro 'EXPECT_TRUE' GTEST_TEST_BOOLEAN_(condition, #condition, false, true, \ ^ /usr/include/gtest/internal/gtest-internal.h:1511:34: note: expanded from macro 'GTEST_TEST_BOOLEAN_' ::testing::AssertionResult(expression)) \ ^ /usr/bin/../lib/gcc/s390x-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr.h:448:5: note: while rewriting comparison as call to 'operator<=>' declared here operator<=>(const shared_ptr<_Tp>& __a, ^ In file included from /home/locutusofborg/ms-gsl-3.1.0/tests/notnull_tests.cpp:19: /home/locutusofborg/ms-gsl-3.1.0/include/gsl/pointers:146:86: error: zero as null pointer constant [-Werror,-Wzero-as-null-pointer-constant] auto operator<(const not_null<T>& lhs, const not_null<U>& rhs) -> decltype(lhs.get() < rhs.get()) ^ nullptr /usr/bin/../lib/gcc/s390x-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr.h:448:5: note: while rewriting comparison as call to 'operator<=>' declared here operator<=>(const shared_ptr<_Tp>& __a, ^ /home/locutusofborg/ms-gsl-3.1.0/tests/notnull_tests.cpp:365:34: note: while substituting deduced template arguments into function template 'operator<' [with T = std::shared_ptr<const int>, U = std::shared_ptr<int>] EXPECT_TRUE((NotNullSp2(sp2) < NotNullSp1(sp1)) == (sp2 < sp1)); ^ /home/locutusofborg/ms-gsl-3.1.0/tests/notnull_tests.cpp:365:61: error: zero as null pointer constant [-Werror,-Wzero-as-null-pointer-constant] EXPECT_TRUE((NotNullSp2(sp2) < NotNullSp1(sp1)) == (sp2 < sp1)); ^ nullptr /usr/include/gtest/gtest.h:1981:23: note: expanded from macro 'EXPECT_TRUE' GTEST_TEST_BOOLEAN_(condition, #condition, false, true, \ ^ /usr/include/gtest/internal/gtest-internal.h:1511:34: note: expanded from macro 'GTEST_TEST_BOOLEAN_' ::testing::AssertionResult(expression)) \ ^ /usr/bin/../lib/gcc/s390x-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr.h:448:5: note: while rewriting comparison as call to 'operator<=>' declared here operator<=>(const shared_ptr<_Tp>& __a, ^ In file included from /home/locutusofborg/ms-gsl-3.1.0/tests/notnull_tests.cpp:19: /home/locutusofborg/ms-gsl-3.1.0/include/gsl/pointers:158:86: error: zero as null pointer constant [-Werror,-Wzero-as-null-pointer-constant] auto operator>(const not_null<T>& lhs, const not_null<U>& rhs) -> decltype(lhs.get() > rhs.get()) ^ nullptr /usr/bin/../lib/gcc/s390x-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr.h:448:5: note: while rewriting comparison as call to 'operator<=>' declared here operator<=>(const shared_ptr<_Tp>& __a, ^ /home/locutusofborg/ms-gsl-3.1.0/tests/notnull_tests.cpp:367:34: note: while substituting deduced template arguments into function template 'operator>' [with T = std::shared_ptr<int>, U = std::shared_ptr<int>] EXPECT_TRUE((NotNullSp1(sp1) > NotNullSp1(sp1)) == false); ^ In file included from /home/locutusofborg/ms-gsl-3.1.0/tests/notnull_tests.cpp:19: /home/locutusofborg/ms-gsl-3.1.0/include/gsl/pointers:158:86: error: zero as null pointer constant [-Werror,-Wzero-as-null-pointer-constant] auto operator>(const not_null<T>& lhs, const not_null<U>& rhs) -> decltype(lhs.get() > rhs.get()) ^ nullptr /usr/bin/../lib/gcc/s390x-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr.h:448:5: note: while rewriting comparison as call to 'operator<=>' declared here operator<=>(const shared_ptr<_Tp>& __a, ^ /home/locutusofborg/ms-gsl-3.1.0/tests/notnull_tests.cpp:368:34: note: while substituting deduced template arguments into function template 'operator>' [with T = std::shared_ptr<int>, U = std::shared_ptr<const int>] EXPECT_TRUE((NotNullSp1(sp1) > NotNullSp2(sp2)) == (sp1 > sp2)); ^ /home/locutusofborg/ms-gsl-3.1.0/tests/notnull_tests.cpp:368:61: error: zero as null pointer constant [-Werror,-Wzero-as-null-pointer-constant] EXPECT_TRUE((NotNullSp1(sp1) > NotNullSp2(sp2)) == (sp1 > sp2)); ^ nullptr /usr/include/gtest/gtest.h:1981:23: note: expanded from macro 'EXPECT_TRUE' GTEST_TEST_BOOLEAN_(condition, #condition, false, true, \ ^ /usr/include/gtest/internal/gtest-internal.h:1511:34: note: expanded from macro 'GTEST_TEST_BOOLEAN_' ::testing::AssertionResult(expression)) \ ^ /usr/bin/../lib/gcc/s390x-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr.h:448:5: note: while rewriting comparison as call to 'operator<=>' declared here operator<=>(const shared_ptr<_Tp>& __a, ^ In file included from /home/locutusofborg/ms-gsl-3.1.0/tests/notnull_tests.cpp:19: /home/locutusofborg/ms-gsl-3.1.0/include/gsl/pointers:158:86: error: zero as null pointer constant [-Werror,-Wzero-as-null-pointer-constant] auto operator>(const not_null<T>& lhs, const not_null<U>& rhs) -> decltype(lhs.get() > rhs.get()) ^ nullptr /usr/bin/../lib/gcc/s390x-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr.h:448:5: note: while rewriting comparison as call to 'operator<=>' declared here operator<=>(const shared_ptr<_Tp>& __a, ^ /home/locutusofborg/ms-gsl-3.1.0/tests/notnull_tests.cpp:369:34: note: while substituting deduced template arguments into function template 'operator>' [with T = std::shared_ptr<const int>, U = std::shared_ptr<int>] EXPECT_TRUE((NotNullSp2(sp2) > NotNullSp1(sp1)) == (sp2 > sp1)); ^ /home/locutusofborg/ms-gsl-3.1.0/tests/notnull_tests.cpp:369:61: error: zero as null pointer constant [-Werror,-Wzero-as-null-pointer-constant] EXPECT_TRUE((NotNullSp2(sp2) > NotNullSp1(sp1)) == (sp2 > sp1)); ^ nullptr /usr/include/gtest/gtest.h:1981:23: note: expanded from macro 'EXPECT_TRUE' GTEST_TEST_BOOLEAN_(condition, #condition, false, true, \ ^ /usr/include/gtest/internal/gtest-internal.h:1511:34: note: expanded from macro 'GTEST_TEST_BOOLEAN_' ::testing::AssertionResult(expression)) \ ^ /usr/bin/../lib/gcc/s390x-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr.h:448:5: note: while rewriting comparison as call to 'operator<=>' declared here operator<=>(const shared_ptr<_Tp>& __a, ^ In file included from /home/locutusofborg/ms-gsl-3.1.0/tests/notnull_tests.cpp:19: /home/locutusofborg/ms-gsl-3.1.0/include/gsl/pointers:152:87: error: zero as null pointer constant [-Werror,-Wzero-as-null-pointer-constant] auto operator<=(const not_null<T>& lhs, const not_null<U>& rhs) -> decltype(lhs.get() <= rhs.get()) ^~ nullptr /usr/bin/../lib/gcc/s390x-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr.h:448:5: note: while rewriting comparison as call to 'operator<=>' declared here operator<=>(const shared_ptr<_Tp>& __a, ^ /home/locutusofborg/ms-gsl-3.1.0/tests/notnull_tests.cpp:371:34: note: while substituting deduced template arguments into function template 'operator<=' [with T = std::shared_ptr<int>, U = std::shared_ptr<int>] EXPECT_TRUE((NotNullSp1(sp1) <= NotNullSp1(sp1)) == true); ^ In file included from /home/locutusofborg/ms-gsl-3.1.0/tests/notnull_tests.cpp:19: /home/locutusofborg/ms-gsl-3.1.0/include/gsl/pointers:152:87: error: zero as null pointer constant [-Werror,-Wzero-as-null-pointer-constant] auto operator<=(const not_null<T>& lhs, const not_null<U>& rhs) -> decltype(lhs.get() <= rhs.get()) ^~ nullptr /usr/bin/../lib/gcc/s390x-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr.h:448:5: note: while rewriting comparison as call to 'operator<=>' declared here operator<=>(const shared_ptr<_Tp>& __a, ^ /home/locutusofborg/ms-gsl-3.1.0/tests/notnull_tests.cpp:372:34: note: while substituting deduced template arguments into function template 'operator<=' [with T = std::shared_ptr<int>, U = std::shared_ptr<const int>] EXPECT_TRUE((NotNullSp1(sp1) <= NotNullSp2(sp2)) == (sp1 <= sp2)); ^ /home/locutusofborg/ms-gsl-3.1.0/tests/notnull_tests.cpp:372:62: error: zero as null pointer constant [-Werror,-Wzero-as-null-pointer-constant] EXPECT_TRUE((NotNullSp1(sp1) <= NotNullSp2(sp2)) == (sp1 <= sp2)); ^~ nullptr /usr/include/gtest/gtest.h:1981:23: note: expanded from macro 'EXPECT_TRUE' GTEST_TEST_BOOLEAN_(condition, #condition, false, true, \ ^ /usr/include/gtest/internal/gtest-internal.h:1511:34: note: expanded from macro 'GTEST_TEST_BOOLEAN_' ::testing::AssertionResult(expression)) \ ^ /usr/bin/../lib/gcc/s390x-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr.h:448:5: note: while rewriting comparison as call to 'operator<=>' declared here operator<=>(const shared_ptr<_Tp>& __a, ^ In file included from /home/locutusofborg/ms-gsl-3.1.0/tests/notnull_tests.cpp:19: /home/locutusofborg/ms-gsl-3.1.0/include/gsl/pointers:152:87: error: zero as null pointer constant [-Werror,-Wzero-as-null-pointer-constant] auto operator<=(const not_null<T>& lhs, const not_null<U>& rhs) -> decltype(lhs.get() <= rhs.get()) ^~ nullptr /usr/bin/../lib/gcc/s390x-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr.h:448:5: note: while rewriting comparison as call to 'operator<=>' declared here operator<=>(const shared_ptr<_Tp>& __a, ^ /home/locutusofborg/ms-gsl-3.1.0/tests/notnull_tests.cpp:373:34: note: while substituting deduced template arguments into function template 'operator<=' [with T = std::shared_ptr<const int>, U = std::shared_ptr<int>] EXPECT_TRUE((NotNullSp2(sp2) <= NotNullSp1(sp1)) == (sp2 <= sp1)); ^ /home/locutusofborg/ms-gsl-3.1.0/tests/notnull_tests.cpp:373:62: error: zero as null pointer constant [-Werror,-Wzero-as-null-pointer-constant] EXPECT_TRUE((NotNullSp2(sp2) <= NotNullSp1(sp1)) == (sp2 <= sp1)); ^~ nullptr /usr/include/gtest/gtest.h:1981:23: note: expanded from macro 'EXPECT_TRUE' GTEST_TEST_BOOLEAN_(condition, #condition, false, true, \ ^ /usr/include/gtest/internal/gtest-internal.h:1511:34: note: expanded from macro 'GTEST_TEST_BOOLEAN_' ::testing::AssertionResult(expression)) \ ^ /usr/bin/../lib/gcc/s390x-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr.h:448:5: note: while rewriting comparison as call to 'operator<=>' declared here operator<=>(const shared_ptr<_Tp>& __a, ^ In file included from /home/locutusofborg/ms-gsl-3.1.0/tests/notnull_tests.cpp:19: /home/locutusofborg/ms-gsl-3.1.0/include/gsl/pointers:164:87: error: zero as null pointer constant [-Werror,-Wzero-as-null-pointer-constant] auto operator>=(const not_null<T>& lhs, const not_null<U>& rhs) -> decltype(lhs.get() >= rhs.get()) ^~ nullptr /usr/bin/../lib/gcc/s390x-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr.h:448:5: note: while rewriting comparison as call to 'operator<=>' declared here operator<=>(const shared_ptr<_Tp>& __a, ^ /home/locutusofborg/ms-gsl-3.1.0/tests/notnull_tests.cpp:375:34: note: while substituting deduced template arguments into function template 'operator>=' [with T = std::shared_ptr<int>, U = std::shared_ptr<int>] EXPECT_TRUE((NotNullSp1(sp1) >= NotNullSp1(sp1)) == true); ^ In file included from /home/locutusofborg/ms-gsl-3.1.0/tests/notnull_tests.cpp:19: /home/locutusofborg/ms-gsl-3.1.0/include/gsl/pointers:164:87: error: zero as null pointer constant [-Werror,-Wzero-as-null-pointer-constant] auto operator>=(const not_null<T>& lhs, const not_null<U>& rhs) -> decltype(lhs.get() >= rhs.get()) ^~ nullptr /usr/bin/../lib/gcc/s390x-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr.h:448:5: note: while rewriting comparison as call to 'operator<=>' declared here operator<=>(const shared_ptr<_Tp>& __a, ^ /home/locutusofborg/ms-gsl-3.1.0/tests/notnull_tests.cpp:376:34: note: while substituting deduced template arguments into function template 'operator>=' [with T = std::shared_ptr<int>, U = std::shared_ptr<const int>] EXPECT_TRUE((NotNullSp1(sp1) >= NotNullSp2(sp2)) == (sp1 >= sp2)); ^ /home/locutusofborg/ms-gsl-3.1.0/tests/notnull_tests.cpp:376:62: error: zero as null pointer constant [-Werror,-Wzero-as-null-pointer-constant] EXPECT_TRUE((NotNullSp1(sp1) >= NotNullSp2(sp2)) == (sp1 >= sp2)); ^~ nullptr /usr/include/gtest/gtest.h:1981:23: note: expanded from macro 'EXPECT_TRUE' GTEST_TEST_BOOLEAN_(condition, #condition, false, true, \ ^ /usr/include/gtest/internal/gtest-internal.h:1511:34: note: expanded from macro 'GTEST_TEST_BOOLEAN_' ::testing::AssertionResult(expression)) \ ^ /usr/bin/../lib/gcc/s390x-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr.h:448:5: note: while rewriting comparison as call to 'operator<=>' declared here operator<=>(const shared_ptr<_Tp>& __a, ^ In file included from /home/locutusofborg/ms-gsl-3.1.0/tests/notnull_tests.cpp:19: /home/locutusofborg/ms-gsl-3.1.0/include/gsl/pointers:164:87: error: zero as null pointer constant [-Werror,-Wzero-as-null-pointer-constant] auto operator>=(const not_null<T>& lhs, const not_null<U>& rhs) -> decltype(lhs.get() >= rhs.get()) ^~ nullptr /usr/bin/../lib/gcc/s390x-linux-gnu/10/../../../../include/c++/10/bits/shared_ptr.h:448:5: note: while rewriting comparison as call to 'operator<=>' declared here operator<=>(const shared_ptr<_Tp>& __a, ^ /home/locutusofborg/ms-gsl-3.1.0/tests/notnull_tests.cpp:377:34: note: while substituting deduced template arguments into function template 'operator>=' [with T = std::shared_ptr<const int>, U = std::shared_ptr<int>] EXPECT_TRUE((NotNullSp2(sp2) >= NotNullSp1(sp1)) == (sp2 >= sp1)); ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make[2]: *** [tests/CMakeFiles/notnull_tests.dir/build.make:85: tests/CMakeFiles/notnull_tests.dir/notnull_tests.cpp.o] Error 1 make[2]: Leaving directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' make[1]: *** [CMakeFiles/Makefile2:553: tests/CMakeFiles/notnull_tests.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 97%] Linking CXX executable assertion_tests cd /home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl/tests && /usr/bin/cmake -E cmake_link_script CMakeFiles/assertion_tests.dir/link.txt --verbose=1 /usr/bin/clang++-11 -O3 -DNDEBUG -Lpippo/googletest/lib -rdynamic CMakeFiles/assertion_tests.dir/assertion_tests.cpp.o -o assertion_tests -lgtest_main -lpthread -lgtest -lpthread -lgtest make[2]: Leaving directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' [ 97%] Built target assertion_tests make[1]: Leaving directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl' make: *** [Makefile:163: all] Error 2 make: Leaving directory '/home/locutusofborg/ms-gsl-3.1.0/pippo/ms-gsl'