From: Lucian Petrut Date: Fri, 14 Jul 2023 10:16:47 +0000 (+0000) Subject: test/common: skip unittest_back_trace with mingw-gcc X-Git-Tag: v19.0.0~843^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=80d2d01d6126c8be0375140060cf914e4f1daa5b;p=ceph.git test/common: skip unittest_back_trace with mingw-gcc We're getting an ICE when trying to compile this test using mingw-gcc and recent Boost versions. Note that mingw-llvm works fine. during IPA pass: inline /mnt/data/workspace/ceph.pr/src/test/common/test_back_trace.cc:44:1: internal compiler error: Segmentation fault 44 | } | ^ 0x7f9c4a86c51f ??? ./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0 0x7f9c4a853d8f __libc_start_call_main ../sysdeps/x86/libc-start.c:58 0x7f9c4a853e3f __libc_start_main_impl ../sysdeps/nptl/libc_start_call_main.h:392 For now, we'll just skip the test when using mingw-gcc. Note that we're planing to switch to mingw-llvm anyway: https://github.com/ceph/ceph/pull/51197 Signed-off-by: Lucian Petrut --- diff --git a/src/test/common/CMakeLists.txt b/src/test/common/CMakeLists.txt index 1179fbdfb821..200fd3990b93 100644 --- a/src/test/common/CMakeLists.txt +++ b/src/test/common/CMakeLists.txt @@ -316,12 +316,16 @@ target_link_libraries(unittest_dns_resolve global) add_ceph_unittest(unittest_dns_resolve) endif() +# We're getting an ICE when trying to compile this test using mingw-gcc and +# recent Boost versions. Note that mingw-llvm works fine. +if (NOT WIN32 OR (NOT(CMAKE_CXX_COMPILER_ID STREQUAL GNU))) add_executable(unittest_back_trace test_back_trace.cc) set_source_files_properties(test_back_trace.cc PROPERTIES COMPILE_FLAGS -fno-inline) add_ceph_unittest(unittest_back_trace) target_link_libraries(unittest_back_trace ceph-common) +endif() add_executable(unittest_hostname test_hostname.cc)