From 42a3b3ca49a9b26db76955514879adcf7f9b654b Mon Sep 17 00:00:00 2001 From: elsid Date: Mon, 9 Jan 2023 23:15:14 +0100 Subject: [PATCH] Drop -fsanitize=pointer-compare for Ubuntu_GCC_tests_asan CI job Otherwise compiler may produce a code that linker fails to link. For openmw it fails with following error (https://gitlab.com/elsid/openmw/-/jobs/3571943608): Linking CXX executable ../../openmw_test_suite mold: error: undefined symbol: CMakeFiles/openmw_test_suite.dir/lua/test_configuration.cpp.o: std::__cxx11::basic_stringbuf, std::allocator >::_M_high_mark() const Related issue in a different project with links to GCC bug tracker: https://github.com/cms-sw/cmssw/issues/36480 --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0c2aa136b1..1709455930 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -187,8 +187,8 @@ Ubuntu_GCC_tests_asan: CCACHE_SIZE: 1G BUILD_TESTS_ONLY: 1 CMAKE_BUILD_TYPE: Debug - CMAKE_CXX_FLAGS_DEBUG: -g -O1 -fno-omit-frame-pointer -fsanitize=address -fsanitize=pointer-compare -fsanitize=pointer-subtract -fsanitize=leak - CMAKE_EXE_LINKER_FLAGS: -fsanitize=address -fsanitize=pointer-compare -fsanitize=pointer-subtract -fsanitize=leak -fuse-ld=mold + CMAKE_CXX_FLAGS_DEBUG: -g -O1 -fno-omit-frame-pointer -fsanitize=address -fsanitize=pointer-subtract -fsanitize=leak + CMAKE_EXE_LINKER_FLAGS: -fsanitize=address -fsanitize=pointer-subtract -fsanitize=leak -fuse-ld=mold ASAN_OPTIONS: halt_on_error=1:strict_string_checks=1:detect_stack_use_after_return=1:check_initialization_order=1:strict_init_order=1 artifacts: paths: []