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 <lpetrut@cloudbasesolutions.com>
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)