Switch to the latest toolshed - #101
Conversation
|
@thirtytwobits can you please check the build error? It refers to the deprecation/removal of https://en.cppreference.com/w/cpp/memory/allocator/destroy |
|
Seems like we might need some ifdef c++20 to work around? |
|
@thirtytwobits The problem is not in our code but is caused by the fact that Clang uses libc++ shipped with GCC v11, which is old and makes use of the deprecated function. To fix this we need to upgrade the container (again) to use at least GCC 12; according to my local tests that is sufficient. |
|
@thirtytwobits could you please push a new container build? I will update this PR then |
|
@thirtytwobits Now the container ships the wrong version of gcov! Which segfaults because of the version mismatch between GCC and GCOV. Run coverage build: build-tools/bin/verify.py --online --asserts --exceptions --build-flavor Coverage --cpp-standard 14 --toolchain gccThis command fails: cd /repo/build/suites/unittest/CMakeFiles/test_pf17_polymorphic_allocator__googletest_objlib.dir && /usr/local/bin/gcovr --gcov-executable gcov --root /repo/ --verbose --json --output /repo/build/suites/unittest/test_pf17_polymorphic_allocator.json --exclude "/repo/cetlvast/suites/unittest" --gcov-exclude "/repo/cetlvast/suites/unittest" --exclude "/repo/cetlvast" --gcov-exclude "/repo/cetlvast" --exclude "/repo/cetlvast/build_external/googletest/googlemock" --gcov-exclude "/repo/cetlvast/build_external/googletest/googlemock" --exclude "/repo/cetlvast/build_external/googletest/googletest" --gcov-exclude "/repo/cetlvast/build_external/googletest/googletest" --object-directory "/repo/build/suites/unittest/CMakeFiles/test_pf17_polymorphic_allocator__googletest_objlib.dir" /repo/build/suites/unittest/CMakeFiles/test_pf17_polymorphic_allocator__googletest_objlib.dirSpecifically, this subcommand invoked by the above segfaults: $ gcov /repo/build/suites/unittest/CMakeFiles/test_pf17_polymorphic_allocator__googletest_objlib.dir/test_pf17_polymorphic_allocator.cpp.gcda --branch-counts --branch-probabilities --all-blocks --demangled-names --hash-filenames --object-directory build/suites/unittest/CMakeFiles/test_pf17_polymorphic_allocator__googletest_objlib.dir
build/suites/unittest/CMakeFiles/test_pf17_polymorphic_allocator__googletest_objlib.dir/test_pf17_polymorphic_allocator.cpp.gcno:version 'B23*', prefer 'B14*'
Segmentation fault (core dumped)Because root@273266aced7d:/repo# gcov --version
gcov (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
root@273266aced7d:/repo# gcc --version
gcc (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
I forgot to add gcov to the updated alternatives. This has been corrected and I've re-released ts22.4.7. Please try again. |
|
|
@thirtytwobits this seems to be done |



Sadly we can't re-enable
WARN_AS_ERRORin docs builds because Doxygen v1.10 is still broken, but we can stil hop.