1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2024-12-29 03:19:44 +00:00

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<char, std::char_traits<char>, std::allocator<char>
>::_M_high_mark() const

Related issue in a different project with links to GCC bug tracker:
https://github.com/cms-sw/cmssw/issues/36480
This commit is contained in:
elsid 2023-01-09 23:15:14 +01:00
parent 896905b7a8
commit 42a3b3ca49
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

View File

@ -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: []